diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-07-31 14:27:12 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-07-31 14:27:12 -0400 |
commit | 5606239eb18216e9b71706cd815827e5b64d8a1e (patch) | |
tree | f483cbc338a03c794407b1c6b36f0b4a0932be0e | |
parent | 9415ab5c1eb936dfcaed9f9a66cff0cc0a4d36dc (diff) | |
download | mongo-5606239eb18216e9b71706cd815827e5b64d8a1e.tar.gz |
SERVER-34558 Add server status for transport security protocol versions
-rw-r--r-- | jstests/ssl/ssl_count_protocols.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/jstests/ssl/ssl_count_protocols.js b/jstests/ssl/ssl_count_protocols.js index b902b4532dd..b19268a01ba 100644 --- a/jstests/ssl/ssl_count_protocols.js +++ b/jstests/ssl/ssl_count_protocols.js @@ -8,7 +8,12 @@ function runTestWithoutSubset(client) { let disabledProtocols = ["TLS1_0", "TLS1_1", "TLS1_2"]; - let expectedCounts = [0, 0, 1]; + let expectedCounts = [0, 0, 0]; + let clientIndex = 2; + if (getBuildInfo().buildEnvironment.target_os === "osx") { + clientIndex = 0; + } + expectedCounts[clientIndex] = 1; var index = disabledProtocols.indexOf(client); disabledProtocols.splice(index, 1); expectedCounts[index] += 1; @@ -49,7 +54,10 @@ } runTestWithoutSubset("TLS1_0"); - runTestWithoutSubset("TLS1_1"); - runTestWithoutSubset("TLS1_2"); + // OpenSSL 0.9.8 on macOS only supports TLS 1.0 + if (getBuildInfo().buildEnvironment.target_os !== "osx") { + runTestWithoutSubset("TLS1_1"); + runTestWithoutSubset("TLS1_2"); + } })(); |