MormonJesus69420 is deploying the project #329
GitHub Actions / JUnit Tests
failed
Oct 14, 2024 in 0s
49 passed, 1 failed and 1 skipped
✅ target/surefire-reports/TEST-no.nb.mlt.wls.ArchitectureTest.xml
4 tests were completed in 2s with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.ArchitectureTest | 4✅ | 2s |
✅ no.nb.mlt.wls.ArchitectureTest
✅ The infrastructure packages does not access any application classes
✅ The domain model does not have any outgoing dependencies
✅ The application layer does not access any adapters
✅ A adapter should not access another adapter
✅ target/surefire-reports/TEST-no.nb.mlt.wls.domain.WLSServiceTest.xml
19 tests were completed in 2s with 19 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.domain.WLSServiceTest | 19✅ | 2s |
✅ no.nb.mlt.wls.domain.WLSServiceTest
✅ addItem should not save new item but return existing item if it already exists
✅ deleteOrder should fail when order does not exist in WLS database
✅ updateOrder should fail when order does not exist
✅ getItem should return requested item when it exists in DB
✅ deleteOrder should fail when order does not exist in storage system
✅ createOrder should return existing order when trying to create one with same id and host
✅ getItem should return null if item does not exist
✅ getOrder should return null when order does not exists in DB
✅ moveItem should return when item successfully moves
✅ deleteOrder should complete when order exists
✅ moveItem throws when location is blank
✅ updateOrder should fail when items do not exist
✅ updateOrder with valid items should complete
✅ addItem should save and return new item when it does not exists
✅ moveItem should fail when item does not exist
✅ moveItem throws when count is invalid
✅ createOrder should fail if some of the items does not exist
✅ getOrder should return requested order when it exists in DB
✅ createOrder should save order in db and storage system
✅ target/surefire-reports/TEST-no.nb.mlt.wls.item.controller.ItemControllerTest.xml
5 tests were completed in 20s with 4 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.item.controller.ItemControllerTest | 4✅ | 1⚪ | 20s |
✅ no.nb.mlt.wls.item.controller.ItemControllerTest
✅ createItem with valid payload creates item
✅ createItem with duplicate payload returns OK
⚪ createItem where SynQ says it's a duplicate returns OK
✅ createItem handles SynQ error
✅ createItem payload with different data but same ID returns DB entry
✅ target/surefire-reports/TEST-no.nb.mlt.wls.item.model.ItemModelConversionTest.xml
3 tests were completed in 9ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.item.model.ItemModelConversionTest | 3✅ | 9ms |
✅ no.nb.mlt.wls.item.model.ItemModelConversionTest
✅ item converts to SynQ payload
✅ API payload converts to item
✅ item converts to API payload
✅ target/surefire-reports/TEST-no.nb.mlt.wls.order.controller.OrderControllerTest.xml
13 tests were completed in 591ms with 13 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.order.controller.OrderControllerTest | 13✅ | 591ms |
✅ no.nb.mlt.wls.order.controller.OrderControllerTest
✅ deleteOrder with valid data deletes order
✅ createOrder with duplicate payload returns OK
✅ updateOrder when order is being processed errors
✅ createOrder payload with different data but same ID returns DB entry
✅ createOrder with valid payload creates order
✅ updateOrder with valid payload updates order
✅ getOrder returns the order
✅ getOrder for wrong client throws
✅ deleteOrder handles synq error
✅ createOrder where SynQ says it's a duplicate but we don't have it in the DB returns Server error
✅ createOrder handles SynQ error
✅ updateOrder when order lines doesn't exists returns status 400
✅ updateOrder when order does not exists returns status 404 NOT FOUND
✅ target/surefire-reports/TEST-no.nb.mlt.wls.order.model.OrderModelConversionTest.xml
4 tests were completed in 5ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.order.model.OrderModelConversionTest | 4✅ | 5ms |
✅ no.nb.mlt.wls.order.model.OrderModelConversionTest
✅ order converts to API payload
✅ API payload converts to order
✅ order converts to Mongo Order payload
✅ order converts to SynQ payload
❌ target/surefire-reports/TEST-no.nb.mlt.wls.synq.controller.SynqControllerTest.xml
1 tests were completed in 5s with 0 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.synq.controller.SynqControllerTest | 1❌ | 5s |
❌ no.nb.mlt.wls.synq.controller.SynqControllerTest
❌
org.junit.jupiter.api.extension.ParameterResolutionException: Failed to resolve parameter [no.nb.mlt.wls.infrastructure.repositories.item.ItemMongoRepository itemRepository] in constructor [public no.nb.mlt.wls.synq.controller.SynqControllerTest(no.nb.mlt.wls.infrastructure.repositories.item.ItemMongoRepository,no.nb.mlt.wls.infrastructure.repositories.order.OrderMongoRepository,org.springframework.context.ApplicationContext)]: Failed to load ApplicationContext for [ReactiveWebMergedContextConfiguration@1145eb60 testClass = no.nb.mlt.wls.synq.controller.SynqControllerTest, locations = [], classes = [no.nb.mlt.wls.HermesApplication], contextInitializerClasses = [no.nb.mlt.wls.TestcontainerInitializer], activeProfiles = ["local-dev"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [[ImportsContextCustomizer@4a5c29dc key = [@no.nb.mlt.wls.EnableTestcontainers(), @org.springframework.test.context.ActiveProfiles(inheritProfiles=true, profiles={"local-dev"}, resolver=org.springframework.test.context.ActiveProfilesResolver.class, value={"local-dev"}), @org.springframework.context.annotation.Import(value={org.springframework.data.mongodb.repository.config.MongoRepositoriesRegistrar.class}), @org.springframework.boot.autoconfigure.ImportAutoConfiguration(classes={}, exclude={}, value={}), @org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient(timeout=""), @org.springframework.boot.test.context.SpringBootTest(args={}, classes={}, properties={}, useMainMethod=NEVER, value={}, webEnvironment=RANDOM_PORT), @org.springframework.data.mongodb.repository.config.EnableMongoRepositories(basePackageClasses={}, basePackages={}, considerNestedRepositories=false, createIndexesForQueryMethods=false, excludeFilters={}, includeFilters={}, mongoTemplateRef="mongoTemplate", namedQueriesLocation="", queryLookupStrategy=CREATE_IF_NOT_FOUND, repositoryBaseClass=org.springframework.data.repository.config.DefaultRepositoryBaseClass.class, repositoryFactoryBeanClass=org.springframework.data.mongodb.repository.support.MongoRepositoryFactoryBean.class, repositoryImplementationPostfix="Impl", value={"no.nb.mlt.wls"}), @org.springframework.test.context.ContextConfiguration(classes={}, inheritInitializers=true, inheritLocations=true, initializers={no.nb.mlt.wls.TestcontainerInitializer.class}, loader=org.springframework.test.context.ContextLoader.class, locations={}, name="", value={}), @org.springframework.test.context.BootstrapWith(value=org.springframework.boot.test.context.SpringBootTestContextBootstrapper.class), @org.springframework.context.annotation.Import(value={org.springframework.boot.autoconfigure.ImportAutoConfigurationImportSelector.class}), @org.springframework.boot.test.autoconfigure.properties.PropertyMapping(skip=NO, value="spring.test.webtestclient"), @org.apiguardian.api.API(consumers={"*"}, since="5.0", status=STABLE)]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3dc46f24, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@18e6b72b, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@602298b, org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizer@3611153f, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@ec54a5c9, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@72110818, MockkContextCustomizer(definitions=[[MockkDefinition@5d388611 name = [null], typeToMock = no.nb.mlt.wls.infrastructure.callbacks.InventoryNotifierAdapter, extraInterfaces = set[[empty]], clear = AFTER]]), org.springframework.boot.test.context.SpringBootTestAnnotation@3327dbe8], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
✅ target/surefire-reports/TEST-no.nb.mlt.wls.synq.model.SynqModelsTest.xml
2 tests were completed in 7ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.synq.model.SynqModelsTest | 2✅ | 7ms |
✅ no.nb.mlt.wls.synq.model.SynqModelsTest
✅ SynqOrderStatus maps correctly to an OrderStatus
✅ SynqBatchMoveItemPayload maps correctly to a list of MoveItemPayloads
Annotations
github-actions / JUnit Tests
no.nb.mlt.wls.synq.controller.SynqControllerTest ►
Failed test found in:
target/surefire-reports/TEST-no.nb.mlt.wls.synq.controller.SynqControllerTest.xml
Error:
org.junit.jupiter.api.extension.ParameterResolutionException: Failed to resolve parameter [no.nb.mlt.wls.infrastructure.repositories.item.ItemMongoRepository itemRepository] in constructor [public no.nb.mlt.wls.synq.controller.SynqControllerTest(no.nb.mlt.wls.infrastructure.repositories.item.ItemMongoRepository,no.nb.mlt.wls.infrastructure.repositories.order.OrderMongoRepository,org.springframework.context.ApplicationContext)]: Failed to load ApplicationContext for [ReactiveWebMergedContextConfiguration@1145eb60 testClass = no.nb.mlt.wls.synq.controller.SynqControllerTest, locations = [], classes = [no.nb.mlt.wls.HermesApplication], contextInitializerClasses = [no.nb.mlt.wls.TestcontainerInitializer], activeProfiles = ["local-dev"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [[ImportsContextCustomizer@4a5c29dc key = [@no.nb.mlt.wls.EnableTestcontainers(), @org.springframework.test.context.ActiveProfiles(inheritProfiles=true, profiles={"local-dev"}, resolver=org.springframework.test.context.ActiveProfilesResolver.class, value={"local-dev"}), @org.springframework.context.annotation.Import(value={org.springframework.data.mongodb.repository.config.MongoRepositoriesRegistrar.class}), @org.springframework.boot.autoconfigure.ImportAutoConfiguration(classes={}, exclude={}, value={}), @org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient(timeout=""), @org.springframework.boot.test.context.SpringBootTest(args={}, classes={}, properties={}, useMainMethod=NEVER, value={}, webEnvironment=RANDOM_PORT), @org.springframework.data.mongodb.repository.config.EnableMongoRepositories(basePackageClasses={}, basePackages={}, considerNestedRepositories=false, createIndexesForQueryMethods=false, excludeFilters={}, includeFilters={}, mongoTemplateRef="mongoTemplate", namedQueriesLocation="", queryLookupStrategy=CREATE_IF_NOT_FOUND, repositoryBaseClass=org.springframework.data.repository.config.DefaultRepositoryBaseClass.class, repositoryFactoryBeanClass=org.springframework.data.mongodb.repository.support.MongoRepositoryFactoryBean.class, repositoryImplementationPostfix="Impl", value={"no.nb.mlt.wls"}), @org.springframework.test.context.ContextConfiguration(classes={}, inheritInitializers=true, inheritLocations=true, initializers={no.nb.mlt.wls.TestcontainerInitializer.class}, loader=org.springframework.test.context.ContextLoader.class, locations={}, name="", value={}), @org.springframework.test.context.BootstrapWith(value=org.springframework.boot.test.context.SpringBootTestContextBootstrapper.class), @org.springframework.context.annotation.Import(value={org.springframework.boot.autoconfigure.ImportAutoConfigurationImportSelector.class}), @org.springframework.boot.test.autoconfigure.properties.PropertyMapping(skip=NO, value="spring.test.webtestclient"), @org.apiguardian.api.API(consumers={"*"}, since="5.0", status=STABLE)]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3dc46f24, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@18e6b72b, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@602298b, org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizer@3611153f, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@ec54a5c9, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@72110818, MockkContextCustomizer(definitions=[[MockkDefinition@5d388611 name = [null], typeToMock = no.nb.mlt.wls.infrastructure.callbacks.InventoryNotifierAdapter, extraInterfaces = set[[empty]], clear = AFTER]]), org.springframework.boot.test.context.SpringBootTestAnnotation@3327dbe8], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
Raw output
org.junit.jupiter.api.extension.ParameterResolutionException: Failed to resolve parameter [no.nb.mlt.wls.infrastructure.repositories.item.ItemMongoRepository itemRepository] in constructor [public no.nb.mlt.wls.synq.controller.SynqControllerTest(no.nb.mlt.wls.infrastructure.repositories.item.ItemMongoRepository,no.nb.mlt.wls.infrastructure.repositories.order.OrderMongoRepository,org.springframework.context.ApplicationContext)]: Failed to load ApplicationContext for [ReactiveWebMergedContextConfiguration@1145eb60 testClass = no.nb.mlt.wls.synq.controller.SynqControllerTest, locations = [], classes = [no.nb.mlt.wls.HermesApplication], contextInitializerClasses = [no.nb.mlt.wls.TestcontainerInitializer], activeProfiles = ["local-dev"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [[ImportsContextCustomizer@4a5c29dc key = [@no.nb.mlt.wls.EnableTestcontainers(), @org.springframework.test.context.ActiveProfiles(inheritProfiles=true, profiles={"local-dev"}, resolver=org.springframework.test.context.ActiveProfilesResolver.class, value={"local-dev"}), @org.springframework.context.annotation.Import(value={org.springframework.data.mongodb.repository.config.MongoRepositoriesRegistrar.class}), @org.springframework.boot.autoconfigure.ImportAutoConfiguration(classes={}, exclude={}, value={}), @org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient(timeout=""), @org.springframework.boot.test.context.SpringBootTest(args={}, classes={}, properties={}, useMainMethod=NEVER, value={}, webEnvironment=RANDOM_PORT), @org.springframework.data.mongodb.repository.config.EnableMongoRepositories(basePackageClasses={}, basePackages={}, considerNestedRepositories=false, createIndexesForQueryMethods=false, excludeFilters={}, includeFilters={}, mongoTemplateRef="mongoTemplate", namedQueriesLocation="", queryLookupStrategy=CREATE_IF_NOT_FOUND, repositoryBaseClass=org.springframework.data.repository.config.DefaultRepositoryBaseClass.class, repositoryFactoryBeanClass=org.springframework.data.mongodb.repository.support.MongoRepositoryFactoryBean.class, repositoryImplementationPostfix="Impl", value={"no.nb.mlt.wls"}), @org.springframework.test.context.ContextConfiguration(classes={}, inheritInitializers=true, inheritLocations=true, initializers={no.nb.mlt.wls.TestcontainerInitializer.class}, loader=org.springframework.test.context.ContextLoader.class, locations={}, name="", value={}), @org.springframework.test.context.BootstrapWith(value=org.springframework.boot.test.context.SpringBootTestContextBootstrapper.class), @org.springframework.context.annotation.Import(value={org.springframework.boot.autoconfigure.ImportAutoConfigurationImportSelector.class}), @org.springframework.boot.test.autoconfigure.properties.PropertyMapping(skip=NO, value="spring.test.webtestclient"), @org.apiguardian.api.API(consumers={"*"}, since="5.0", status=STABLE)]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3dc46f24, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@18e6b72b, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@602298b, org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizer@3611153f, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@ec54a5c9, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@72110818, MockkContextCustomizer(definitions=[[MockkDefinition@5d388611 name = [null], typeToMock = no.nb.mlt.wls.infrastructure.callbacks.InventoryNotifierAdapter, extraInterfaces = set[[empty]], clear = AFTER]]), org.springframework.boot.test.context.SpringBootTestAnnotation@3327dbe8], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
at java.base/java.util.Optional.orElseGet(Optional.java:364)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: java.lang.IllegalStateException: Failed to load ApplicationContext for [ReactiveWebMergedContextConfiguration@1145eb60 testClass = no.nb.mlt.wls.synq.controller.SynqControllerTest, locations = [], classes = [no.nb.mlt.wls.HermesApplication], contextInitializerClasses = [no.nb.mlt.wls.TestcontainerInitializer], activeProfiles = ["local-dev"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [[ImportsContextCustomizer@4a5c29dc key = [@no.nb.mlt.wls.EnableTestcontainers(), @org.springframework.test.context.ActiveProfiles(inheritProfiles=true, profiles={"local-dev"}, resolver=org.springframework.test.context.ActiveProfilesResolver.class, value={"local-dev"}), @org.springframework.context.annotation.Import(value={org.springframework.data.mongodb.repository.config.MongoRepositoriesRegistrar.class}), @org.springframework.boot.autoconfigure.ImportAutoConfiguration(classes={}, exclude={}, value={}), @org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient(timeout=""), @org.springframework.boot.test.context.SpringBootTest(args={}, classes={}, properties={}, useMainMethod=NEVER, value={}, webEnvironment=RANDOM_PORT), @org.springframework.data.mongodb.repository.config.EnableMongoRepositories(basePackageClasses={}, basePackages={}, considerNestedRepositories=false, createIndexesForQueryMethods=false, excludeFilters={}, includeFilters={}, mongoTemplateRef="mongoTemplate", namedQueriesLocation="", queryLookupStrategy=CREATE_IF_NOT_FOUND, repositoryBaseClass=org.springframework.data.repository.config.DefaultRepositoryBaseClass.class, repositoryFactoryBeanClass=org.springframework.data.mongodb.repository.support.MongoRepositoryFactoryBean.class, repositoryImplementationPostfix="Impl", value={"no.nb.mlt.wls"}), @org.springframework.test.context.ContextConfiguration(classes={}, inheritInitializers=true, inheritLocations=true, initializers={no.nb.mlt.wls.TestcontainerInitializer.class}, loader=org.springframework.test.context.ContextLoader.class, locations={}, name="", value={}), @org.springframework.test.context.BootstrapWith(value=org.springframework.boot.test.context.SpringBootTestContextBootstrapper.class), @org.springframework.context.annotation.Import(value={org.springframework.boot.autoconfigure.ImportAutoConfigurationImportSelector.class}), @org.springframework.boot.test.autoconfigure.properties.PropertyMapping(skip=NO, value="spring.test.webtestclient"), @org.apiguardian.api.API(consumers={"*"}, since="5.0", status=STABLE)]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3dc46f24, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@18e6b72b, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@602298b, org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizer@3611153f, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@ec54a5c9, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@72110818, MockkContextCustomizer(definitions=[[MockkDefinition@5d388611 name = [null], typeToMock = no.nb.mlt.wls.infrastructure.callbacks.InventoryNotifierAdapter, extraInterfaces = set[[empty]], clear = AFTER]]), org.springframework.boot.test.context.SpringBootTestAnnotation@3327dbe8], 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.junit.jupiter.SpringExtension.getApplicationContext(SpringExtension.java:355)
at org.springframework.test.context.junit.jupiter.SpringExtension.resolveParameter(SpringExtension.java:341)
... 2 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtDecoder' defined in class path resource [no/nb/mlt/wls/application/hostapi/config/SecurityConfig.class]: Failed to instantiate [org.springframework.security.oauth2.jwt.JwtDecoder]: Factory method 'jwtDecoder' threw exception with message: Unable to resolve the Configuration with the provided Issuer of "http://localhost:8082/realms/mlt-local"
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1337)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1167)
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:962)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:66)
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)
... 5 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.jwt.JwtDecoder]: Factory method 'jwtDecoder' threw exception with message: Unable to resolve the Configuration with the provided Issuer of "http://localhost:8082/realms/mlt-local"
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:177)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:644)
... 30 more
Caused by: java.lang.IllegalArgumentException: Unable to resolve the Configuration with the provided Issuer of "http://localhost:8082/realms/mlt-local"
at org.springframework.security.oauth2.jwt.JwtDecoderProviderConfigurationUtils.getConfiguration(JwtDecoderProviderConfigurationUtils.java:168)
at org.springframework.security.oauth2.jwt.JwtDecoderProviderConfigurationUtils.getConfigurationForIssuerLocation(JwtDecoderProviderConfigurationUtils.java:80)
at org.springframework.security.oauth2.jwt.NimbusJwtDecoder.lambda$withIssuerLocation$2(NimbusJwtDecoder.java:226)
at org.springframework.security.oauth2.jwt.NimbusJwtDecoder$JwkSetUriJwtDecoderBuilder.processor(NimbusJwtDecoder.java:389)
at org.springframework.security.oauth2.jwt.NimbusJwtDecoder$JwkSetUriJwtDecoderBuilder.build(NimbusJwtDecoder.java:405)
at org.springframework.security.oauth2.jwt.JwtDecoders.fromIssuerLocation(JwtDecoders.java:92)
at no.nb.mlt.wls.application.hostapi.config.SecurityConfig.jwtDecoder(SecurityConfig.kt:48)
at no.nb.mlt.wls.application.hostapi.config.SecurityConfig$$SpringCGLIB$$0.CGLIB$jwtDecoder$2(<generated>)
at no.nb.mlt.wls.application.hostapi.config.SecurityConfig$$SpringCGLIB$$FastClass$$1.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:339)
at no.nb.mlt.wls.application.hostapi.config.SecurityConfig$$SpringCGLIB$$0.jwtDecoder(<generated>)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:140)
... 31 more
Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:8082/realms/mlt-local/.well-known/openid-configuration": Connection refused
at org.springframework.web.client.RestTemplate.createResourceAccessException(RestTemplate.java:915)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:895)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:740)
at org.springframework.security.oauth2.jwt.JwtDecoderProviderConfigurationUtils.getConfiguration(JwtDecoderProviderConfigurationUtils.java:157)
... 44 more
Caused by: java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:589)
at java.base/sun.nio.ch.Net.connect(Net.java:578)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583)
at java.base/java.net.Socket.connect(Socket.java:751)
at java.base/java.net.Socket.connect(Socket.java:686)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:531)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:636)
at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:280)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:386)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:408)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1304)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1237)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1123)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1052)
at org.springframework.http.client.SimpleClientHttpRequest.executeInternal(SimpleClientHttpRequest.java:79)
at org.springframework.http.client.AbstractStreamingClientHttpRequest.executeInternal(AbstractStreamingClientHttpRequest.java:70)
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:66)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:889)
... 46 more
Loading