mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-28 07:59:02 +01:00
df2a33f997
"compatibility" readMode now causes the shell to detect whether or not to use find/getMore commands based on wire version. "commands" mode forces use of the find/getMore commands, and "legacy" mode forces uses of legacy OP_QUERY/OP_GET_MORE reads. Also configures tests to force use of "commands" or "legacy" mode as appropriate.
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
# Section that is ignored by resmoke.py.
|
|
config_variables:
|
|
- &keyFile jstests/libs/authTestsKey
|
|
- &keyFileData Thiskeyisonlyforrunningthesuitewithauthenticationdontuseitinanytestsdirectly
|
|
|
|
selector:
|
|
js_test:
|
|
roots:
|
|
- jstests/gle/core/*.js
|
|
exclude_files:
|
|
- jstests/gle/core/error1.js # The getPrevError command is not supported under sharding.
|
|
- jstests/gle/core/remove5.js
|
|
- jstests/gle/core/update4.js
|
|
|
|
executor:
|
|
js_test:
|
|
config:
|
|
shell_options:
|
|
global_vars:
|
|
TestData:
|
|
auth: true
|
|
authMechanism: SCRAM-SHA-1
|
|
keyFile: *keyFile
|
|
keyFileData: *keyFileData
|
|
eval: jsTest.authenticate(db.getMongo())
|
|
authenticationDatabase: admin
|
|
authenticationMechanism: SCRAM-SHA-1
|
|
password: *keyFileData
|
|
username: __system
|
|
readMode: commands
|
|
|
|
fixture:
|
|
class: ShardedClusterFixture
|
|
mongos_options:
|
|
keyFile: *keyFile
|
|
set_parameters:
|
|
enableTestCommands: 1
|
|
enableLocalhostAuthBypass: false
|
|
mongod_options:
|
|
auth: ''
|
|
keyFile: *keyFile
|
|
set_parameters:
|
|
enableTestCommands: 1
|
|
enableLocalhostAuthBypass: false
|
|
num_shards: 2
|
|
enable_sharding:
|
|
- test
|
|
auth_options:
|
|
authenticationDatabase: admin
|
|
authenticationMechanism: SCRAM-SHA-1
|
|
password: *keyFileData
|
|
username: __system
|