Skip to content

LauroSilveira has started workflow #193

LauroSilveira has started workflow

LauroSilveira has started workflow #193

GitHub Actions / Test Reporter Summary failed Feb 8, 2024 in 0s

Test Reporter Summary ❌

Tests failed

Report Passed Failed Skipped Time
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.AuthenticationControllerTest.xml 1✅ 3s
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.CategoryControllerTest.xml 6✅ 5s
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.ControllerAdviceTest.xml 2✅ 133ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.UserControllerTest.xml 2✅ 274ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.VideoControllerTest.xml 7✅ 1s
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml 2✅ 4s
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.xml 3✅ 1❌ 86ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest.xml 6✅ 284ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest.xml 1✅ 46ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest.xml 2✅ 296ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest.xml 12✅ 111ms

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.AuthenticationControllerTest.xml

1 tests were completed in 3s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.AuthenticationControllerTest 1✅ 3s

✅ com.alura.aluraflixapi.controller.AuthenticationControllerTest

✅ login_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.CategoryControllerTest.xml

6 tests were completed in 5s with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.CategoryControllerTest 6✅ 5s

✅ com.alura.aluraflixapi.controller.CategoryControllerTest

✅ categories_test
✅ getVideosByCategory_return_no_content_test
✅ findCategoryById_test
✅ create_test
✅ deleteCategory_test
✅ getVideosByCategory_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.ControllerAdviceTest.xml

2 tests were completed in 133ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.ControllerAdviceTest 2✅ 133ms

✅ com.alura.aluraflixapi.controller.ControllerAdviceTest

✅ handleInvalidFields_test
✅ handlerResourceNotFoundException_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.UserControllerTest.xml

2 tests were completed in 274ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.UserControllerTest 2✅ 274ms

✅ com.alura.aluraflixapi.controller.UserControllerTest

✅ getUsers_test
✅ saveUser_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.controller.VideoControllerTest.xml

7 tests were completed in 1s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.VideoControllerTest 7✅ 1s

✅ com.alura.aluraflixapi.controller.VideoControllerTest

✅ get_video_by_id
✅ delete_video_by_id_test
✅ getVideosByTitle_test
✅ get_all_videos_test
✅ save_a_new_video_test
✅ getVideosByTitle_response_no_content_test
✅ update_video_by_id_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest 2✅ 4s

✅ com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest

✅ findVideoByTitleTest
✅ findVideosByCategoriesTest

❌ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.xml

4 tests were completed in 86ms with 3 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.security.TokenServiceTest 3✅ 1❌ 86ms

❌ com.alura.aluraflixapi.infraestructure.security.TokenServiceTest

✅ generateTokenJWT_KO_test
✅ getSubject_KO_test
❌ getSubject_test
	com.auth0.jwt.exceptions.TokenExpiredException: The Token has expired on 2024-02-08T07:32:04Z.
✅ generateTokenJWT_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest.xml

6 tests were completed in 284ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest 6✅ 284ms

✅ com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest

✅ should_delete_a_category_test
✅ should_findCategory_by_id_test
✅ should_return_a_category_searching_by_video_test
✅ should_return_all_categories_in_database_test
✅ should_throw_categoryTransactionException_when_create_a_new_category_test
✅ should_create_a_new_category_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest.xml

1 tests were completed in 46ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest 1✅ 46ms

✅ com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest

✅ loadUserByUsername_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest.xml

2 tests were completed in 296ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest 2✅ 296ms

✅ com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest

✅ getUsers_test
✅ saveUser_test

✅ target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest.xml

12 tests were completed in 111ms with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest 12✅ 111ms

✅ com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest

✅ getVideos_response_ko_test
✅ deleteVideo_response_ko_test
✅ getVideosByTitle_response_ok_test
✅ delete_response_ok_test
✅ getVideosByTitle_response_ko_test
✅ save_response_ok_test
✅ getById_response_ok_test
✅ updateVideo_response_ko_test
✅ getVideos_response_ok_test
✅ save_response_ko_test
✅ getById_response_ko_test
✅ updateMovie_response_ok_test

Annotations

Check failure on line 56 in src/main/java/com/alura/aluraflixapi/infraestructure/security/TokenService.java

See this annotation in the file changed.

@github-actions github-actions / Test Reporter Summary

com.alura.aluraflixapi.infraestructure.security.TokenServiceTest ► getSubject_test

Failed test found in:
  target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.xml
Error:
  com.auth0.jwt.exceptions.TokenExpiredException: The Token has expired on 2024-02-08T07:32:04Z.
Raw output
com.auth0.jwt.exceptions.TokenExpiredException: The Token has expired on 2024-02-08T07:32:04Z.
	at com.auth0.jwt.JWTVerifier$BaseVerification.assertValidInstantClaim(JWTVerifier.java:346)
	at com.auth0.jwt.JWTVerifier$BaseVerification.lambda$addMandatoryClaimChecks$17(JWTVerifier.java:308)
	at com.auth0.jwt.JWTVerifier$BaseVerification$1.verify(JWTVerifier.java:405)
	at com.auth0.jwt.JWTVerifier.verifyClaims(JWTVerifier.java:482)
	at com.auth0.jwt.JWTVerifier.verify(JWTVerifier.java:464)
	at com.auth0.jwt.JWTVerifier.verify(JWTVerifier.java:445)
	at com.alura.aluraflixapi.infraestructure.security.TokenService.getSubject(TokenService.java:56)
	at com.alura.aluraflixapi.infraestructure.security.TokenService.getSubject(TokenService.java:52)
	at com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.getSubject_test(TokenServiceTest.java:71)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)