Skip to content

Commit 41bf511

Browse files
authored
Update expected error message for slightly changed format (#115709)
1 parent 8c2e3d0 commit 41bf511

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/nio

1 file changed

+2
-2
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/nio/SSLDriverTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public void testHandshakeFailureBecauseProtocolMismatch() throws Exception {
172172
serverProtocols = new String[] { "TLSv1.2" };
173173
clientProtocols = new String[] { "TLSv1.1" };
174174
expectedMessageMatcher = anyOf(
175-
is("The client supported protocol versions [TLSv1.1] are not accepted by server preferences " + "[TLS12]"),
175+
is("The client supported protocol versions [TLSv1.1] are not accepted by server preferences " + "[TLS1.2]"),
176176
is("org.bouncycastle.tls.TlsFatalAlert: protocol_version(70)"),
177177
is("Client requested protocol TLSv1.1 " + "not enabled or not supported")
178178
);
@@ -185,7 +185,7 @@ public void testHandshakeFailureBecauseProtocolMismatch() throws Exception {
185185
serverProtocols = new String[] { "TLSv1.2" };
186186
clientProtocols = new String[] { "TLSv1.1" };
187187
expectedMessageMatcher = anyOf(
188-
is("The client supported protocol versions [TLSv1.1] are not accepted by server preferences [TLS12]"),
188+
is("The client supported protocol versions [TLSv1.1] are not accepted by server preferences [TLS1.2]"),
189189
is("Client requested protocol TLSv1.1 not enabled or not supported"),
190190
is("No appropriate protocol (protocol is disabled or cipher suites are inappropriate)")
191191
);

0 commit comments

Comments
 (0)