Skip to content

LauroSilveira has started workflow #189

LauroSilveira has started workflow

LauroSilveira has started workflow #189

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

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✅ 4s
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.ControllerAdviceTest.xml 2✅ 139ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.UserControllerTest.xml 2✅ 237ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.VideoControllerTest.xml 7✅ 1s
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml 2❌ 120ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.xml 2✅ 2❌ 91ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest.xml 6✅ 282ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest.xml 1✅ 51ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest.xml 2✅ 344ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest.xml 12✅ 113ms

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

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

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

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

✅ com.alura.aluraflixapi.controller.ControllerAdviceTest

✅ handleInvalidFields_test
✅ handlerResourceNotFoundException_test

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

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

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

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest 2❌ 120ms

❌ com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest

❌ findVideoByTitleTest
	java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@3171c5e6 testClass = com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest, locations = [], classes = [com.alura.aluraflixapi.AluraFlixApiApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.autoconfigure.data.mongo.DataMongoTestContextBootstrapper=true"], contextCustomizers = [[ImportsContextCustomizer@4260de0d key = [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration, org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4a60ee36, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@412c995d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@9cb927e, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@34be3d80, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@a56241ad, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5bb3131b, org.springframework.boot.test.context.SpringBootTestAnnotation@386f57ec], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
❌ findVideosByCategoriesTest
	java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [MergedContextConfiguration@3171c5e6 testClass = com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest, locations = [], classes = [com.alura.aluraflixapi.AluraFlixApiApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.autoconfigure.data.mongo.DataMongoTestContextBootstrapper=true"], contextCustomizers = [[ImportsContextCustomizer@4260de0d key = [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration, org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4a60ee36, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@412c995d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@9cb927e, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@34be3d80, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@a56241ad, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5bb3131b, org.springframework.boot.test.context.SpringBootTestAnnotation@386f57ec], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]

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

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.security.TokenServiceTest 2✅ 2❌ 91ms

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

✅ generateTokenJWT_KO_test
✅ getSubject_KO_test
❌ getSubject_test
	java.time.DateTimeException: Invalid ID for ZoneOffset, invalid format: Europe/Madrid
❌ generateTokenJWT_test
	java.time.DateTimeException: Invalid ID for ZoneOffset, invalid format: Europe/Madrid

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

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

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

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

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

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

✅ loadUserByUsername_test

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

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

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

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

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

✅ 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 0 in target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml

See this annotation in the file changed.

@github-actions github-actions / Test Reporter Summary

com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest ► findVideoByTitleTest

Failed test found in:
  target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml
Error:
  java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@3171c5e6 testClass = com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest, locations = [], classes = [com.alura.aluraflixapi.AluraFlixApiApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.autoconfigure.data.mongo.DataMongoTestContextBootstrapper=true"], contextCustomizers = [[ImportsContextCustomizer@4260de0d key = [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration, org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4a60ee36, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@412c995d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@9cb927e, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@34be3d80, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@a56241ad, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5bb3131b, org.springframework.boot.test.context.SpringBootTestAnnotation@386f57ec], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
Raw output
java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@3171c5e6 testClass = com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest, locations = [], classes = [com.alura.aluraflixapi.AluraFlixApiApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.autoconfigure.data.mongo.DataMongoTestContextBootstrapper=true"], contextCustomizers = [[ImportsContextCustomizer@4260de0d key = [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration, org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4a60ee36, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@412c995d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@9cb927e, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@34be3d80, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@a56241ad, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5bb3131b, org.springframework.boot.test.context.SpringBootTestAnnotation@386f57ec], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:180)
	at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:130)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:142)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:98)
	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
	at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:163)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.springframework.boot.context.config.InvalidConfigDataPropertyException: Property 'spring.profiles.active' imported from location 'class path resource [application-test.yml]' is invalid in a profile specific resource [origin: class path resource [application-test.yml] - 6:13]
	at org.springframework.boot.context.config.InvalidConfigDataPropertyException.lambda$throwIfPropertyFound$1(InvalidConfigDataPropertyException.java:121)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1092)
	at org.springframework.boot.context.config.InvalidConfigDataPropertyException.throwIfPropertyFound(InvalidConfigDataPropertyException.java:118)
	at org.springframework.boot.context.config.ConfigDataEnvironment.checkForInvalidProperties(ConfigDataEnvironment.java:364)
	at org.springframework.boot.context.config.ConfigDataEnvironment.applyToEnvironment(ConfigDataEnvironment.java:328)
	at org.springframework.boot.context.config.ConfigDataEnvironment.processAndApply(ConfigDataEnvironment.java:235)
	at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:96)
	at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:89)
	at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEnvironmentPreparedEvent(EnvironmentPostProcessorApplicationListener.java:109)
	at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEvent(EnvironmentPostProcessorApplicationListener.java:94)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:178)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:171)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:149)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:137)
	at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136)
	at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:81)
	at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:64)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118)
	at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112)
	at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:63)
	at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:369)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:329)
	at org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$3(SpringBootContextLoader.java:137)
	at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
	at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
	at org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1454)
	at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:552)
	at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:137)
	at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:108)
	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:225)
	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:152)
	... 17 more

