Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1146 [Order] Common export csv file for basic table #1191

Merged
merged 11 commits into from
Oct 21, 2024

fix sonar

1e33ddb
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

#1146 [Order] Common export csv file for basic table #1191

fix sonar
1e33ddb
Select commit
Loading
Failed to load commit list.
GitHub Actions / Media-Service-Unit-Test-Results succeeded Oct 18, 2024 in 1s

30 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
media/target/failsafe-reports/TEST-com.yas.media.controller.MediaControllerIT.xml 14✅ 79s
media/target/surefire-reports/TEST-com.yas.media.FileSystemRepositoryTest.xml 4✅ 233ms
media/target/surefire-reports/TEST-com.yas.media.MediaServiceUnitTest.xml 12✅ 2s

✅ media/target/failsafe-reports/TEST-com.yas.media.controller.MediaControllerIT.xml

14 tests were completed in 79s with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.media.controller.MediaControllerIT 14✅ 79s

✅ com.yas.media.controller.MediaControllerIT

✅ test_deleteMedia_shouldThrows403_ifProvideInvalidAccessToken
✅ test_createMediaFileNameNull_shouldSuccess_ifProvideValidAccessTokenAndValidData
✅ test_createMediaPNG_shouldSuccess_ifProvideValidAccessTokenAndValidData
✅ test_deleteMedia_shouldReturn404_ifProvideValidAccessTokenAndInvalidId
✅ test_createMediaFileNameBlank_shouldSuccess_ifProvideValidAccessTokenAndValidData
✅ test_createMedia_shouldReturn403_ifProvideInvalidAccessToken
✅ test_createMediaFileNameEmpty_shouldSuccess_ifProvideValidAccessTokenAndValidData
✅ test_getMedia_shouldReturnData_ifProvideValidId
✅ test_createMediaGIF_shouldSuccess_ifProvideValidAccessTokenAndValidData
✅ test_getFile_shouldSuccess_ifProvideValidIdAndValidFileName
✅ test_getMedia_shouldThrows404_ifProvideInvalidId
✅ test_createWrongTypeMedia_shouldFail_ifProvideValidAccessTokenAndInvalidData
✅ test_createMediaJPEG_shouldSuccess_ifProvideValidAccessTokenAndValidData
✅ test_deleteMedia_shouldDelete_ifProvideValidAccessTokenAndValidId

✅ media/target/surefire-reports/TEST-com.yas.media.FileSystemRepositoryTest.xml

4 tests were completed in 233ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.media.FileSystemRepositoryTest 4✅ 233ms

✅ com.yas.media.FileSystemRepositoryTest

✅ testPersistFile_whenDirectoryNotExist_thenThrowsException
✅ testGetFile_whenDirectIsExist_thenReturnFile
✅ testPersistFile_filePathNotContainsDirectory
✅ testGetFileDirectoryDoesNotExist_thenThrowsException

✅ media/target/surefire-reports/TEST-com.yas.media.MediaServiceUnitTest.xml

12 tests were completed in 2s with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.media.MediaServiceUnitTest 12✅ 2s

✅ com.yas.media.MediaServiceUnitTest

✅ getFile_whenMediaNameNotMatch_thenReturnMediaDto
✅ getMedia_whenValidId_thenReturnData
✅ removeMedia_whenMediaNotFound_thenThrowsNotFoundException
✅ removeMedia_whenValidId_thenRemoveSuccess
✅ getMedia_whenMediaNotFound_thenReturnNull
✅ saveMedia_whenTypeGIF_thenSaveSuccess
✅ saveMedia_whenFileNameIsBlank_thenOk
✅ saveMedia_whenFileNameIsEmpty_thenOk
✅ getFile_whenMediaNotFound_thenReturnMediaDto
✅ saveMedia_whenFileNameIsNull_thenOk
✅ saveMedia_whenTypePNG_thenSaveSuccess
✅ saveMedia_whenTypeJPEG_thenSaveSuccess