mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
20 lines
654 B
JavaScript
20 lines
654 B
JavaScript
/**
|
|
* This test checks if different mixtures of ssl modes
|
|
* in a sharded cluster can or cannot function
|
|
*/
|
|
load("jstests/ssl/libs/ssl_helpers.js");
|
|
|
|
print("=== Testing requireSSL/requireSSL cluster ===");
|
|
mixedShardTest(requireSSL, requireSSL, true);
|
|
|
|
print("=== Testing preferSSL/requireSSL cluster ===")
|
|
mixedShardTest(preferSSL, requireSSL, true);
|
|
mixedShardTest(requireSSL, preferSSL, true);
|
|
|
|
print("=== Testing allowSSL/preferSSL cluster ===");
|
|
mixedShardTest(preferSSL, allowSSL, true);
|
|
mixedShardTest(allowSSL, preferSSL, true);
|
|
|
|
print("=== Testing allowSSL/requireSSL cluster - SHOULD FAIL ===");
|
|
mixedShardTest(requireSSL, allowSSL, false);
|