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

Fix/yas 1234 #1239

Closed
wants to merge 2 commits into from

fix keycloak incompatible versions

fabf9cb
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

Fix/yas 1234 #1239

fix keycloak incompatible versions
fabf9cb
Select commit
Loading
Failed to load commit list.
GitHub Actions / Media-Service-Unit-Test-Results succeeded Oct 28, 2024 in 0s

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✅ 56s
media/target/surefire-reports/TEST-com.yas.media.FileSystemRepositoryTest.xml 4✅ 225ms
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 56s with 14 passed, 0 failed and 0 skipped.

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

✅ 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 225ms with 4 passed, 0 failed and 0 skipped.

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

✅ 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