Class io.micronaut.discovery.consul.ConsulMockConfigurationClientJsonSpec

2

tests

0

failures

0

ignored

0.086s

duration

100%

successful

Tests

Test Duration Result
test discovery property sources from Consul with JSON handling 0.071s passed
test discovery property sources from Consul with invalid JSON 0.015s passed

Standard output

00:18:49.869 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:49.872 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:49.964 [Test worker] DEBUG i.m.h.server.netty.NettyHttpServer - Binding server to port: 17371
00:18:49.968 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:49.972 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:50.015 [nioEventLoopGroup-25-2] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.016 [nioEventLoopGroup-25-2] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(17371)
00:18:50.016 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:50.016 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:50.016 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:50.016 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.018 [nioEventLoopGroup-24-2] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:17371 Received Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.018 [nioEventLoopGroup-24-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /v1/kv/%2Fconfig%2Fapplication
00:18:50.019 [nioEventLoopGroup-24-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /v1/kv/%2Fconfig%2Fapplication to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:50.027 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.028 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:50.028 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:50.028 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-length: 2
00:18:50.028 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.028 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.028 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.028 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - []
00:18:50.028 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.030 [Test worker] INFO  i.m.d.c.c.DistributedPropertySourceLocator - Resolved 0 configuration sources from client: compositeConfigurationClient(consul)
00:18:50.061 [Test worker] DEBUG i.m.h.server.netty.NettyHttpServer - Binding server to port: 19188
00:18:50.079 [nioEventLoopGroup-25-4] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/kv/%2Fconfig%2Fapplication
00:18:50.079 [nioEventLoopGroup-25-4] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(17371)
00:18:50.080 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Content-Type: text/plain
00:18:50.080 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Accept: text/plain
00:18:50.080 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:50.080 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.080 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-length: 72
00:18:50.081 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.082 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.082 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - 
{ "datasource": { "url":"mysql://blah", "driver":"java.SomeDriver"} } 

00:18:50.082 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.086 [nioEventLoopGroup-24-3] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:17371 Received Request: PUT /v1/kv/%2Fconfig%2Fapplication
00:18:50.087 [nioEventLoopGroup-24-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/kv/%2Fconfig%2Fapplication
00:18:50.088 [nioEventLoopGroup-24-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/kv/%2Fconfig%2Fapplication to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/kv/%2Fconfig%2Fapplication
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-type: text/plain
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - true
00:18:50.092 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.094 [nioEventLoopGroup-25-2] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/kv/%2Fconfig%2Fapplication%2Ctest
00:18:50.094 [nioEventLoopGroup-25-2] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(17371)
00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Content-Type: text/plain
00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Accept: text/plain
00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-length: 19
00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - 
{ "foo":"bar"} } 

00:18:50.094 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.101 [nioEventLoopGroup-24-4] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:17371 Received Request: PUT /v1/kv/%2Fconfig%2Fapplication%2Ctest
00:18:50.103 [nioEventLoopGroup-24-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/kv/%2Fconfig%2Fapplication%2Ctest
00:18:50.103 [nioEventLoopGroup-24-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/kv/%2Fconfig%2Fapplication%2Ctest to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:50.106 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/kv/%2Fconfig%2Fapplication%2Ctest
00:18:50.106 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:50.107 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-type: text/plain
00:18:50.107 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:50.107 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.107 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.107 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.107 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - true
00:18:50.107 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.108 [nioEventLoopGroup-25-4] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/kv/%2Fconfig%2Fapplication%2Cother
00:18:50.108 [nioEventLoopGroup-25-4] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(17371)
00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Content-Type: text/plain
00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Accept: text/plain
00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-length: 19
00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - 
{ "foo":"baz"} } 

00:18:50.108 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.114 [nioEventLoopGroup-24-5] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:17371 Received Request: PUT /v1/kv/%2Fconfig%2Fapplication%2Cother
00:18:50.117 [nioEventLoopGroup-24-5] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/kv/%2Fconfig%2Fapplication%2Cother
00:18:50.118 [nioEventLoopGroup-24-5] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/kv/%2Fconfig%2Fapplication%2Cother to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/kv/%2Fconfig%2Fapplication%2Cother
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-type: text/plain
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - true
00:18:50.121 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.124 [nioEventLoopGroup-25-2] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.124 [nioEventLoopGroup-25-2] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(17371)
00:18:50.124 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:50.124 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:50.124 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:50.124 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.124 [nioEventLoopGroup-24-2] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:17371 Received Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.125 [nioEventLoopGroup-24-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /v1/kv/%2Fconfig%2Fapplication
00:18:50.125 [nioEventLoopGroup-24-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /v1/kv/%2Fconfig%2Fapplication to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:50.127 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.127 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:50.127 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:50.127 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-length: 284
00:18:50.127 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.128 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.128 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.128 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - [{"Key":"config/application","Value":"CnsgImRhdGFzb3VyY2UiOiB7ICJ1cmwiOiJteXNxbDovL2JsYWgiLCAiZHJpdmVyIjoiamF2YS5Tb21lRHJpdmVyIn0gfSAK"},{"Key":"config/application,test","Value":"CnsgImZvbyI6ImJhciJ9IH0gCg=="},{"Key":"config/application,other","Value":"CnsgImZvbyI6ImJheiJ9IH0gCg=="}]
00:18:50.128 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.138 [nioEventLoopGroup-25-4] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: PUT /v1/kv/%2Fconfig%2Fapplication
00:18:50.138 [nioEventLoopGroup-25-4] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(17371)
00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Content-Type: text/plain
00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Accept: text/plain
00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-length: 70
00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - 
{ "datasource": { "url":"mysql://blah", "driver":"java.SomeDriver} }

00:18:50.138 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.139 [nioEventLoopGroup-24-3] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:17371 Received Request: PUT /v1/kv/%2Fconfig%2Fapplication
00:18:50.139 [nioEventLoopGroup-24-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route PUT - /v1/kv/%2Fconfig%2Fapplication
00:18:50.140 [nioEventLoopGroup-24-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route PUT - /v1/kv/%2Fconfig%2Fapplication to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: PUT /v1/kv/%2Fconfig%2Fapplication
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-type: text/plain
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - true
00:18:50.142 [nioEventLoopGroup-25-4] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.145 [nioEventLoopGroup-25-2] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.145 [nioEventLoopGroup-25-2] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(17371)
00:18:50.145 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:50.145 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:50.145 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:50.145 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.145 [nioEventLoopGroup-24-4] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:17371 Received Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.145 [nioEventLoopGroup-24-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /v1/kv/%2Fconfig%2Fapplication
00:18:50.146 [nioEventLoopGroup-24-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /v1/kv/%2Fconfig%2Fapplication to controller class io.micronaut.discovery.consul.MockConsulServer
00:18:50.147 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /v1/kv/%2Fconfig%2Fapplication?recurse=true
00:18:50.148 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:50.148 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:50.148 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - content-length: 137
00:18:50.148 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:50.148 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:50.148 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:50.148 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - [{"Key":"config/application","Value":"CnsgImRhdGFzb3VyY2UiOiB7ICJ1cmwiOiJteXNxbDovL2JsYWgiLCAiZHJpdmVyIjoiamF2YS5Tb21lRHJpdmVyfSB9Cg=="}]
00:18:50.148 [nioEventLoopGroup-25-2] TRACE i.m.http.client.DefaultHttpClient - ----