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

Bump maven from 3.9.5-amazoncorretto-21 to 3.9.8-amazoncorretto-21 #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Bump maven from 3.9.5-amazoncorretto-21 to 3.9.8-amazoncorretto-21

f3a3906
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Bump maven from 3.9.5-amazoncorretto-21 to 3.9.8-amazoncorretto-21 #124

Bump maven from 3.9.5-amazoncorretto-21 to 3.9.8-amazoncorretto-21
f3a3906
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Reporter Summary failed Oct 2, 2024 in 1s

Test Reporter Summary ❌

Tests failed

Report Passed Failed Skipped Time
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.AuthenticationControllerTest.xml 1✅ 59ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.CategoryControllerTest.xml 6✅ 2s
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.ControllerAdviceTest.xml 2✅ 97ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.UserControllerTest.xml 2✅ 66ms
target/surefire-reports/TEST-com.alura.aluraflixapi.controller.VideoControllerTest.xml 7✅ 698ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.repository.VideoRepositoryTest.xml 2❌ 2s
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.security.TokenServiceTest.xml 4✅ 3s
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.CategoryServiceImplTest.xml 6✅ 661ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserDetailsServiceImplTest.xml 1✅ 63ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.UserServiceImplTest.xml 2✅ 415ms
target/surefire-reports/TEST-com.alura.aluraflixapi.infraestructure.service.VideoServiceImplTest.xml 12✅ 294ms

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

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

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.AuthenticationControllerTest 1✅ 59ms

✅ com.alura.aluraflixapi.controller.AuthenticationControllerTest

✅ login_test

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

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

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

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

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

✅ com.alura.aluraflixapi.controller.ControllerAdviceTest

✅ handleInvalidFields_test
✅ handlerResourceNotFoundException_test

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

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

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

✅ com.alura.aluraflixapi.controller.UserControllerTest

✅ getUsers_test
✅ createUser_test

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

7 tests were completed in 698ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.controller.VideoControllerTest 7✅ 698ms

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

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

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

❌ findVideoByTitleTest
	java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@199dee18 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@521d455c 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@4a31c2ee, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@267bbe1a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@7808fb9, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@370a935f, 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@d694e509, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5e742e4, org.springframework.boot.test.context.SpringBootTestAnnotation@5490348f], 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@199dee18 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@521d455c 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@4a31c2ee, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@267bbe1a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@7808fb9, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@370a935f, 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@d694e509, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5e742e4, org.springframework.boot.test.context.SpringBootTestAnnotation@5490348f], 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 3s with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.alura.aluraflixapi.infraestructure.security.TokenServiceTest 4✅ 3s

✅ com.alura.aluraflixapi.infraestructure.security.TokenServiceTest

✅ generateTokenJWT_KO_test
✅ getSubject_KO_test
✅ getSubject_test
✅ generateTokenJWT_test

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

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

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

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

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

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

✅ loadUserByUsername_test

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

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

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

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

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

✅ 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@199dee18 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@521d455c 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@4a31c2ee, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@267bbe1a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@7808fb9, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@370a935f, 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@d694e509, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5e742e4, org.springframework.boot.test.context.SpringBootTestAnnotation@5490348f], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
Raw output
java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@199dee18 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@521d455c 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@4a31c2ee, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@267bbe1a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@7808fb9, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@370a935f, 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@d694e509, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5e742e4, org.springframework.boot.test.context.SpringBootTestAnnotation@5490348f], 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:1708)
	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:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standardMongoSettingsCustomizer' defined in class path resource [org/springframework/boot/autoconfigure/mongo/MongoAutoConfiguration$MongoClientSettingsConfiguration.class]: Failed to instantiate [org.springframework.boot.autoconfigure.mongo.StandardMongoClientSettingsBuilderCustomizer]: Factory method 'standardMongoSettingsCustomizer' threw exception with message: The connection string is invalid. Connection strings must start with either 'mongodb://' or 'mongodb+srv://
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:636)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1355)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1185)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:971)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:625)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
	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:1463)
	at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:553)
	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
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.mongo.StandardMongoClientSettingsBuilderCustomizer]: Factory method 'standardMongoSettingsCustomizer' threw exception with message: The connection string is invalid. Connection strings must start with either 'mongodb://' or 'mongodb+srv://
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:178)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:644)
	... 41 more
Caused by: java.lang.IllegalArgumentException: The connection string is invalid. Connection strings must start with either 'mongodb://' or 'mongodb+srv://
	at com.mongodb.ConnectionString.<init>(ConnectionString.java:340)
	at com.mongodb.ConnectionString.<init>(ConnectionString.java:321)
	at org.springframework.boot.autoconfigure.mongo.PropertiesMongoConnectionDetails.getConnectionString(PropertiesMongoConnectionDetails.java:49)
	at org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration$MongoClientSettingsConfiguration.standardMongoSettingsCustomizer(MongoAutoConfiguration.java:74)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:146)
	... 42 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@199dee18 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@521d455c 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@4a31c2ee, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@267bbe1a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@7808fb9, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@370a935f, 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@d694e509, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5e742e4, org.springframework.boot.test.context.SpringBootTestAnnotation@5490348f], 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@199dee18 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@521d455c 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@4a31c2ee, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@267bbe1a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@7808fb9, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@370a935f, 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@d694e509, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@5e742e4, org.springframework.boot.test.context.SpringBootTestAnnotation@5490348f], 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:1708)
	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:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)