diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2021-03-01 15:19:35 +0100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-03 11:34:48 +0000 |
commit | 020fe58793915e44fabd8bc50bd0f8105bb2082f (patch) | |
tree | 1ce299ddf75d17d73eaf1a28ad1e0663dfca2ec9 /jstests/auth/list_collections_own_collections.js | |
parent | b7c804eb075886be5430a0917401e289a4dbf681 (diff) | |
download | mongo-020fe58793915e44fabd8bc50bd0f8105bb2082f.tar.gz |
SERVER-43897 Make authentication js tests start shards as replica sets
Diffstat (limited to 'jstests/auth/list_collections_own_collections.js')
-rw-r--r-- | jstests/auth/list_collections_own_collections.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/jstests/auth/list_collections_own_collections.js b/jstests/auth/list_collections_own_collections.js index 08acf45ab02..0b8033d5cb8 100644 --- a/jstests/auth/list_collections_own_collections.js +++ b/jstests/auth/list_collections_own_collections.js @@ -166,12 +166,8 @@ const mongod = MongoRunner.runMongod({auth: ''}); runTestOnConnection(mongod); MongoRunner.stopMongod(mongod); -const st = new ShardingTest({ - shards: 1, - mongos: 1, - config: 1, - other: {keyFile: 'jstests/libs/key1', shardAsReplicaSet: false} -}); +const st = + new ShardingTest({shards: 1, mongos: 1, config: 1, other: {keyFile: 'jstests/libs/key1'}}); runTestOnConnection(st.s0); st.stop(); @@ -179,8 +175,7 @@ const mongodNoAuth = MongoRunner.runMongod(); runNoAuthTestOnConnection(mongodNoAuth); MongoRunner.stopMongod(mongodNoAuth); -const stNoAuth = - new ShardingTest({shards: 1, mongos: 1, config: 1, other: {shardAsReplicaSet: false}}); +const stNoAuth = new ShardingTest({shards: 1, mongos: 1, config: 1}); runNoAuthTestOnConnection(stNoAuth.s0); stNoAuth.stop(); }()); |