2020-02-12 12:54:53.433 INFO 652 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [uk.gov.dhsc.htbhf.eligibility.EligibilityServiceIntegrationTests], using SpringBootContextLoader
2020-02-12 12:54:53.434 INFO 652 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [uk.gov.dhsc.htbhf.eligibility.EligibilityServiceIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
2020-02-12 12:54:53.434 INFO 652 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [uk.gov.dhsc.htbhf.eligibility.EligibilityServiceIntegrationTests]: EligibilityServiceIntegrationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2020-02-12 12:54:53.439 INFO 652 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration uk.gov.dhsc.htbhf.eligibility.EligibilityServiceApplication for test class uk.gov.dhsc.htbhf.eligibility.EligibilityServiceIntegrationTests
2020-02-12 12:54:53.440 INFO 652 --- [ 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-02-12 12:54:53.441 INFO 652 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@29a4cc31, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@45be317d, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@598bb7a5, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@43be6df9, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4cf4e4fb, org.springframework.test.context.event.EventPublishingTestExecutionListener@78f511c1, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@7cc7a7e5, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@4ca6cc21, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@271e2a72, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@77354c49, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@360c35c5, org.springframework.cloud.contract.stubrunner.provider.wiremock.StubRunnerWireMockTestExecutionListener@4cb120e1, org.springframework.cloud.contract.wiremock.WireMockTestExecutionListener@1a2acebf]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.0.RELEASE)
2020-02-12 12:54:53.459 INFO 652 --- [ Test worker] d.h.e.EligibilityServiceIntegrationTests : Starting EligibilityServiceIntegrationTests on f060f5e78b62 with PID 652 (started by circleci in /home/circleci/project/api)
2020-02-12 12:54:53.460 INFO 652 --- [ Test worker] d.h.e.EligibilityServiceIntegrationTests : No active profile set, falling back to default profiles: default
2020-02-12 12:54:53.790 WARN 652 --- [ Test worker] org.apache.tomcat.util.modeler.Registry : The MBean registry cannot be disabled because it has already been initialised
2020-02-12 12:54:53.793 INFO 652 --- [ Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 0 (http)
2020-02-12 12:54:53.794 INFO 652 --- [ Test worker] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-02-12 12:54:53.795 INFO 652 --- [ Test worker] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.27]
2020-02-12 12:54:53.812 INFO 652 --- [ Test worker] o.a.c.c.C.[Tomcat-1].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-02-12 12:54:53.812 INFO 652 --- [ Test worker] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 350 ms
2020-02-12 12:54:54.164 INFO 652 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2020-02-12 12:54:54.517 INFO 652 --- [ Test worker] wiremock.org.eclipse.jetty.util.log : Logging initialized @10055ms
2020-02-12 12:54:54.654 INFO 652 --- [ Test worker] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2020-02-12 12:54:54.660 INFO 652 --- [ Test worker] u.g.d.h.e.EligibilityServiceApplication : Creating ThreadPoolTaskExecutor with min pool size 2 and max 200
2020-02-12 12:54:54.664 INFO 652 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'taskExecutor'
2020-02-12 12:54:54.829 INFO 652 --- [ Test worker] w.org.eclipse.jetty.server.Server : jetty-9.2.z-SNAPSHOT
2020-02-12 12:54:54.849 INFO 652 --- [ Test worker] w.o.e.j.server.handler.ContextHandler : Started w.o.e.j.s.ServletContextHandler@4cc2fe7c{/__admin,null,AVAILABLE}
2020-02-12 12:54:54.850 INFO 652 --- [ Test worker] w.o.e.j.server.handler.ContextHandler : Started w.o.e.j.s.ServletContextHandler@29be257{/,null,AVAILABLE}
2020-02-12 12:54:54.855 INFO 652 --- [ Test worker] w.o.e.j.s.NetworkTrafficServerConnector : Started NetworkTrafficServerConnector@55d55af{HTTP/1.1}{0.0.0.0:8110}
2020-02-12 12:54:54.855 INFO 652 --- [ Test worker] w.org.eclipse.jetty.server.Server : Started @10393ms
2020-02-12 12:54:54.856 INFO 652 --- [ Test worker] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2020-02-12 12:54:54.856 INFO 652 --- [ Test worker] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2020-02-12 12:54:54.860 INFO 652 --- [ Test worker] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references
2020-02-12 12:54:54.883 INFO 652 --- [ Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 44521 (http) with context path ''
2020-02-12 12:54:54.884 INFO 652 --- [ Test worker] d.h.e.EligibilityServiceIntegrationTests : Started EligibilityServiceIntegrationTests in 1.441 seconds (JVM running for 10.422)
2020-02-12 12:54:54.887 INFO 652 --- [ Test worker] uk.gov.dhsc.htbhf.logging.EventLogger : {"eventType":"APPLICATION_STARTED","timestamp":"2020-02-12T12:54:54.885789","applicationId":"","applicationVersion":"","instanceIndex":""}
2020-02-12 12:54:54.887 INFO 652 --- [ Test worker] u.g.d.h.eligibility.ApiDocumentation : Application started. App version=, app id=, instance index=
2020-02-12 12:54:54.976 INFO 652 --- [o-auto-2-exec-1] o.a.c.c.C.[Tomcat-1].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-02-12 12:54:54.977 INFO 652 --- [o-auto-2-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2020-02-12 12:54:54.984 INFO 652 --- [o-auto-2-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 7 ms
2020-02-12 12:54:55.162 INFO 652 --- [qtp899889715-58] / : RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'
2020-02-12 12:54:55.525 INFO 652 --- [qtp899889715-58] WireMock : Request received:
127.0.0.1 - GET /v2/dwp/eligibility
mobilePhoneNumber: [+447700900000]
Accept: [application/json, application/*+json]
postcode: [AA1 1AA]
ucMonthlyIncomeThreshold: [40800]
User-Agent: [Java/11.0.4]
Connection: [keep-alive]
dateOfBirth: [1985-12-31]
X-REQUEST-ID: [7a0bfdfa-8802-4b71-bd07-1a6f21218542]
Host: [localhost:8110]
nino: [MC123456C]
emailAddress: [homer@simpson.com]
surname: [Simpson]
addressLine1: [742 Evergreen Terrace]
eligibilityEndDate: [2020-02-12]
pregnantDependentDob: [2019-08-12]
X-SESSION-ID: []
Matched response definition:
{
"status" : 200,
"body" : "{\"eligibilityStatus\":\"confirmed\",\"deathVerificationFlag\":\"n/a\",\"mobilePhoneMatch\":\"matched\",\"emailAddressMatch\":\"matched\",\"addressLine1Match\":\"matched\",\"postcodeMatch\":\"matched\",\"pregnantChildDOBMatch\":\"not_supplied\",\"qualifyingBenefits\":\"universal_credit\",\"householdIdentifier\":\"dwpHousehold1\",\"dobOfChildrenUnder4\":[\"2019-08-12\",\"2018-02-12\"],\"identityStatus\":\"matched\"}",
"headers" : {
"Content-Type" : "application/json"
}
}
Response:
HTTP/1.1 200
Content-Type: [application/json]
Matched-Stub-Id: [f90ad386-3919-45b6-b5c1-8b28f71f9892]
2020-02-12 12:54:55.586 INFO 652 --- [qtp899889715-59] WireMock : Request received:
127.0.0.1 - GET /v2/dwp/eligibility
mobilePhoneNumber: [+447700900000]
Accept: [application/json, application/*+json]
postcode: [AA1 1AA]
ucMonthlyIncomeThreshold: [40800]
User-Agent: [Java/11.0.4]
Connection: [keep-alive]
dateOfBirth: [1985-12-31]
X-REQUEST-ID: [d3a873d6-cd1f-47f5-8994-e79a5e4863b5]
Host: [localhost:8110]
nino: [MC123456C]
emailAddress: [homer@simpson.com]
surname: [Simpson]
addressLine1: [742 Evergreen Terrace]
eligibilityEndDate: [2020-02-12]
pregnantDependentDob: [2019-08-12]
X-SESSION-ID: []
Matched response definition:
{
"status" : 500
}
Response:
HTTP/1.1 500
Matched-Stub-Id: [83d92f52-5fa9-490e-8ca9-5c9c0cc03ddd]
2020-02-12 12:54:55.600 ERROR 652 --- [o-auto-2-exec-2] u.g.d.htbhf.errorhandler.ErrorHandler : An error occurred during incoming POST request to /v2/eligibility: 500 Server Error (at org.springframework.web.client.HttpServerErrorException.create(HttpServerErrorException.java:79))
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 Server Error
at org.springframework.web.client.HttpServerErrorException.create(HttpServerErrorException.java:79) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:125) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:102) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:785) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:743) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:677) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:586) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at uk.gov.dhsc.htbhf.eligibility.service.DWPClient.checkIdentityAndEligibility(DWPClient.java:47) ~[main/:na]
at uk.gov.dhsc.htbhf.eligibility.service.IdentityAndEligibilityService.checkIdentityAndEligibility(IdentityAndEligibilityService.java:37) ~[main/:na]
at uk.gov.dhsc.htbhf.eligibility.controller.EligibilityController.getIdentityAndEligibilityDecision(EligibilityController.java:41) ~[main/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at uk.gov.dhsc.htbhf.requestcontext.RequestIdFilter.doFilterInternal(RequestIdFilter.java:55) ~[htbhf-common-rest-0.0.69.jar:na]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:108) ~[spring-boot-actuator-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1579) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
2020-02-12 12:54:55.630 INFO 652 --- [qtp899889715-60] WireMock : Request received:
127.0.0.1 - GET /v2/dwp/eligibility
mobilePhoneNumber: [+447700900000]
Accept: [application/json, application/*+json]
postcode: [AA1 1AA]
ucMonthlyIncomeThreshold: [40800]
User-Agent: [Java/11.0.4]
Connection: [keep-alive]
dateOfBirth: [1985-12-31]
X-REQUEST-ID: [cd3c5f24-53db-4fff-91b3-9cdc5cc0aa3c]
Host: [localhost:8110]
emailAddress: [homer@simpson.com]
surname: [Simpson]
addressLine1: [742 Evergreen Terrace]
eligibilityEndDate: [2020-02-12]
pregnantDependentDob: [2019-08-12]
X-SESSION-ID: []
Matched response definition:
{
"status" : 200,
"body" : "{\"eligibilityStatus\":\"confirmed\",\"deathVerificationFlag\":\"n/a\",\"mobilePhoneMatch\":\"not_supplied\",\"emailAddressMatch\":\"not_supplied\",\"addressLine1Match\":\"matched\",\"postcodeMatch\":\"matched\",\"pregnantChildDOBMatch\":\"not_supplied\",\"qualifyingBenefits\":\"universal_credit\",\"householdIdentifier\":\"dwpHousehold1\",\"dobOfChildrenUnder4\":[\"2019-08-12\",\"2018-02-12\"],\"identityStatus\":\"matched\"}",
"headers" : {
"Content-Type" : "application/json"
}
}
Response:
HTTP/1.1 200
Content-Type: [application/json]
Matched-Stub-Id: [f56bfdaa-12b6-4cc1-b9da-bfa6ffccdbab]
2020-02-12 12:54:55.665 ERROR 652 --- [o-auto-2-exec-4] u.g.d.htbhf.errorhandler.ErrorHandler : Binding error(s) during incoming POST request to /v2/eligibility: [ErrorResponse.FieldError(field=surname, message=must not be null)]
2020-02-12 12:54:55.681 WARN 652 --- [ 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-02-12 12:54:55.688 INFO 652 --- [ Test worker] w.o.e.j.s.NetworkTrafficServerConnector : Stopped NetworkTrafficServerConnector@55d55af{HTTP/1.1}{0.0.0.0:8110}
2020-02-12 12:54:55.690 INFO 652 --- [ Test worker] w.o.e.j.server.handler.ContextHandler : Stopped w.o.e.j.s.ServletContextHandler@29be257{/,null,UNAVAILABLE}
2020-02-12 12:54:55.690 INFO 652 --- [ Test worker] w.o.e.j.server.handler.ContextHandler : Stopped w.o.e.j.s.ServletContextHandler@4cc2fe7c{/__admin,null,UNAVAILABLE}
2020-02-12 12:54:55.691 WARN 652 --- [ Test worker] w.o.e.j.util.thread.QueuedThreadPool : qtp899889715{STOPPING,8<=8<=10,i=6,q=6} Couldn't stop Thread[qtp899889715-54,5,]
2020-02-12 12:54:55.691 WARN 652 --- [ Test worker] w.o.e.j.util.thread.QueuedThreadPool : qtp899889715{STOPPING,8<=8<=10,i=0,q=5} Couldn't stop Thread[qtp899889715-57,5,]
2020-02-12 12:54:55.692 INFO 652 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'taskExecutor'