mirror of https://github.com/mongodb/mongo
SERVER-79735 Convert jstest corpus to use es modules
This commit is contained in:
parent
cbb3da8712
commit
a4f458fe4d
252
.eslintrc.yml
252
.eslintrc.yml
|
|
@ -6,40 +6,220 @@ parserOptions:
|
||||||
ecmaVersion: 2022
|
ecmaVersion: 2022
|
||||||
sourceType: "module"
|
sourceType: "module"
|
||||||
|
|
||||||
|
extends: "eslint:recommended"
|
||||||
rules:
|
rules:
|
||||||
# Rules are documented at http://eslint.org/docs/rules/
|
no-prototype-builtins: 0
|
||||||
no-cond-assign: 2
|
no-useless-escape: 0
|
||||||
no-console: 2
|
no-irregular-whitespace: 0
|
||||||
no-control-regex: 2
|
no-inner-declarations: 0
|
||||||
no-debugger: 2
|
no-unused-vars: [0, { "varsIgnorePattern": "^_", "args": "none" }]
|
||||||
no-div-regex: 2
|
no-empty: 0
|
||||||
no-dupe-args: 2
|
no-redeclare: 0
|
||||||
no-dupe-keys: 2
|
no-constant-condition: 0
|
||||||
no-duplicate-case: 2
|
no-loss-of-precision: 0
|
||||||
no-empty-character-class: 2
|
|
||||||
no-empty-pattern: 2
|
globals:
|
||||||
no-ex-assign: 2
|
TestData: true
|
||||||
no-extra-boolean-cast: 2
|
# TODO(mbroadst): Remove the next line when ReplSetTest and ShardingTest are converted to modules.
|
||||||
no-extra-semi: 2
|
Thread: true
|
||||||
no-fallthrough: 2
|
ReplSetTest: true
|
||||||
no-func-assign: 2
|
ShardingTest: true
|
||||||
no-invalid-regexp: 2
|
WriteError: true
|
||||||
no-labels: 2
|
WriteCommandError: true
|
||||||
no-negated-in-lhs: 2
|
BulkWriteError: true
|
||||||
no-obj-calls: 2
|
DB: true
|
||||||
no-octal-escape: 2
|
DBCollection: true
|
||||||
no-octal: 2
|
DBQuery: true
|
||||||
no-regex-spaces: 2
|
DBExplainQuery: true
|
||||||
no-return-assign: 2
|
DBCommandCursor: true
|
||||||
no-script-url: 2
|
MongoBridge: true
|
||||||
no-self-compare: 2
|
MongoURI: true
|
||||||
no-sequences: 2
|
WriteConcern: true
|
||||||
no-sparse-arrays: 2
|
SessionOptions: true
|
||||||
no-unexpected-multiline: 2
|
CollInfos: true
|
||||||
no-unreachable: 2
|
CountDownLatch: true
|
||||||
no-unused-expressions: 2
|
|
||||||
no-useless-call: 2
|
# FCV-related
|
||||||
no-with: 2
|
latestFCV: true
|
||||||
semi: 2
|
lastLTSFCV: true
|
||||||
use-isnan: 2
|
lastContinuousFCV: true
|
||||||
valid-typeof: 2
|
checkFCV: true
|
||||||
|
isFCVEqual: true
|
||||||
|
binVersionToFCV: true
|
||||||
|
numVersionsSinceLastLTS: true
|
||||||
|
getFCVConstants: true
|
||||||
|
removeFCVDocument: true
|
||||||
|
targetFCV: true
|
||||||
|
|
||||||
|
assert: true
|
||||||
|
doassert: true
|
||||||
|
authutil: true
|
||||||
|
tojson: true
|
||||||
|
tojsononeline: true
|
||||||
|
tostrictjson: true
|
||||||
|
tojsonObject: true
|
||||||
|
print: true
|
||||||
|
printjson: true
|
||||||
|
printjsononeline: true
|
||||||
|
jsTest: true
|
||||||
|
jsTestLog: true
|
||||||
|
jsonTestLog: true
|
||||||
|
ErrorCodes: true
|
||||||
|
ErrorCodeStrings: true
|
||||||
|
checkProgram: true
|
||||||
|
Random: true
|
||||||
|
checkLog: true
|
||||||
|
sleep: true
|
||||||
|
resetDbpath: true
|
||||||
|
copyDbpath: true
|
||||||
|
jsTestName: true
|
||||||
|
startParallelShell: true
|
||||||
|
buildInfo: true
|
||||||
|
getBuildInfo: true
|
||||||
|
jsTestOptions: true
|
||||||
|
printShardingStatus: true
|
||||||
|
_getErrorWithCode: true
|
||||||
|
isNetworkError: true
|
||||||
|
__magicNoPrint: true
|
||||||
|
computeSHA256Block: true
|
||||||
|
emit: true
|
||||||
|
_awaitRSHostViaRSMonitor: true
|
||||||
|
convertShardKeyToHashed: true
|
||||||
|
benchRun: true
|
||||||
|
benchRunSync: true
|
||||||
|
gc: true
|
||||||
|
DataConsistencyChecker: true
|
||||||
|
isNumber: true
|
||||||
|
isObject: true
|
||||||
|
isString: true
|
||||||
|
_createSecurityToken: true
|
||||||
|
_isAddressSanitizerActive: true
|
||||||
|
allocatePort: true
|
||||||
|
allocatePorts: true
|
||||||
|
resetAllocatedPorts: true
|
||||||
|
bsonObjToArray: true
|
||||||
|
_writeTestPipeObjects: true
|
||||||
|
_writeTestPipe: true
|
||||||
|
_writeTestPipeBsonFile: true
|
||||||
|
_readTestPipes: true
|
||||||
|
runFeatureFlagMultiversionTest: true
|
||||||
|
isRetryableError: true
|
||||||
|
numberDecimalsAlmostEqual: true
|
||||||
|
numberDecimalsEqual: true
|
||||||
|
debug: true
|
||||||
|
bsonsize: true
|
||||||
|
globalAssertLevel: true
|
||||||
|
_DelegatingDriverSession: true
|
||||||
|
_DummyDriverSession: true
|
||||||
|
_ServerSession: true
|
||||||
|
sortDoc: true
|
||||||
|
executeNoThrowNetworkError: true
|
||||||
|
_readDumpFile: true
|
||||||
|
_openGoldenData: true
|
||||||
|
_writeGoldenData: true
|
||||||
|
_threadInject: true
|
||||||
|
port: true
|
||||||
|
_buildBsonObj: true
|
||||||
|
convertTrafficRecordingToBSON: true
|
||||||
|
_setShellFailPoint: true
|
||||||
|
shellHelper: true
|
||||||
|
_srand: true
|
||||||
|
_shouldUseImplicitSessions: true
|
||||||
|
testingReplication: true
|
||||||
|
myPort: true
|
||||||
|
retryOnNetworkError: true
|
||||||
|
getJSHeapLimitMB: true
|
||||||
|
_getEnv: true
|
||||||
|
indentStr: true
|
||||||
|
_forgetReplSet: true
|
||||||
|
|
||||||
|
# likely could be replaced with `path`
|
||||||
|
_copyFileRange: true
|
||||||
|
copyFile: true
|
||||||
|
writeFile: true
|
||||||
|
fileExists: true
|
||||||
|
pathExists: true
|
||||||
|
umask: true
|
||||||
|
getFileMode: true
|
||||||
|
|
||||||
|
# likely could be replaced with `child_process`
|
||||||
|
MongoRunner: true
|
||||||
|
run: true
|
||||||
|
runProgram: true
|
||||||
|
runMongoProgram: true
|
||||||
|
runNonMongoProgram: true
|
||||||
|
_runMongoProgram: true
|
||||||
|
_startMongoProgram: true
|
||||||
|
startMongoProgram: true
|
||||||
|
_stopMongoProgram: true
|
||||||
|
stopMongoProgramByPid: true
|
||||||
|
clearRawMongoProgramOutput: true
|
||||||
|
rawMongoProgramOutput: true
|
||||||
|
waitProgram: true
|
||||||
|
waitMongoProgram: true
|
||||||
|
_runningMongoChildProcessIds: true
|
||||||
|
startMongoProgramNoConnect: true
|
||||||
|
|
||||||
|
# shell-specific
|
||||||
|
shellPrintHelper: true
|
||||||
|
shellAutocomplete: true
|
||||||
|
__autocomplete__: true
|
||||||
|
getActiveCommands: true
|
||||||
|
defaultPrompt: true
|
||||||
|
___it___: true
|
||||||
|
__promptWrapper__: true
|
||||||
|
passwordPrompt: true
|
||||||
|
isInteractive: true
|
||||||
|
|
||||||
|
# built-in BSON types and helpers
|
||||||
|
Code: true
|
||||||
|
MaxKey: true
|
||||||
|
MinKey: true
|
||||||
|
HexData: true
|
||||||
|
DBPointer: true
|
||||||
|
DBRef: true
|
||||||
|
BinData: true
|
||||||
|
NumberLong: true
|
||||||
|
NumberDecimal: true
|
||||||
|
Timestamp: true
|
||||||
|
MD5: true
|
||||||
|
Geo: true
|
||||||
|
bsonWoCompare: true
|
||||||
|
bsonUnorderedFieldsCompare: true
|
||||||
|
bsonBinaryEqual: true
|
||||||
|
friendlyEqual: true
|
||||||
|
timestampCmp: true
|
||||||
|
decompressBSONColumn: true
|
||||||
|
|
||||||
|
hex_md5: true
|
||||||
|
QueryHelpers: true
|
||||||
|
chatty: true
|
||||||
|
DriverSession: true
|
||||||
|
ToolTest: true
|
||||||
|
uncheckedParallelShellPidsString: true
|
||||||
|
_shouldRetryWrites: true
|
||||||
|
|
||||||
|
# from_cpp:
|
||||||
|
__prompt__: true
|
||||||
|
_replMonitorStats: true
|
||||||
|
|
||||||
|
# explainable.js
|
||||||
|
Explainable: true
|
||||||
|
|
||||||
|
# utils.js
|
||||||
|
_verboseShell: true
|
||||||
|
__quiet: true
|
||||||
|
printStackTrace: true
|
||||||
|
setVerboseShell: true
|
||||||
|
_barFormat: true
|
||||||
|
compare: true
|
||||||
|
compareOn: true
|
||||||
|
shellPrint: true
|
||||||
|
_originalPrint: true
|
||||||
|
disablePrint: true
|
||||||
|
enablePrint: true
|
||||||
|
replSetMemberStatePrompt: true
|
||||||
|
helloStatePrompt: true
|
||||||
|
_validateMemberIndex: true
|
||||||
|
help: true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,11 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js'); load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
logRetryAttempts: true
|
logRetryAttempts: true
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,11 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js'); load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
logRetryAttempts: true
|
logRetryAttempts: true
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,11 @@ executor:
|
||||||
tests: true
|
tests: true
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/set_read_and_write_concerns.js"); load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
alwaysInjectTransactionNumber: true
|
alwaysInjectTransactionNumber: true
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/set_read_preference_secondary.js');
|
await import('jstests/libs/override_methods/set_read_preference_secondary.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/set_read_preference_secondary.js');; load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/set_read_preference_secondary.js');;
|
||||||
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');;
|
await import('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,9 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/set_read_preference_secondary.js');; load('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');
|
await import('jstests/libs/override_methods/set_read_preference_secondary.js');;
|
||||||
|
await import('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/set_read_preference_secondary.js');; load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
await import('jstests/libs/override_methods/set_read_preference_secondary.js');;
|
||||||
load('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
||||||
|
await import('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
||||||
load('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');;
|
await import('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/implicit_whole_db_changestreams.js');;
|
await import('jstests/libs/override_methods/implicit_whole_db_changestreams.js');;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,9 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/set_read_preference_secondary.js');; load('jstests/libs/override_methods/implicit_whole_db_changestreams.js');
|
await import('jstests/libs/override_methods/set_read_preference_secondary.js');;
|
||||||
|
await import('jstests/libs/override_methods/implicit_whole_db_changestreams.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/set_read_preference_secondary.js');; load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
await import('jstests/libs/override_methods/set_read_preference_secondary.js');;
|
||||||
load('jstests/libs/override_methods/implicit_whole_db_changestreams.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
||||||
|
await import('jstests/libs/override_methods/implicit_whole_db_changestreams.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/set_read_and_write_concerns.js');;
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');;
|
||||||
load('jstests/libs/override_methods/implicit_whole_db_changestreams.js');;
|
await import('jstests/libs/override_methods/implicit_whole_db_changestreams.js');;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: null
|
defaultReadConcernLevel: null
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
crashOnInvalidBSONError: ''
|
crashOnInvalidBSONError: ''
|
||||||
eval: load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
eval: await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
objcheck: ''
|
objcheck: ''
|
||||||
fixture:
|
fixture:
|
||||||
class: MongoDFixture
|
class: MongoDFixture
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
crashOnInvalidBSONError: ''
|
crashOnInvalidBSONError: ''
|
||||||
eval: load("jstests/libs/override_methods/detect_spawning_own_mongod.js");;
|
eval: await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");;
|
||||||
load("jstests/libs/override_methods/rerun_queries.js");; load("jstests/libs/override_methods/find_batch_size.js");
|
await import("jstests/libs/override_methods/rerun_queries.js");; await import("jstests/libs/override_methods/find_batch_size.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
batchSize: 2
|
batchSize: 2
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
crashOnInvalidBSONError: ''
|
crashOnInvalidBSONError: ''
|
||||||
eval: load("jstests/libs/override_methods/detect_spawning_own_mongod.js");;
|
eval: await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");;
|
||||||
load("jstests/libs/override_methods/find_batch_size.js");
|
await import("jstests/libs/override_methods/find_batch_size.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
batchSize: 2
|
batchSize: 2
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
crashOnInvalidBSONError: ''
|
crashOnInvalidBSONError: ''
|
||||||
eval: load("jstests/libs/override_methods/detect_spawning_own_mongod.js");;
|
eval: await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");;
|
||||||
load("jstests/libs/override_methods/rerun_queries.js");
|
await import("jstests/libs/override_methods/rerun_queries.js");
|
||||||
objcheck: ''
|
objcheck: ''
|
||||||
fixture:
|
fixture:
|
||||||
class: MongoDFixture
|
class: MongoDFixture
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,11 @@ executor:
|
||||||
tests: true
|
tests: true
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/set_read_and_write_concerns.js"); load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
alwaysInjectTransactionNumber: true
|
alwaysInjectTransactionNumber: true
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,11 @@ executor:
|
||||||
tests: true
|
tests: true
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/set_read_and_write_concerns.js"); load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
alwaysInjectTransactionNumber: true
|
alwaysInjectTransactionNumber: true
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,11 @@ executor:
|
||||||
tests: true
|
tests: true
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/set_read_and_write_concerns.js"); load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
alwaysInjectTransactionNumber: true
|
alwaysInjectTransactionNumber: true
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,11 @@ executor:
|
||||||
tests: true
|
tests: true
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/set_read_and_write_concerns.js"); load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
alwaysInjectTransactionNumber: true
|
alwaysInjectTransactionNumber: true
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/implicitly_shard_accessed_collections.js")
|
eval: await import("jstests/libs/override_methods/implicitly_shard_accessed_collections.js");
|
||||||
fixture:
|
fixture:
|
||||||
class: ShardedClusterFixture
|
class: ShardedClusterFixture
|
||||||
enable_balancer: false
|
enable_balancer: false
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/implicitly_shard_accessed_collections.js")
|
eval: await import("jstests/libs/override_methods/implicitly_shard_accessed_collections.js");
|
||||||
fixture:
|
fixture:
|
||||||
class: ShardedClusterFixture
|
class: ShardedClusterFixture
|
||||||
enable_balancer: false
|
enable_balancer: false
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,11 @@ executor:
|
||||||
tests: true
|
tests: true
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/set_read_and_write_concerns.js"); load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
alwaysInjectTransactionNumber: true
|
alwaysInjectTransactionNumber: true
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,11 @@ executor:
|
||||||
tests: true
|
tests: true
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: globalThis.testingReplication = true; load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
eval: globalThis.testingReplication = true; await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString); load("jstests/libs/override_methods/enable_sessions.js");
|
globalThis.db = connect(TestData.connectionString); await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/set_read_and_write_concerns.js"); load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
alwaysInjectTransactionNumber: true
|
alwaysInjectTransactionNumber: true
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
# the ones we always want
|
# the ones we always want
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
|
|
||||||
- name: causal_consistency
|
- name: causal_consistency
|
||||||
value:
|
value:
|
||||||
eval: load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
eval: await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
|
|
||||||
- name: base_eval
|
- name: base_eval
|
||||||
value:
|
value:
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
# to get rid of causal consistency
|
# to get rid of causal consistency
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
|
|
||||||
- name: mongos_passthrough
|
- name: mongos_passthrough
|
||||||
value:
|
value:
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
|
|
||||||
- name: sharded_collections_passthrough_eval
|
- name: sharded_collections_passthrough_eval
|
||||||
value:
|
value:
|
||||||
eval: "load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');"
|
eval: "await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');"
|
||||||
|
|
||||||
- name: secondary_reads
|
- name: secondary_reads
|
||||||
value:
|
value:
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
|
|
||||||
- name: secondary_reads_eval
|
- name: secondary_reads_eval
|
||||||
value:
|
value:
|
||||||
eval: load('jstests/libs/override_methods/set_read_preference_secondary.js');
|
eval: await import('jstests/libs/override_methods/set_read_preference_secondary.js');
|
||||||
|
|
||||||
- name: disable_write_noops
|
- name: disable_write_noops
|
||||||
value:
|
value:
|
||||||
|
|
@ -130,8 +130,8 @@
|
||||||
|
|
||||||
- name: whole_db_eval
|
- name: whole_db_eval
|
||||||
value:
|
value:
|
||||||
eval: "load('jstests/libs/override_methods/implicit_whole_db_changestreams.js');"
|
eval: "await import('jstests/libs/override_methods/implicit_whole_db_changestreams.js');"
|
||||||
|
|
||||||
- name: whole_cluster_eval
|
- name: whole_cluster_eval
|
||||||
value:
|
value:
|
||||||
eval: "load('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');"
|
eval: "await import('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');"
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,12 @@
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString);
|
globalThis.db = connect(TestData.connectionString);
|
||||||
load("jstests/libs/override_methods/enable_sessions.js");
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
await import("jstests/libs/override_methods/set_read_and_write_concerns.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
alwaysInjectTransactionNumber: true
|
alwaysInjectTransactionNumber: true
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
- name: enable_eval
|
- name: enable_eval
|
||||||
value:
|
value:
|
||||||
eval: load("jstests/libs/override_methods/find_batch_size.js");
|
eval: await import("jstests/libs/override_methods/find_batch_size.js");
|
||||||
|
|
||||||
- name: excluded_files
|
- name: excluded_files
|
||||||
value:
|
value:
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
# cache -- do not affect correctness.
|
# cache -- do not affect correctness.
|
||||||
- name: enable_eval
|
- name: enable_eval
|
||||||
value:
|
value:
|
||||||
eval: load("jstests/libs/override_methods/rerun_queries.js");
|
eval: await import("jstests/libs/override_methods/rerun_queries.js");
|
||||||
|
|
||||||
- name: excluded_files
|
- name: excluded_files
|
||||||
value:
|
value:
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
eval: await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
- class: CleanEveryN
|
- class: CleanEveryN
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ executor:
|
||||||
# This override method helps some tests remain applicable in the passthrough by hiding the
|
# This override method helps some tests remain applicable in the passthrough by hiding the
|
||||||
# column store indexes from 'listIndexes' output, so tests can still see only a list of
|
# column store indexes from 'listIndexes' output, so tests can still see only a list of
|
||||||
# indexes that the test itself created.
|
# indexes that the test itself created.
|
||||||
eval: load("jstests/libs/override_methods/hide_column_store_indexes_from_get_indexes.js")
|
eval: await import("jstests/libs/override_methods/hide_column_store_indexes_from_get_indexes.js")
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
- class: CleanEveryN
|
- class: CleanEveryN
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/implicitly_wrap_pipelines_in_facets.js");
|
eval: await import("jstests/libs/override_methods/implicitly_wrap_pipelines_in_facets.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
- class: CleanEveryN
|
- class: CleanEveryN
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
# Use an override to error if a test starts its own test fixture since such a test should not
|
# Use an override to error if a test starts its own test fixture since such a test should not
|
||||||
# be part of this passthrough.
|
# be part of this passthrough.
|
||||||
eval: load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
eval: await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
- class: CheckMetadataConsistencyInBackground
|
- class: CheckMetadataConsistencyInBackground
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ executor:
|
||||||
# Use the overrides to implicitly shard all accessed collections, and to error if a test
|
# Use the overrides to implicitly shard all accessed collections, and to error if a test
|
||||||
# starts its own test fixture - since such a test should not be part of this passthrough.
|
# starts its own test fixture - since such a test should not be part of this passthrough.
|
||||||
eval: >-
|
eval: >-
|
||||||
load("jstests/libs/override_methods/implicitly_shard_accessed_collections.js");
|
await import("jstests/libs/override_methods/implicitly_shard_accessed_collections.js");
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
- class: CheckMetadataConsistencyInBackground
|
- class: CheckMetadataConsistencyInBackground
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ executor:
|
||||||
enableMajorityReadConcern: ''
|
enableMajorityReadConcern: ''
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,8 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
load("jstests/libs/override_methods/rerun_queries.js");
|
await import("jstests/libs/override_methods/rerun_queries.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
- class: CleanEveryN
|
- class: CleanEveryN
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,8 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency.js');
|
||||||
load('jstests/libs/override_methods/detect_spawning_own_mongod.js');
|
await import('jstests/libs/override_methods/detect_spawning_own_mongod.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -59,9 +59,9 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency.js');
|
||||||
load('jstests/libs/override_methods/detect_spawning_own_mongod.js');
|
await import('jstests/libs/override_methods/detect_spawning_own_mongod.js');
|
||||||
load("jstests/libs/override_methods/implicitly_shard_accessed_collections.js")
|
await import("jstests/libs/override_methods/implicitly_shard_accessed_collections.js")
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/implicitly_shard_accessed_collections.js")
|
eval: await import("jstests/libs/override_methods/implicitly_shard_accessed_collections.js")
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
- class: CheckMetadataConsistencyInBackground
|
- class: CheckMetadataConsistencyInBackground
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
load("jstests/libs/override_methods/implicitly_configure_query_analyzer.js");
|
await import("jstests/libs/override_methods/implicitly_configure_query_analyzer.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: AnalyzeShardKeysInBackground
|
- class: AnalyzeShardKeysInBackground
|
||||||
- class: CheckReplOplogs
|
- class: CheckReplOplogs
|
||||||
|
|
|
||||||
|
|
@ -67,8 +67,8 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
load("jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js");
|
await import("jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js");
|
||||||
load('jstests/libs/override_methods/enable_hedged_reads.js');
|
await import('jstests/libs/override_methods/enable_hedged_reads.js');
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
- class: CheckMetadataConsistencyInBackground
|
- class: CheckMetadataConsistencyInBackground
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/enable_causal_consistency.js")
|
eval: await import("jstests/libs/override_methods/enable_causal_consistency.js")
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
- class: CheckMetadataConsistencyInBackground
|
- class: CheckMetadataConsistencyInBackground
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ executor:
|
||||||
db.getSiblingDB(jsTest.options().authenticationDatabase).logout();
|
db.getSiblingDB(jsTest.options().authenticationDatabase).logout();
|
||||||
db.auth(username, password);
|
db.auth(username, password);
|
||||||
})();
|
})();
|
||||||
load("jstests/libs/override_methods/enable_causal_consistency.js");
|
await import("jstests/libs/override_methods/enable_causal_consistency.js");
|
||||||
<<: *authOptions
|
<<: *authOptions
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
hooks:
|
hooks:
|
||||||
# We don't execute dbHash or oplog consistency checks since there is only a single replica set
|
# We don't execute dbHash or oplog consistency checks since there is only a single replica set
|
||||||
# node.
|
# node.
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,8 @@ executor:
|
||||||
defaultReadConcernLevel: snapshot
|
defaultReadConcernLevel: snapshot
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load("jstests/libs/override_methods/enable_causal_consistency.js");
|
await import("jstests/libs/override_methods/enable_causal_consistency.js");
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ executor:
|
||||||
# point to advance to the timestamp of the last write before doing a new read.
|
# point to advance to the timestamp of the last write before doing a new read.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -363,12 +363,12 @@ executor:
|
||||||
# uses_parallel_shell tags to denylist tests that uses them unsafely.
|
# uses_parallel_shell tags to denylist tests that uses them unsafely.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString);
|
globalThis.db = connect(TestData.connectionString);
|
||||||
load("jstests/libs/override_methods/enable_sessions.js");
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
logRetryAttempts: true
|
logRetryAttempts: true
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,9 @@ executor:
|
||||||
# change_streams.yml for detailed explanation.
|
# change_streams.yml for detailed explanation.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_sessions.js');
|
await import('jstests/libs/override_methods/enable_sessions.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
- class: CheckMetadataConsistencyInBackground
|
- class: CheckMetadataConsistencyInBackground
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,10 @@ executor:
|
||||||
# Enable the transactions passthrough.
|
# Enable the transactions passthrough.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/enable_sessions.js');
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import("jstests/libs/override_methods/txn_passthrough_cmd_massage.js");
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import("jstests/libs/override_methods/network_error_and_txn_override.js");
|
||||||
load('jstests/libs/override_methods/implicit_filter_eot_changestreams.js');
|
await import("jstests/libs/override_methods/implicit_filter_eot_changestreams.js");
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -31,10 +31,10 @@ executor:
|
||||||
# Enable the transactions passthrough.
|
# Enable the transactions passthrough.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/enable_sessions.js');
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import("jstests/libs/override_methods/txn_passthrough_cmd_massage.js");
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import("jstests/libs/override_methods/network_error_and_txn_override.js");
|
||||||
load('jstests/libs/override_methods/implicit_filter_eot_changestreams.js');
|
await import("jstests/libs/override_methods/implicit_filter_eot_changestreams.js");
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,10 @@ executor:
|
||||||
# Enable the transactions passthrough.
|
# Enable the transactions passthrough.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/enable_sessions.js');
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import("jstests/libs/override_methods/txn_passthrough_cmd_massage.js");
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import("jstests/libs/override_methods/network_error_and_txn_override.js");
|
||||||
load('jstests/libs/override_methods/implicit_filter_eot_changestreams.js');
|
await import("jstests/libs/override_methods/implicit_filter_eot_changestreams.js");
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -75,9 +75,9 @@ executor:
|
||||||
# change_streams.yml for detailed explanation.
|
# change_streams.yml for detailed explanation.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
load('jstests/libs/override_methods/inject_dollar_tenant.js');
|
await import('jstests/libs/override_methods/inject_dollar_tenant.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -45,10 +45,10 @@ executor:
|
||||||
# change_streams.yml for detailed explanation.
|
# change_streams.yml for detailed explanation.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
load('jstests/libs/override_methods/override_fixtures_changestream_multitenancy.js');
|
await import('jstests/libs/override_methods/override_fixtures_changestream_multitenancy.js');
|
||||||
hooks:
|
hooks:
|
||||||
- class: EnableChangeStream
|
- class: EnableChangeStream
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,10 @@ executor:
|
||||||
# change_streams.yml for detailed explanation.
|
# change_streams.yml for detailed explanation.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
load('jstests/libs/override_methods/implicit_passthrough_to_shard_changestreams.js');
|
await import('jstests/libs/override_methods/implicit_passthrough_to_shard_changestreams.js');
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
- class: CheckMetadataConsistencyInBackground
|
- class: CheckMetadataConsistencyInBackground
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,9 @@ executor:
|
||||||
# change_streams.yml for detailed explanation.
|
# change_streams.yml for detailed explanation.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');
|
await import('jstests/libs/override_methods/implicit_whole_cluster_changestreams.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,9 @@ executor:
|
||||||
# change_streams.yml for detailed explanation.
|
# change_streams.yml for detailed explanation.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
load('jstests/libs/override_methods/implicit_whole_db_changestreams.js');
|
await import('jstests/libs/override_methods/implicit_whole_db_changestreams.js');
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -221,8 +221,8 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load("jstests/libs/override_methods/set_read_preference_secondary.js");
|
await import("jstests/libs/override_methods/set_read_preference_secondary.js");
|
||||||
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
await import('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadPreference: {mode: "secondaryPreferred", tags: [{tag: "INIT_SYNC"}, {}]}
|
defaultReadPreference: {mode: "secondaryPreferred", tags: [{tag: "INIT_SYNC"}, {}]}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
eval: load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
eval: await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
shell_options:
|
shell_options:
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load("jstests/libs/override_methods/hide_column_store_indexes_from_get_indexes.js");
|
await import("jstests/libs/override_methods/hide_column_store_indexes_from_get_indexes.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
- class: CleanEveryN
|
- class: CleanEveryN
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load("jstests/libs/override_methods/implicit_wildcard_indexes.js");
|
await import("jstests/libs/override_methods/implicit_wildcard_indexes.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
- class: CleanEveryN
|
- class: CleanEveryN
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ executor:
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
eval: |
|
eval: |
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
load("jstests/libs/set_force_bonsai.js");
|
await import("jstests/libs/set_force_bonsai.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
shell_options:
|
shell_options:
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ executor:
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
eval: |
|
eval: |
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
load("jstests/libs/set_force_bonsai.js");
|
await import("jstests/libs/set_force_bonsai.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
shell_options:
|
shell_options:
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: |
|
eval: |
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
load("jstests/libs/set_try_bonsai_experimental.js");
|
await import("jstests/libs/set_try_bonsai_experimental.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
- class: CleanEveryN
|
- class: CleanEveryN
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@ executor:
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
eval: |
|
eval: |
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
load("jstests/libs/set_try_bonsai_experimental.js");
|
await import("jstests/libs/set_try_bonsai_experimental.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
shell_options:
|
shell_options:
|
||||||
|
|
|
||||||
|
|
@ -30,4 +30,4 @@ executor:
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
nodb: ''
|
nodb: ''
|
||||||
eval: load("jstests/libs/set_try_bonsai_experimental.js");
|
eval: await import("jstests/libs/set_try_bonsai_experimental.js");
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ executor:
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
eval: |
|
eval: |
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
load("jstests/libs/set_force_bonsai.js");
|
await import("jstests/libs/set_force_bonsai.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
shell_options:
|
shell_options:
|
||||||
|
|
|
||||||
|
|
@ -792,7 +792,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
eval: await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: ValidateCollections
|
- class: ValidateCollections
|
||||||
shell_options:
|
shell_options:
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_preference_secondary.js');
|
await import('jstests/libs/override_methods/set_read_preference_secondary.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load("jstests/libs/override_methods/retry_aborted_db_and_index_creation.js");
|
await import("jstests/libs/override_methods/retry_aborted_db_and_index_creation.js");
|
||||||
hooks:
|
hooks:
|
||||||
- class: CheckReplOplogs
|
- class: CheckReplOplogs
|
||||||
- class: CheckReplDBHash
|
- class: CheckReplDBHash
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ executor:
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
checkForInterruptFailpointChance: 0.05
|
checkForInterruptFailpointChance: 0.05
|
||||||
eval: load('jstests/libs/jstestfuzz/check_for_interrupt_hook.js')
|
eval: await import('jstests/libs/jstestfuzz/check_for_interrupt_hook.js')
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ executor:
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
checkForInterruptFailpointChance: 0.05
|
checkForInterruptFailpointChance: 0.05
|
||||||
eval: load('jstests/libs/jstestfuzz/check_for_interrupt_hook.js')
|
eval: await import('jstests/libs/jstestfuzz/check_for_interrupt_hook.js')
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/enable_sessions.js")
|
eval: await import("jstests/libs/override_methods/enable_sessions.js")
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/enable_causal_consistency.js")
|
eval: await import("jstests/libs/override_methods/enable_causal_consistency.js")
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
global_vars:
|
global_vars:
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ executor:
|
||||||
- ValidateCollections
|
- ValidateCollections
|
||||||
config:
|
config:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: load("jstests/libs/override_methods/enable_sessions.js")
|
eval: await import("jstests/libs/override_methods/enable_sessions.js")
|
||||||
crashOnInvalidBSONError: ""
|
crashOnInvalidBSONError: ""
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
||||||
|
|
@ -288,10 +288,10 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
load('jstests/libs/override_methods/enable_sessions.js');
|
await import('jstests/libs/override_methods/enable_sessions.js');
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: "local"
|
defaultReadConcernLevel: "local"
|
||||||
|
|
|
||||||
|
|
@ -305,10 +305,10 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
load('jstests/libs/override_methods/enable_sessions.js');
|
await import('jstests/libs/override_methods/enable_sessions.js');
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
defaultReadConcernLevel: "majority"
|
defaultReadConcernLevel: "majority"
|
||||||
|
|
|
||||||
|
|
@ -357,12 +357,12 @@ executor:
|
||||||
# to denylist tests that uses them unsafely.
|
# to denylist tests that uses them unsafely.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString);
|
globalThis.db = connect(TestData.connectionString);
|
||||||
load("jstests/libs/override_methods/enable_sessions.js");
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
logRetryAttempts: true
|
logRetryAttempts: true
|
||||||
|
|
|
||||||
|
|
@ -355,12 +355,12 @@ executor:
|
||||||
# to denylist tests that uses them unsafely.
|
# to denylist tests that uses them unsafely.
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString);
|
globalThis.db = connect(TestData.connectionString);
|
||||||
load("jstests/libs/override_methods/enable_sessions.js");
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
logRetryAttempts: true
|
logRetryAttempts: true
|
||||||
|
|
|
||||||
|
|
@ -319,11 +319,11 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
|
await import("jstests/libs/override_methods/implicitly_shard_accessed_collections.js");
|
||||||
ImplicitlyShardAccessCollSettings.setMode(ImplicitlyShardAccessCollSettings.Modes.kHashedMoveToSingleShard);
|
ImplicitlyShardAccessCollSettings.setMode(ImplicitlyShardAccessCollSettings.Modes.kHashedMoveToSingleShard);
|
||||||
load('jstests/libs/override_methods/enable_sessions.js');
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import("jstests/libs/override_methods/txn_passthrough_cmd_massage.js");
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import("jstests/libs/override_methods/network_error_and_txn_override.js");
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
networkErrorAndTxnOverrideConfig:
|
networkErrorAndTxnOverrideConfig:
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ executor:
|
||||||
eval: |
|
eval: |
|
||||||
jsTest.authenticate(db.getMongo());
|
jsTest.authenticate(db.getMongo());
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/inject_dollar_tenant.js');
|
await import('jstests/libs/override_methods/inject_dollar_tenant.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData: &TestData
|
TestData: &TestData
|
||||||
tenant: "636d957b2646ddfaf9b5e13f"
|
tenant: "636d957b2646ddfaf9b5e13f"
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: |
|
eval: |
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/inject_security_token.js');
|
await import('jstests/libs/override_methods/inject_security_token.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ executor:
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
eval: |
|
eval: |
|
||||||
// Keep in sync with query_golden_cqf.yml.
|
// Keep in sync with query_golden_cqf.yml.
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
await import("jstests/libs/override_methods/golden_overrides.js");
|
await import("jstests/libs/override_methods/golden_overrides.js");
|
||||||
_openGoldenData(jsTestName(), {relativePath: "jstests/query_golden/expected_output"});
|
_openGoldenData(jsTestName(), {relativePath: "jstests/query_golden/expected_output"});
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ executor:
|
||||||
objcheck: ""
|
objcheck: ""
|
||||||
eval: |
|
eval: |
|
||||||
// Keep in sync with query_golden_classic.yml.
|
// Keep in sync with query_golden_classic.yml.
|
||||||
load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
await import("jstests/libs/override_methods/detect_spawning_own_mongod.js");
|
||||||
load("jstests/libs/set_force_bonsai.js");
|
await import("jstests/libs/set_force_bonsai.js");
|
||||||
await import("jstests/libs/override_methods/golden_overrides.js");
|
await import("jstests/libs/override_methods/golden_overrides.js");
|
||||||
_openGoldenData(jsTestName(), {relativePath: "jstests/query_golden/expected_output"});
|
_openGoldenData(jsTestName(), {relativePath: "jstests/query_golden/expected_output"});
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ executor:
|
||||||
defaultReadConcernLevel: linearizable
|
defaultReadConcernLevel: linearizable
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ executor:
|
||||||
defaultReadConcernLevel: majority
|
defaultReadConcernLevel: majority
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
await import('jstests/libs/override_methods/set_read_and_write_concerns.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/set_api_version.js');
|
await import('jstests/libs/override_methods/set_api_version.js');
|
||||||
hooks:
|
hooks:
|
||||||
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
|
||||||
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
|
||||||
|
|
|
||||||
|
|
@ -246,9 +246,9 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/enable_sessions.js');
|
await import('jstests/libs/override_methods/enable_sessions.js');
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
networkErrorAndTxnOverrideConfig:
|
networkErrorAndTxnOverrideConfig:
|
||||||
|
|
|
||||||
|
|
@ -310,12 +310,12 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString);
|
globalThis.db = connect(TestData.connectionString);
|
||||||
load("jstests/libs/override_methods/enable_sessions.js");
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js");
|
||||||
load("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
await import("jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
logRetryAttempts: true
|
logRetryAttempts: true
|
||||||
|
|
|
||||||
|
|
@ -292,10 +292,10 @@ executor:
|
||||||
shell_options:
|
shell_options:
|
||||||
eval: >-
|
eval: >-
|
||||||
globalThis.testingReplication = true;
|
globalThis.testingReplication = true;
|
||||||
load('jstests/libs/override_methods/network_error_and_txn_override.js');
|
await import('jstests/libs/override_methods/network_error_and_txn_override.js');
|
||||||
globalThis.db = connect(TestData.connectionString);
|
globalThis.db = connect(TestData.connectionString);
|
||||||
load("jstests/libs/override_methods/enable_sessions.js");
|
await import("jstests/libs/override_methods/enable_sessions.js");
|
||||||
load('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
await import('jstests/libs/override_methods/txn_passthrough_cmd_massage.js');
|
||||||
global_vars:
|
global_vars:
|
||||||
TestData:
|
TestData:
|
||||||
logRetryAttempts: true
|
logRetryAttempts: true
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue