blob: f5286d80e86ff16e1d9689234fe71166fd0cf98c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Section that is ignored by resmoke.py.
config_variables:
- &keyFile jstests/libs/authTestsKey
- &keyFileData Thiskeyisonlyforrunningthesuitewithauthenticationdontuseitinanytestsdirectly
- &authOptions
authenticationDatabase: admin
authenticationMechanism: SCRAM-SHA-1
password: *keyFileData
username: __system
test_kind: js_test
selector:
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:
archive:
hooks:
- CheckReplDBHash
config:
shell_options:
global_vars:
TestData: &TestData
auth: true
authMechanism: SCRAM-SHA-1
keyFile: *keyFile
keyFileData: *keyFileData
eval: jsTest.authenticate(db.getMongo())
<<: *authOptions
readMode: commands
hooks:
- class: CheckReplDBHash
shell_options:
global_vars:
TestData: *TestData
eval: jsTest.authenticate(db.getMongo())
<<: *authOptions
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
|