Class io.micronaut.discovery.consul.TtlHeartbeatSpec

1

tests

0

failures

0

ignored

5.146s

duration

100%

successful

Tests

Test Duration Result
test that the server reports a TTL heartbeat when configured to do so 5.146s passed

Standard output

00:18:50.617 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:50.619 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:50.686 [Test worker] DEBUG i.m.h.server.netty.NettyHttpServer - Binding server to port: 44607
00:18:50.689 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:50.691 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:50.733 [Test worker] DEBUG i.m.h.server.netty.NettyHttpServer - Binding server to port: 22672
00:18:50.767 [nioEventLoopGroup-33-3] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/agent/service/register
00:18:50.767 [nioEventLoopGroup-33-3] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(44607)
00:18:50.768 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:50.768 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:50.768 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:50.768 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.768 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - content-length: 124
00:18:50.768 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.769 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.769 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - {"Name":"my-service","Address":"localhost","Port":22672,"Checks":[{"Status":"passing","TTL":"11s"}],"ID":"my-service:22672"}
00:18:50.769 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.770 [nioEventLoopGroup-32-3] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:44607 Received Request: PUT /v1/agent/service/register
00:18:50.770 [nioEventLoopGroup-32-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/agent/service/register
00:18:50.771 [nioEventLoopGroup-32-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/agent/service/register to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/agent/service/register
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - [OK]
00:18:50.784 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.784 [nioEventLoopGroup-33-3] INFO  i.m.d.registration.AutoRegistration - Registered service [my-service] with Consul
00:18:53.783 [nioEventLoopGroup-33-5] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /v1/health/service/my-service?passing=false
00:18:53.783 [nioEventLoopGroup-33-5] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(44607)
00:18:53.784 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:53.784 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:53.784 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:53.784 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:53.791 [nioEventLoopGroup-32-4] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:44607 Received Request: GET /v1/health/service/my-service?passing=false
00:18:53.792 [nioEventLoopGroup-32-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /v1/health/service/my-service
00:18:53.793 [nioEventLoopGroup-32-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:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /v1/health/service/my-service?passing=false
00:18:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - content-length: 259
00:18:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - [{"Node":{"Node":"a824b021-2598-43d4-82e1-00e0ba3a3757","Address":"travis-job-a660849b-dd9d-4605-8c3b-a79f5987bb08"},"Service":{"ID":"my-service:22672","Name":"my-service","Address":"localhost","Port":22672},"Checks":[{"Id":"my-service","Status":"passing"}]}]
00:18:53.801 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:55.716 [nioEventLoopGroup-33-3] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/agent/check/pass/service%3Amy-service%3A22672
00:18:55.716 [nioEventLoopGroup-33-3] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(44607)
00:18:55.716 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:55.716 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:55.716 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:55.716 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:55.717 [nioEventLoopGroup-32-5] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:44607 Received Request: PUT /v1/agent/check/pass/service%3Amy-service%3A22672
00:18:55.717 [nioEventLoopGroup-32-5] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/agent/check/pass/service%3Amy-service%3A22672
00:18:55.717 [nioEventLoopGroup-32-5] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/agent/check/pass/service%3Amy-service%3A22672 to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:55.725 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/agent/check/pass/service%3Amy-service%3A22672
00:18:55.725 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:55.725 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:55.725 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:55.726 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:55.726 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:55.726 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:55.726 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - [OK]
00:18:55.726 [nioEventLoopGroup-33-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:55.736 [nioEventLoopGroup-33-5] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/agent/service/deregister/my-service%3A22672
00:18:55.736 [nioEventLoopGroup-33-5] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(44607)
00:18:55.736 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:55.736 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:55.736 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:55.736 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:55.737 [nioEventLoopGroup-32-2] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:44607 Received Request: PUT /v1/agent/service/deregister/my-service%3A22672
00:18:55.737 [nioEventLoopGroup-32-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/agent/service/deregister/my-service%3A22672
00:18:55.737 [nioEventLoopGroup-32-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/agent/service/deregister/my-service%3A22672 to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/agent/service/deregister/my-service%3A22672
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - [OK]
00:18:55.740 [nioEventLoopGroup-33-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:55.740 [Test worker] INFO  i.m.d.registration.AutoRegistration - De-registered service [my-service] with Consul