blob: bbe002a2a040713df6df402b05f28f82f5e9471b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/**
* This test checks if different mixtures of ssl modes
* in a sharded clutster can or cannot function
*/
load("jstests/ssl/libs/ssl_helpers.js");
print("=== Testing disabled cluster ===");
mixedShardTest(disabled, disabled, true);
print("=== Testing disabled/preferSSL cluster - SHOULD FAIL ===");
mixedShardTest(disabled, preferSSL, false);
print("=== Testing allowSSL/disabled cluster ===");
mixedShardTest(disabled, allowSSL, true);
mixedShardTest(allowSSL, disabled, true);
print("=== Testing allowSSL/preferSSL cluster ===");
mixedShardTest(preferSSL, allowSSL, true);
mixedShardTest(allowSSL, preferSSL, true);
|