summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2018-07-31 14:27:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2018-07-31 14:27:12 -0400
commit5606239eb18216e9b71706cd815827e5b64d8a1e (patch)
treef483cbc338a03c794407b1c6b36f0b4a0932be0e
parent9415ab5c1eb936dfcaed9f9a66cff0cc0a4d36dc (diff)
downloadmongo-5606239eb18216e9b71706cd815827e5b64d8a1e.tar.gz
SERVER-34558 Add server status for transport security protocol versions
-rw-r--r--jstests/ssl/ssl_count_protocols.js14
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");
+ }
})();