mirror of https://github.com/mongodb/mongo
22 lines
929 B
JavaScript
22 lines
929 B
JavaScript
/**
|
|
* This test checks if different mixtures of ssl modes
|
|
* in a sharded clutster can or cannot function. This test is split in 2 parts since it was hitting
|
|
* timeouts in slow variants.
|
|
*/
|
|
|
|
import {allowTLS, disabled, mixedShardTest, preferTLS} from "jstests/ssl/libs/ssl_helpers.js";
|
|
|
|
// Due to mixed SSL mode settings, a shard will be unable to establish an outgoing
|
|
// connection to the config server in order to load relevant collection UUIDs into
|
|
// its config.cache.collections collection. The consistency check verifies the
|
|
// shard's config.cache.collections UUIDs, so it may fail.
|
|
TestData.skipCheckingUUIDsConsistentAcrossCluster = true;
|
|
|
|
print("=== Testing allowTLS/disabled cluster ===");
|
|
mixedShardTest(disabled, allowTLS, true);
|
|
mixedShardTest(allowTLS, disabled, true);
|
|
|
|
print("=== Testing allowTLS/preferTLS cluster ===");
|
|
mixedShardTest(preferTLS, allowTLS, true);
|
|
mixedShardTest(allowTLS, preferTLS, true);
|