Loosen expectation of TlsTcpWithHostnameVerificationSpec (#27394) (#27396)

This commit is contained in:
Arnout Engelen 2019-07-24 09:34:25 +02:00 committed by Christopher Batey
parent ccd2c9aff6
commit 6d4fbfc43d

View file

@ -207,11 +207,14 @@ class TlsTcpWithHostnameVerificationSpec
val rootB = RootActorPath(addressB) val rootB = RootActorPath(addressB)
systemB.actorOf(TestActors.echoActorProps, "echo") systemB.actorOf(TestActors.echoActorProps, "echo")
// The detailed warning message is either 'General SSLEngine problem'
// or 'No subject alternative names matching IP address 127.0.0.1 found'
// depending on JRE version.
EventFilter EventFilter
.warning( .warning(
pattern = pattern =
"outbound connection to \\[akka://systemB@127.0.0.1:.*" + "outbound connection to \\[akka://systemB@127.0.0.1:.*" +
"Upstream failed, cause: SSLHandshakeException: General SSLEngine problem", "Upstream failed, cause: SSLHandshakeException: .*",
occurrences = 3) occurrences = 3)
.intercept { .intercept {
system.actorSelection(rootB / "user" / "echo") ! Identify("echo") system.actorSelection(rootB / "user" / "echo") ! Identify("echo")