diff options
Diffstat (limited to 'jstests/auth/access_control_with_unreachable_configs.js')
-rw-r--r-- | jstests/auth/access_control_with_unreachable_configs.js | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/jstests/auth/access_control_with_unreachable_configs.js b/jstests/auth/access_control_with_unreachable_configs.js index 23a38502301..6c833d5c844 100644 --- a/jstests/auth/access_control_with_unreachable_configs.js +++ b/jstests/auth/access_control_with_unreachable_configs.js @@ -3,14 +3,18 @@ // are user documents stored in the configuration information, it must assume that // there are. -var dopts = { smallfiles: "", nopreallocj: ""}; -var st = new ShardingTest( - { shards: 1, - mongos: 1, - config: 1, - keyFile: 'jstests/libs/key1', - useHostname: false, // Needed when relying on the localhost exception - other: { shardOptions: dopts, configOptions: dopts, mongosOptions: { verbose: 1 } } } ); +var dopts = { + smallfiles: "", + nopreallocj: "" +}; +var st = new ShardingTest({ + shards: 1, + mongos: 1, + config: 1, + keyFile: 'jstests/libs/key1', + useHostname: false, // Needed when relying on the localhost exception + other: {shardOptions: dopts, configOptions: dopts, mongosOptions: {verbose: 1}} +}); var mongos = st.s; var config = st.config0; var authzErrorCode = 13; @@ -35,7 +39,7 @@ assert.commandWorked(db.adminCommand('serverStatus')); jsTest.log('repeat without config server'); // shut down only config server -MongoRunner.stopMongod(config.port, /*signal*/15); +MongoRunner.stopMongod(config.port, /*signal*/ 15); // open a new connection to mongos (unauthorized) var conn2 = new Mongo(mongos.host); |