Check failure on line 0 in target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml

See this annotation in the file changed.

@github-actions github-actions / Test Reporter Summary

com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest ► findVideosByCategoriesTest

Failed test found in:
  target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml
Error:
  java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [MergedContextConfiguration@3171c5e6 testClass = com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest, locations = [], classes = [com.alura.aluraflixapi.AluraFlixApiApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.autoconfigure.data.mongo.DataMongoTestContextBootstrapper=true"], contextCustomizers = [[ImportsContextCustomizer@4260de0d key = [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration, org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4a60ee36, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@412c995d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@9cb927e, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@34be3d80, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@a56241ad, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5bb3131b, org.springframework.boot.test.context.SpringBootTestAnnotation@386f57ec], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
Raw output
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [MergedContextConfiguration@3171c5e6 testClass = com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest, locations = [], classes = [com.alura.aluraflixapi.AluraFlixApiApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.autoconfigure.data.mongo.DataMongoTestContextBootstrapper=true"], contextCustomizers = [[ImportsContextCustomizer@4260de0d key = [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration, org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4a60ee36, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@412c995d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@9cb927e, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@34be3d80, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@a56241ad, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5bb3131b, org.springframework.boot.test.context.SpringBootTestAnnotation@386f57ec], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:145)
	at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:130)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:142)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:98)
	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
	at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:163)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 64 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:
  java.time.DateTimeException: Invalid ID for ZoneOffset, invalid format: Europe/Madrid
Raw output
java.time.DateTimeException: Invalid ID for ZoneOffset, invalid format: Europe/Madrid
	at java.base/java.time.ZoneOffset.of(ZoneOffset.java:243)
	at com.alura.aluraflixapi.infraestructure.security.TokenService.getExpireDate(TokenService.java:64)
	at com.alura.aluraflixapi.infraestructure.security.TokenService.generateTokenJWT(TokenService.java:41)
	at com.alura.aluraflixapi.infraestructure.security.TokenService.generateTokenJWT(TokenService.java:29)
	at com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.getSubject_test(TokenServiceTest.java:70)
	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)

Check failure on line 64 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 ► generateTokenJWT_test

Failed test found in:
  target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.xml
Error:
  java.time.DateTimeException: Invalid ID for ZoneOffset, invalid format: Europe/Madrid
Raw output
java.time.DateTimeException: Invalid ID for ZoneOffset, invalid format: Europe/Madrid
	at java.base/java.time.ZoneOffset.of(ZoneOffset.java:243)
	at com.alura.aluraflixapi.infraestructure.security.TokenService.getExpireDate(TokenService.java:64)
	at com.alura.aluraflixapi.infraestructure.security.TokenService.generateTokenJWT(TokenService.java:41)
	at com.alura.aluraflixapi.infraestructure.security.TokenService.generateTokenJWT(TokenService.java:29)
	at com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.generateTokenJWT_test(TokenServiceTest.java:41)
	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)