Skip to content

[Test] TestContainers와 H2로 DB 테스트하기 #5

[Test] TestContainers와 H2로 DB 테스트하기

[Test] TestContainers와 H2로 DB 테스트하기 #5

Triggered via pull request December 7, 2024 17:31
Status Failure
Total duration 1m 44s
Artifacts

pr-ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 9 warnings
ShopApplicationTests.contextLoads(): src/test/java/com/example/shop/ShopApplicationTests.java#L1
java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@5a0f5567 testClass = com.example.shop.ShopApplicationTests, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
OrderDeliveryRepositoryTest.asyncDelete 메서드 테스트: src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@1030ce34 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@74c3374f key = [com.example.shop.global.config.RedisTestConfig, com.example.shop.global.config.BatchTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
OrderDeliveryRepositoryTest.existOrder 메서드 테스트: src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1030ce34 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@74c3374f key = [com.example.shop.global.config.RedisTestConfig, com.example.shop.global.config.BatchTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
OrderDeliveryRepositoryTest.popOrder 메서드 테스트: src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1030ce34 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@74c3374f key = [com.example.shop.global.config.RedisTestConfig, com.example.shop.global.config.BatchTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
OrderDeliveryRepositoryTest.addOrderEmail 메서드 테스트: src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1030ce34 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@74c3374f key = [com.example.shop.global.config.RedisTestConfig, com.example.shop.global.config.BatchTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
OrderDeliveryRepositoryTest.removeOrderEmail 메서드 테스트: src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@1030ce34 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@74c3374f key = [com.example.shop.global.config.RedisTestConfig, com.example.shop.global.config.BatchTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
EmailSenderTest.주문 배송 알림 이메일 송수신 테스트: src/test/java/com/example/shop/global/util/EmailSenderTest.java#L1
java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@7ceffb96 testClass = com.example.shop.global.util.EmailSenderTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@7645a8e8 key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
EmailSenderTest.이메일 인증 코드 송수신 테스트: src/test/java/com/example/shop/global/util/EmailSenderTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@7ceffb96 testClass = com.example.shop.global.util.EmailSenderTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@7645a8e8 key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
Test
Process completed with exit code 1.
asyncDelete 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed: com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
existOrder 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed: com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
popOrder 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed: com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
addOrderEmail 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed: com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
removeOrderEmail 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed: com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
contextLoads() (com.example.shop.ShopApplicationTests) failed: com.example.shop.ShopApplicationTests#L0
build/test-results/test/TEST-com.example.shop.ShopApplicationTests.xml [took 0s]
주문 배송 알림 이메일 송수신 테스트 (com.example.shop.global.util.EmailSenderTest) failed: com.example.shop.global.util.EmailSenderTest#L0
build/test-results/test/TEST-com.example.shop.global.util.EmailSenderTest.xml [took 0s]
이메일 인증 코드 송수신 테스트 (com.example.shop.global.util.EmailSenderTest) failed: com.example.shop.global.util.EmailSenderTest#L0
build/test-results/test/TEST-com.example.shop.global.util.EmailSenderTest.xml [took 0s]
Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636