Class io.micronaut.discovery.consul.ConsulMockHealthStatusSpec

1

tests

0

failures

0

ignored

0.420s

duration

100%

successful

Tests

Test Duration Result
test the consul service's health status is correct 0.420s passed

Standard output

00:18:49.043 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:49.045 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:49.153 [Test worker] DEBUG i.m.h.server.netty.NettyHttpServer - Binding server to port: 40201
00:18:49.158 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:49.160 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:49.221 [Test worker] DEBUG i.m.h.server.netty.NettyHttpServer - Binding server to port: 17325
00:18:49.258 [nioEventLoopGroup-20-5] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /v1/health/service/my-service?passing=false
00:18:49.258 [nioEventLoopGroup-20-5] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(40201)
00:18:49.258 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:49.258 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:49.258 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:49.258 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.259 [nioEventLoopGroup-20-4] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/agent/service/register
00:18:49.259 [nioEventLoopGroup-20-4] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(40201)
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - content-length: 124
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - {"Name":"my-service","Address":"localhost","Port":17325,"Checks":[{"Status":"passing","TTL":"25s"}],"ID":"my-service:17325"}
00:18:49.259 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.262 [nioEventLoopGroup-19-2] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:40201 Received Request: PUT /v1/agent/service/register
00:18:49.262 [nioEventLoopGroup-19-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/agent/service/register
00:18:49.263 [nioEventLoopGroup-19-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/agent/service/register to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:49.276 [nioEventLoopGroup-19-3] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:40201 Received Request: GET /v1/health/service/my-service?passing=false
00:18:49.277 [nioEventLoopGroup-19-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /v1/health/service/my-service
00:18:49.277 [nioEventLoopGroup-19-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /v1/health/service/my-service to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /v1/health/service/my-service?passing=false
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - content-length: 2
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - []
00:18:49.288 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/agent/service/register
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - [OK]
00:18:49.302 [nioEventLoopGroup-20-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.302 [nioEventLoopGroup-20-4] INFO  i.m.d.registration.AutoRegistration - Registered service [my-service] with Consul
00:18:49.398 [nioEventLoopGroup-20-3] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /v1/health/service/my-service?passing=false
00:18:49.398 [nioEventLoopGroup-20-3] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(40201)
00:18:49.398 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:49.398 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:49.398 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:49.398 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.399 [nioEventLoopGroup-19-4] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:40201 Received Request: GET /v1/health/service/my-service?passing=false
00:18:49.400 [nioEventLoopGroup-19-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /v1/health/service/my-service
00:18:49.400 [nioEventLoopGroup-19-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /v1/health/service/my-service to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /v1/health/service/my-service?passing=false
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - content-length: 259
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - [{"Node":{"Node":"2b6bea55-eb47-49f3-a74b-1efefcc41b80","Address":"travis-job-a660849b-dd9d-4605-8c3b-a79f5987bb08"},"Service":{"ID":"my-service:17325","Name":"my-service","Address":"localhost","Port":17325},"Checks":[{"Id":"my-service","Status":"passing"}]}]
00:18:49.410 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.413 [nioEventLoopGroup-20-5] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/agent/check/fail/service%3Amy-service%3A17325
00:18:49.413 [nioEventLoopGroup-20-5] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(40201)
00:18:49.413 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:49.414 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:49.414 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:49.414 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.415 [nioEventLoopGroup-19-5] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:40201 Received Request: PUT /v1/agent/check/fail/service%3Amy-service%3A17325
00:18:49.415 [nioEventLoopGroup-19-5] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/agent/check/fail/service%3Amy-service%3A17325
00:18:49.415 [nioEventLoopGroup-19-5] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/agent/check/fail/service%3Amy-service%3A17325 to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:49.420 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/agent/check/fail/service%3Amy-service%3A17325
00:18:49.421 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:49.421 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:49.421 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.421 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:49.421 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:49.421 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.421 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - [OK]
00:18:49.421 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.423 [nioEventLoopGroup-20-3] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /v1/health/service/my-service?passing=false
00:18:49.423 [nioEventLoopGroup-20-3] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(40201)
00:18:49.423 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:49.423 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:49.423 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:49.423 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.423 [nioEventLoopGroup-19-2] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:40201 Received Request: GET /v1/health/service/my-service?passing=false
00:18:49.423 [nioEventLoopGroup-19-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /v1/health/service/my-service
00:18:49.424 [nioEventLoopGroup-19-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /v1/health/service/my-service to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /v1/health/service/my-service?passing=false
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - content-length: 260
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - [{"Node":{"Node":"2b6bea55-eb47-49f3-a74b-1efefcc41b80","Address":"travis-job-a660849b-dd9d-4605-8c3b-a79f5987bb08"},"Service":{"ID":"my-service:17325","Name":"my-service","Address":"localhost","Port":17325},"Checks":[{"Id":"my-service","Status":"critical"}]}]
00:18:49.426 [nioEventLoopGroup-20-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.449 [nioEventLoopGroup-20-5] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/agent/service/deregister/my-service%3A17325
00:18:49.450 [nioEventLoopGroup-20-5] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(40201)
00:18:49.450 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:49.450 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:49.450 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:49.450 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.451 [nioEventLoopGroup-19-3] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:40201 Received Request: PUT /v1/agent/service/deregister/my-service%3A17325
00:18:49.451 [nioEventLoopGroup-19-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/agent/service/deregister/my-service%3A17325
00:18:49.451 [nioEventLoopGroup-19-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/agent/service/deregister/my-service%3A17325 to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:49.453 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/agent/service/deregister/my-service%3A17325
00:18:49.454 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:49.454 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:49.454 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:49.454 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:49.454 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:49.454 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.454 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - [OK]
00:18:49.454 [nioEventLoopGroup-20-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:49.454 [Test worker] INFO  i.m.d.registration.AutoRegistration - De-registered service [my-service] with Consul