2020-01-24 14:04:27.795 INFO 719 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [uk.gov.dhsc.htbhf.hmrc.HMRCIntegrationTests], using SpringBootContextLoader
2020-01-24 14:04:27.796 INFO 719 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [uk.gov.dhsc.htbhf.hmrc.HMRCIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
2020-01-24 14:04:27.796 INFO 719 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [uk.gov.dhsc.htbhf.hmrc.HMRCIntegrationTests]: HMRCIntegrationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2020-01-24 14:04:27.801 INFO 719 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration uk.gov.dhsc.htbhf.hmrc.HMRCApplication for test class uk.gov.dhsc.htbhf.hmrc.HMRCIntegrationTests
2020-01-24 14:04:27.802 INFO 719 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.cloud.contract.stubrunner.provider.wiremock.StubRunnerWireMockTestExecutionListener, org.springframework.cloud.contract.wiremock.WireMockTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
2020-01-24 14:04:27.802 INFO 719 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@747fa8e5, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@7a7f0073, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@6a4eebb4, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@4198dd7c, org.springframework.test.context.support.DirtiesContextTestExecutionListener@48296d2a, org.springframework.test.context.transaction.TransactionalTestExecutionListener@4ad790c4, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@57d9c161, org.springframework.test.context.event.EventPublishingTestExecutionListener@502d85db, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@53eee2c9, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@254909c0, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3c0206c1, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@bd5fc7, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@24611db3, org.springframework.cloud.contract.stubrunner.provider.wiremock.StubRunnerWireMockTestExecutionListener@498b07f6, org.springframework.cloud.contract.wiremock.WireMockTestExecutionListener@65933408]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.2.RELEASE)
2020-01-24 14:04:27.822 INFO 719 --- [ Test worker] u.g.d.htbhf.hmrc.HMRCIntegrationTests : Starting HMRCIntegrationTests on 4549386f3d18 with PID 719 (started by circleci in /home/circleci/project/api)
2020-01-24 14:04:27.823 INFO 719 --- [ Test worker] u.g.d.htbhf.hmrc.HMRCIntegrationTests : No active profile set, falling back to default profiles: default
2020-01-24 14:04:28.147 INFO 719 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2020-01-24 14:04:28.158 INFO 719 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 10ms. Found 1 JPA repository interfaces.
2020-01-24 14:04:28.237 INFO 719 --- [ Test worker] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-01-24 14:04:28.337 WARN 719 --- [ Test worker] org.apache.tomcat.util.modeler.Registry : The MBean registry cannot be disabled because it has already been initialised
2020-01-24 14:04:28.340 INFO 719 --- [ Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 0 (http)
2020-01-24 14:04:28.341 INFO 719 --- [ Test worker] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-01-24 14:04:28.342 INFO 719 --- [ Test worker] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.29]
2020-01-24 14:04:28.365 INFO 719 --- [ Test worker] o.a.c.c.C.[Tomcat-1].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-01-24 14:04:28.365 INFO 719 --- [ Test worker] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 541 ms
2020-01-24 14:04:28.672 INFO 719 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Starting...
2020-01-24 14:04:28.674 INFO 719 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Start completed.
2020-01-24 14:04:28.675 INFO 719 --- [ Test worker] o.f.c.internal.database.DatabaseFactory : Database: jdbc:h2:mem:test (H2 1.4)
2020-01-24 14:04:28.688 INFO 719 --- [ Test worker] o.f.core.internal.command.DbValidate : Successfully validated 2 migrations (execution time 00:00.006s)
2020-01-24 14:04:28.703 INFO 719 --- [ Test worker] o.f.core.internal.command.DbMigrate : Current version of schema "PUBLIC": 1.002
2020-01-24 14:04:28.703 INFO 719 --- [ Test worker] o.f.core.internal.command.DbMigrate : Schema "PUBLIC" is up to date. No migration necessary.
2020-01-24 14:04:28.753 INFO 719 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2020-01-24 14:04:28.761 INFO 719 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2020-01-24 14:04:28.817 INFO 719 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2020-01-24 14:04:28.818 INFO 719 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-01-24 14:04:29.058 WARN 719 --- [ Test worker] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2020-01-24 14:04:29.145 INFO 719 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2020-01-24 14:04:29.500 INFO 719 --- [ Test worker] wiremock.org.eclipse.jetty.util.log : Logging initialized @16044ms
2020-01-24 14:04:29.678 INFO 719 --- [ Test worker] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2020-01-24 14:04:29.777 INFO 719 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-01-24 14:04:29.960 INFO 719 --- [ Test worker] w.org.eclipse.jetty.server.Server : jetty-9.2.z-SNAPSHOT
2020-01-24 14:04:29.988 INFO 719 --- [ Test worker] w.o.e.j.server.handler.ContextHandler : Started w.o.e.j.s.ServletContextHandler@3d8ff931{/__admin,null,AVAILABLE}
2020-01-24 14:04:29.989 INFO 719 --- [ Test worker] w.o.e.j.server.handler.ContextHandler : Started w.o.e.j.s.ServletContextHandler@3a756a55{/,null,AVAILABLE}
2020-01-24 14:04:29.994 INFO 719 --- [ Test worker] w.o.e.j.s.NetworkTrafficServerConnector : Started NetworkTrafficServerConnector@442be098{HTTP/1.1}{0.0.0.0:8130}
2020-01-24 14:04:29.995 INFO 719 --- [ Test worker] w.org.eclipse.jetty.server.Server : Started @16539ms
2020-01-24 14:04:29.995 INFO 719 --- [ Test worker] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2020-01-24 14:04:29.996 INFO 719 --- [ Test worker] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2020-01-24 14:04:30.001 INFO 719 --- [ Test worker] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references
2020-01-24 14:04:30.039 INFO 719 --- [ Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 38821 (http) with context path ''
2020-01-24 14:04:30.040 INFO 719 --- [ Test worker] u.g.d.htbhf.hmrc.HMRCIntegrationTests : Started HMRCIntegrationTests in 2.236 seconds (JVM running for 16.585)
2020-01-24 14:04:30.121 INFO 719 --- [o-auto-2-exec-1] o.a.c.c.C.[Tomcat-1].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-01-24 14:04:30.122 INFO 719 --- [o-auto-2-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2020-01-24 14:04:30.134 INFO 719 --- [o-auto-2-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 12 ms
2020-01-24 14:04:30.266 ERROR 719 --- [o-auto-2-exec-2] u.g.d.htbhf.errorhandler.ErrorHandler : Binding error(s) during incoming POST request to /v1/hmrc/eligibility: [ErrorResponse.FieldError(field=person.nino, message=must not be null)]
2020-01-24 14:04:30.496 WARN 719 --- [ Test worker] o.s.c.c.w.WireMockTestExecutionListener : You've used fixed ports for WireMock setup - will mark context as dirty. Please use random ports, as much as possible. Your tests will be faster and more reliable and this warning will go away
2020-01-24 14:04:30.503 INFO 719 --- [ Test worker] w.o.e.j.s.NetworkTrafficServerConnector : Stopped NetworkTrafficServerConnector@442be098{HTTP/1.1}{0.0.0.0:8130}
2020-01-24 14:04:30.504 INFO 719 --- [ Test worker] w.o.e.j.server.handler.ContextHandler : Stopped w.o.e.j.s.ServletContextHandler@3a756a55{/,null,UNAVAILABLE}
2020-01-24 14:04:30.505 INFO 719 --- [ Test worker] w.o.e.j.server.handler.ContextHandler : Stopped w.o.e.j.s.ServletContextHandler@3d8ff931{/__admin,null,UNAVAILABLE}
2020-01-24 14:04:30.506 WARN 719 --- [ Test worker] w.o.e.j.util.thread.QueuedThreadPool : qtp1977797168{STOPPING,8<=8<=10,i=4,q=5} Couldn't stop Thread[qtp1977797168-60,5,]
2020-01-24 14:04:30.506 WARN 719 --- [ Test worker] w.o.e.j.util.thread.QueuedThreadPool : qtp1977797168{STOPPING,8<=8<=10,i=0,q=4} Couldn't stop Thread[qtp1977797168-62,5,]
2020-01-24 14:04:30.506 INFO 719 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2020-01-24 14:04:30.510 INFO 719 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2020-01-24 14:04:30.512 INFO 719 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Shutdown initiated...
2020-01-24 14:04:30.518 INFO 719 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Shutdown completed.