summaryrefslogtreecommitdiff
path: root/jstests/auth/list_collections_own_collections.js
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2021-03-01 15:19:35 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-03 11:34:48 +0000
commit020fe58793915e44fabd8bc50bd0f8105bb2082f (patch)
tree1ce299ddf75d17d73eaf1a28ad1e0663dfca2ec9 /jstests/auth/list_collections_own_collections.js
parentb7c804eb075886be5430a0917401e289a4dbf681 (diff)
downloadmongo-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.js11
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();
}());