mirror of https://github.com/mongodb/mongo
SERVER-106351 Split mixed_mode_sharded_nossl to prevent timeouts (#37363)
GitOrigin-RevId: b271a283521a784ad55cc7bcb1ba79b8f2a2a377
This commit is contained in:
parent
5f5b1c8daf
commit
d3ecc8623a
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* 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 {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 disabled cluster ===");
|
||||
mixedShardTest(disabled, disabled, true);
|
||||
|
||||
print("=== Testing disabled/preferTLS cluster - SHOULD FAIL ===");
|
||||
mixedShardTest(disabled, preferTLS, false);
|
||||
mixedShardTest(preferTLS, disabled, false);
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* This test checks if different mixtures of ssl modes
|
||||
* in a sharded clutster can or cannot function
|
||||
* 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";
|
||||
|
|
@ -11,13 +12,6 @@ import {allowTLS, disabled, mixedShardTest, preferTLS} from "jstests/ssl/libs/ss
|
|||
// shard's config.cache.collections UUIDs, so it may fail.
|
||||
TestData.skipCheckingUUIDsConsistentAcrossCluster = true;
|
||||
|
||||
print("=== Testing disabled cluster ===");
|
||||
mixedShardTest(disabled, disabled, true);
|
||||
|
||||
print("=== Testing disabled/preferTLS cluster - SHOULD FAIL ===");
|
||||
mixedShardTest(disabled, preferTLS, false);
|
||||
mixedShardTest(preferTLS, disabled, false);
|
||||
|
||||
print("=== Testing allowTLS/disabled cluster ===");
|
||||
mixedShardTest(disabled, allowTLS, true);
|
||||
mixedShardTest(allowTLS, disabled, true);
|
||||
Loading…
Reference in New Issue