summaryrefslogtreecommitdiff
path: root/jstests/ssl
diff options
context:
space:
mode:
authorReo Kimura <reo.kimura@mongodb.com>2022-10-10 17:20:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-10 18:20:18 +0000
commit9d5bb60d991c246700db2dc1d619b7d72dcaf7e4 (patch)
tree8f1a778f9c21a52aa804908cb1369c8b5f2e9cbb /jstests/ssl
parent14c95154f87f06dc36471591b1006ccf9eadb45c (diff)
downloadmongo-9d5bb60d991c246700db2dc1d619b7d72dcaf7e4.tar.gz
SERVER-67285 Provide context to errorCodeToStatus()
Diffstat (limited to 'jstests/ssl')
-rw-r--r--jstests/ssl/ssl_alert_reporting.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/ssl/ssl_alert_reporting.js b/jstests/ssl/ssl_alert_reporting.js
index c8e700f833e..f9b44b215ef 100644
--- a/jstests/ssl/ssl_alert_reporting.js
+++ b/jstests/ssl/ssl_alert_reporting.js
@@ -20,21 +20,21 @@ function runTest(serverDisabledProtos, clientDisabledProtos) {
let expectedRegex;
if (implementation === "openssl") {
expectedRegex =
- /Error: couldn't connect to server .*:[0-9]*, connection attempt failed: SocketException: tlsv1 alert protocol version/;
+ /Error: couldn't connect to server .*:[0-9]*, connection attempt failed: SocketException: .*tlsv1 alert protocol version/;
// OpenSSL does not send alerts and TLS 1.3 is too difficult to identify as incompatible
// because it shows up in a TLS extension.
if (!sslProviderSupportsTLS1_1()) {
expectedRegex =
- /Error: couldn't connect to server .*:[0-9]*, connection attempt failed: SocketException: stream truncated/;
+ /Error: couldn't connect to server .*:[0-9]*, connection attempt failed: SocketException: .*stream truncated/;
}
} else if (implementation === "windows") {
expectedRegex =
- /Error: couldn't connect to server .*:[0-9]*, connection attempt failed: SocketException: The function requested is not supported/;
+ /Error: couldn't connect to server .*:[0-9]*, connection attempt failed: SocketException: .*The function requested is not supported/;
} else if (implementation === "apple") {
expectedRegex =
- /Error: couldn't connect to server .*:[0-9]*, connection attempt failed: SocketException: Secure.Transport: bad protocol version/;
+ /Error: couldn't connect to server .*:[0-9]*, connection attempt failed: SocketException: .*Secure.Transport: bad protocol version/;
} else {
throw Error("Unrecognized TLS implementation!");
}