00:44:36.392 [main] DEBUG [ServletServerBuilder:createServletHandler:206] - adding servlet 'com.elastisys.scale.commons.net.alerter.http.WebhookServlet@10357889' at context path '/' with path spec '/*' and init-params {}
00:44:36.393 [main] DEBUG [ServletServerBuilder:addCrossOriginFilter:113] - enabling CORS support
00:44:36.394 [main] INFO  [Server:doStart:371] - jetty-9.4.12.v20180830; built: 2018-08-30T13:59:14.071Z; git: 27208684755d94a92186989f695db2d7b21ebc51; jvm 11.0.2+9-Ubuntu-3ubuntu118.04.3
00:44:36.405 [main] INFO  [DefaultSessionIdManager:doStart:365] - DefaultSessionIdManager workerName=node0
00:44:36.405 [main] INFO  [DefaultSessionIdManager:doStart:370] - No SessionScavenger set, using defaults
00:44:36.406 [main] INFO  [HouseKeeper:startScavenging:149] - node0 Scavenging every 660000ms
00:44:36.408 [main] INFO  [ContextHandler:doStart:850] - Started o.e.j.s.ServletContextHandler@460f1d09{/,null,AVAILABLE}
00:44:36.416 [main] INFO  [SslContextFactory:load:310] - x509=X509@5979cd9d(1,h=[],w=[]) for SslContextFactory@7dafb9f9[provider=null,keyStore=file:///home/simon/git/elastisys/scale.commons/target/checkout/net/src/test/resources/security/server/server_keystore.p12,trustStore=file:///home/simon/git/elastisys/scale.commons/target/checkout/net/src/test/resources/security/server/server_keystore.p12]
00:44:36.424 [main] INFO  [AbstractConnector:doStart:292] - Started ServerConnector@51afb1d2{SSL,[ssl, http/1.1]}{0.0.0.0:39681}
00:44:36.425 [main] INFO  [Server:doStart:408] - Started @15163ms
00:44:36.428 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic1","severity":"INFO","timestamp":"1970-01-01T00:00:00.002Z","message":"info message","metadata":{}}
00:44:36.431 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.451 [qtp2117012526-252] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic1",
  "severity": "INFO",
  "timestamp": "1970-01-01T00:00:00.002Z",
  "message": "info message",
  "metadata": {
    "key1": "value1",
    "key2": {
      "x": true,
      "y": "z"
    }
  }
}'
00:44:36.455 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic1","severity":"INFO","timestamp":"1970-01-01T00:00:00.002Z","message":"info message","metadata":{"key3":"value3"}}
00:44:36.457 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.491 [qtp2117012526-255] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic1",
  "severity": "INFO",
  "timestamp": "1970-01-01T00:00:00.002Z",
  "message": "info message",
  "metadata": {
    "key1": "value1",
    "key2": {
      "x": true,
      "y": "z"
    },
    "key3": "value3"
  }
}'
00:44:36.494 [main] TRACE [HttpAlerter:handleAlert:73] - suppressing alert message with severity DEBUG, as it doesn't match the severity filter 'WARN|ERROR'.
00:44:36.494 [main] TRACE [HttpAlerter:handleAlert:73] - suppressing alert message with severity INFO, as it doesn't match the severity filter 'WARN|ERROR'.
00:44:36.495 [main] TRACE [HttpAlerter:handleAlert:73] - suppressing alert message with severity NOTICE, as it doesn't match the severity filter 'WARN|ERROR'.
00:44:36.495 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic","severity":"WARN","timestamp":"2015-01-01T12:00:00.000Z","message":"msg","metadata":{}}
00:44:36.497 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.510 [qtp2117012526-252] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic",
  "severity": "WARN",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "msg",
  "metadata": {}
}'
00:44:36.513 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic","severity":"ERROR","timestamp":"2015-01-01T12:00:00.000Z","message":"msg","metadata":{}}
00:44:36.515 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.528 [qtp2117012526-255] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic",
  "severity": "ERROR",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "msg",
  "metadata": {}
}'
00:44:36.529 [main] TRACE [HttpAlerter:handleAlert:73] - suppressing alert message with severity FATAL, as it doesn't match the severity filter 'WARN|ERROR'.
00:44:36.531 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic","severity":"INFO","timestamp":"2015-01-01T12:00:00.000Z","message":"msg","metadata":{}}
00:44:36.532 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.544 [qtp2117012526-252] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic",
  "severity": "INFO",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "msg",
  "metadata": {}
}'
00:44:36.546 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic","severity":"INFO","timestamp":"2015-01-01T12:00:00.000Z","message":"msg","metadata":{}}
00:44:36.548 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.560 [qtp2117012526-255] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic",
  "severity": "INFO",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "msg",
  "metadata": {}
}'
00:44:36.563 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic1","severity":"DEBUG","timestamp":"1970-01-01T00:00:00.001Z","message":"debug message","metadata":{}}
00:44:36.565 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.577 [qtp2117012526-254] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic1",
  "severity": "DEBUG",
  "timestamp": "1970-01-01T00:00:00.001Z",
  "message": "debug message",
  "metadata": {}
}'
00:44:36.580 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic2","severity":"INFO","timestamp":"1970-01-01T00:00:00.002Z","message":"info message","metadata":{}}
00:44:36.582 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.596 [qtp2117012526-248] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic2",
  "severity": "INFO",
  "timestamp": "1970-01-01T00:00:00.002Z",
  "message": "info message",
  "metadata": {}
}'
00:44:36.602 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic3","severity":"NOTICE","timestamp":"1970-01-01T00:00:00.003Z","message":"notice message","metadata":{}}
00:44:36.603 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.618 [qtp2117012526-252] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic3",
  "severity": "NOTICE",
  "timestamp": "1970-01-01T00:00:00.003Z",
  "message": "notice message",
  "metadata": {}
}'
00:44:36.623 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic4","severity":"WARN","timestamp":"1970-01-01T00:00:00.004Z","message":"warn message","metadata":{}}
00:44:36.624 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.639 [qtp2117012526-248] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic4",
  "severity": "WARN",
  "timestamp": "1970-01-01T00:00:00.004Z",
  "message": "warn message",
  "metadata": {}
}'
00:44:36.642 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic5","severity":"ERROR","timestamp":"1970-01-01T00:00:00.005Z","message":"error message","metadata":{}}
00:44:36.643 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.657 [qtp2117012526-248] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic5",
  "severity": "ERROR",
  "timestamp": "1970-01-01T00:00:00.005Z",
  "message": "error message",
  "metadata": {}
}'
00:44:36.660 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic6","severity":"FATAL","timestamp":"1970-01-01T00:00:00.006Z","message":"fatal message","metadata":{"key1":"value1"}}
00:44:36.662 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.677 [qtp2117012526-248] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic6",
  "severity": "FATAL",
  "timestamp": "1970-01-01T00:00:00.006Z",
  "message": "fatal message",
  "metadata": {
    "key1": "value1"
  }
}'
00:44:36.681 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:39681/: {"topic":"topic","severity":"INFO","timestamp":"2015-01-01T12:00:00.000Z","message":"msg","metadata":{}}
00:44:36.682 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:39681/ HTTP/1.1)
00:44:36.697 [qtp2117012526-250] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic",
  "severity": "INFO",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "msg",
  "metadata": {}
}'
00:44:36.699 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://non.existing.host:443/: {"topic":"topic","severity":"INFO","timestamp":"2015-01-01T12:00:00.000Z","message":"msg","metadata":{}}
00:44:36.701 [main] DEBUG [Http:execute:82] - sending request (POST https://non.existing.host:443/ HTTP/1.1)
00:44:36.705 [main] WARN  [HttpAlerter:handleAlert:94] - failed to send alert to https://non.existing.host:443/: non.existing.host: Name or service not known
Alert message was: {
  "topic": "topic",
  "severity": "INFO",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "msg",
  "metadata": {}
}
java.net.UnknownHostException: non.existing.host: Name or service not known
	at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
	at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
	at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1515)
	at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
	at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1505)
	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1364)
	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1298)
	at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
	at com.elastisys.scale.commons.net.http.Http.execute(Http.java:83)
	at com.elastisys.scale.commons.net.http.client.AuthenticatedHttpClient.execute(AuthenticatedHttpClient.java:151)
	at com.elastisys.scale.commons.net.alerter.http.HttpAlerter.handleAlert(HttpAlerter.java:92)
	at com.elastisys.scale.commons.net.alerter.http.TestHttpAlerterBasicFunctionality.multipleDestinationsAndOneThatCannotBeReached(TestHttpAlerterBasicFunctionality.java:212)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
