Class io.micronaut.discovery.eureka.EurekaMockBasicAuthSpec

1

tests

0

failures

0

ignored

0.968s

duration

100%

successful

Tests

Test Duration Result
test authentication works 0.968s passed

Standard output

00:18:56.435 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:56.437 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:56.491 [Test worker] DEBUG i.m.h.server.netty.NettyHttpServer - Binding server to port: 7316
00:18:56.496 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:56.497 [Test worker] INFO  i.m.context.env.DefaultEnvironment - Established active environments: [test, cloud, gcp]
00:18:56.574 [Test worker] DEBUG i.m.h.server.netty.NettyHttpServer - Binding server to port: 57591
00:18:56.637 [Test worker] INFO  o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.0.2.Final
00:18:56.654 [Test worker] INFO  o.h.v.i.engine.ConfigurationImpl - HV000002: Ignoring XML configuration.
00:18:57.138 [nioEventLoopGroup-41-5] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /eureka/apps
00:18:57.150 [nioEventLoopGroup-41-5] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(7316)
00:18:57.150 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:57.150 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:57.145 [nioEventLoopGroup-41-3] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: POST /eureka/apps/authenticated-server
00:18:57.150 [nioEventLoopGroup-41-3] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(7316)
00:18:57.150 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:57.151 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:57.151 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Authorization: Basic Zm9vOmJhcg==
00:18:57.151 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:57.151 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.151 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - content-length: 751
00:18:57.151 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:57.150 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Authorization: Basic Zm9vOmJhcg==
00:18:57.151 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:57.151 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.151 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.152 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - {"instance":{"instanceId":"authenticated-server:57591","app":"authenticated-server","ipAddr":"127.0.0.1","port":{"@enabled":true,"$":57591},"securePort":{"@enabled":false,"$":0},"homePageUrl":"http://localhost:57591","statusPageUrl":"http://localhost:57591/health","healthCheckUrl":"http://localhost:57591/health","secureHealthCheckUrl":"https://localhost/health","vipAddress":"authenticated-server","secureVipAddress":"authenticated-server","countryId":1,"dataCenterInfo":{"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo","name":"MyOwn"},"hostName":"localhost","status":"UP","leaseInfo":{"renewalIntervalInSecs":30,"durationInSecs":90,"registrationTimestamp":0,"lastRenewalTimestamp":0,"evictionTimestamp":0,"serviceUpTimestamp":0}}}
00:18:57.152 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.152 [nioEventLoopGroup-40-3] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:7316 Received Request: GET /eureka/apps
00:18:57.152 [nioEventLoopGroup-40-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /eureka/apps
00:18:57.153 [nioEventLoopGroup-40-3] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /eureka/apps to controller class io.micronaut.discovery.eureka.MockEurekaServer
00:18:57.153 [nioEventLoopGroup-40-2] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:7316 Received Request: POST /eureka/apps/authenticated-server
00:18:57.153 [nioEventLoopGroup-40-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route POST - /eureka/apps/authenticated-server
00:18:57.154 [nioEventLoopGroup-40-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route POST - /eureka/apps/authenticated-server to controller class io.micronaut.discovery.eureka.MockEurekaServer
00:18:57.215 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /eureka/apps
00:18:57.216 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:57.216 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:57.216 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - content-length: 19
00:18:57.216 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.216 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:57.216 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.216 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - {"applications":{}}
00:18:57.216 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.227 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: POST /eureka/apps/authenticated-server
00:18:57.227 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:57.227 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:57.228 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.228 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - content-length: 12
00:18:57.228 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:57.228 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.228 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - [NO_CONTENT]
00:18:57.228 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.228 [nioEventLoopGroup-41-3] INFO  i.m.d.registration.AutoRegistration - Registered service [authenticated-server] with Eureka
00:18:57.327 [nioEventLoopGroup-41-3] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /eureka/apps
00:18:57.327 [nioEventLoopGroup-41-3] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(7316)
00:18:57.327 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:57.327 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:57.327 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Authorization: Basic Zm9vOmJhcg==
00:18:57.327 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:57.327 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.331 [nioEventLoopGroup-40-4] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:7316 Received Request: GET /eureka/apps
00:18:57.331 [nioEventLoopGroup-40-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /eureka/apps
00:18:57.331 [nioEventLoopGroup-40-4] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /eureka/apps to controller class io.micronaut.discovery.eureka.MockEurekaServer
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /eureka/apps
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - content-length: 819
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - {"applications":{"application":[{"name":"authenticated-server","instances":[{"instanceId":"authenticated-server:57591","app":"authenticated-server","ipAddr":"127.0.0.1","port":{"@enabled":true,"$":57591},"securePort":{"@enabled":false,"$":0},"homePageUrl":"http://localhost:57591","statusPageUrl":"http://localhost:57591/health","healthCheckUrl":"http://localhost:57591/health","secureHealthCheckUrl":"https://localhost/health","vipAddress":"authenticated-server","secureVipAddress":"authenticated-server","countryId":1,"dataCenterInfo":{"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo","name":"MyOwn"},"hostName":"localhost","status":"UP","leaseInfo":{"renewalIntervalInSecs":30,"durationInSecs":90,"registrationTimestamp":0,"lastRenewalTimestamp":0,"evictionTimestamp":0,"serviceUpTimestamp":0}}]}]}}
00:18:57.360 [nioEventLoopGroup-41-3] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.367 [nioEventLoopGroup-41-7] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: GET /eureka/apps
00:18:57.368 [nioEventLoopGroup-41-7] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(7316)
00:18:57.368 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:57.368 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.368 [nioEventLoopGroup-40-5] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:7316 Received Request: GET /eureka/apps
00:18:57.369 [nioEventLoopGroup-40-5] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /eureka/apps
00:18:57.369 [nioEventLoopGroup-40-5] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /eureka/apps to controller class io.micronaut.discovery.eureka.MockEurekaServer
00:18:57.371 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: GET /eureka/apps
00:18:57.372 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - Status Code: 403 Forbidden
00:18:57.372 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.372 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:57.372 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.372 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - 
00:18:57.372 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.372 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - Full HTTP response received an empty body
00:18:57.372 [nioEventLoopGroup-41-7] TRACE i.m.http.client.DefaultHttpClient - Unable to convert response body to target type class java.lang.String
00:18:57.382 [nioEventLoopGroup-41-5] DEBUG i.m.http.client.DefaultHttpClient - Sending HTTP Request: DELETE /eureka/apps/authenticated-server/authenticated-server%3A57591
00:18:57.382 [nioEventLoopGroup-41-5] DEBUG i.m.http.client.DefaultHttpClient - Chosen Server: localhost(7316)
00:18:57.382 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Content-Type: application/json
00:18:57.382 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Accept: application/json
00:18:57.382 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Authorization: Basic Zm9vOmJhcg==
00:18:57.382 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - host: localhost
00:18:57.382 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.383 [nioEventLoopGroup-40-2] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:7316 Received Request: DELETE /eureka/apps/authenticated-server/authenticated-server%3A57591
00:18:57.383 [nioEventLoopGroup-40-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route DELETE - /eureka/apps/authenticated-server/authenticated-server%3A57591
00:18:57.383 [nioEventLoopGroup-40-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route DELETE - /eureka/apps/authenticated-server/authenticated-server%3A57591 to controller class io.micronaut.discovery.eureka.MockEurekaServer
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - HTTP Client Response Received for Request: DELETE /eureka/apps/authenticated-server/authenticated-server%3A57591
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Status Code: 200 OK
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - content-type: application/json
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - connection: close
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - content-length: 4
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - Body
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - [OK]
00:18:57.388 [nioEventLoopGroup-41-5] TRACE i.m.http.client.DefaultHttpClient - ----
00:18:57.388 [Test worker] INFO  i.m.d.registration.AutoRegistration - De-registered service [authenticated-server] with Eureka