diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-04-13 18:20:57 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-04-23 14:30:19 -0400 |
commit | 8b7528029686ca1ae0eec681169406d52eb27682 (patch) | |
tree | ce2e438bd27f875fe26e2c7f58bc9718440e9712 /jstests/auth | |
parent | 4ff9beb8293ab4b0de8ddbb3542331b7e30051b3 (diff) | |
download | mongo-8b7528029686ca1ae0eec681169406d52eb27682.tar.gz |
SERVER-17971 Make ShardingTest start single-server config servers as replica sets
Diffstat (limited to 'jstests/auth')
-rw-r--r-- | jstests/auth/access_control_with_unreachable_configs.js | 1 | ||||
-rw-r--r-- | jstests/auth/auth1.js | 6 | ||||
-rw-r--r-- | jstests/auth/role_management_commands.js | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/jstests/auth/access_control_with_unreachable_configs.js b/jstests/auth/access_control_with_unreachable_configs.js index da328f098dd..6c91e7a2a84 100644 --- a/jstests/auth/access_control_with_unreachable_configs.js +++ b/jstests/auth/access_control_with_unreachable_configs.js @@ -9,6 +9,7 @@ var st = new ShardingTest( 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; diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js index 2ee65c68ca7..32628e8bf57 100644 --- a/jstests/auth/auth1.js +++ b/jstests/auth/auth1.js @@ -7,7 +7,11 @@ function setupTest() { port = allocatePorts( 1 )[ 0 ]; baseName = "jstests_auth_auth1"; - m = MongoRunner.runMongod({auth: "", port: port, nohttpinterface: "", bind_ip: "127.0.0.1"}); + m = MongoRunner.runMongod({auth: "", + port: port, + nohttpinterface: "", + bind_ip: "127.0.0.1", + useHostname: false}); return m; } diff --git a/jstests/auth/role_management_commands.js b/jstests/auth/role_management_commands.js index d5eeff86f42..a53d79ded2d 100644 --- a/jstests/auth/role_management_commands.js +++ b/jstests/auth/role_management_commands.js @@ -266,11 +266,11 @@ function runTest(conn) { } jsTest.log('Test standalone'); -var conn = MongoRunner.runMongod({ auth: '' }); +var conn = MongoRunner.runMongod({ auth: '', useHostname: false }); runTest(conn); MongoRunner.stopMongod(conn.port); jsTest.log('Test sharding'); -var st = new ShardingTest({ shards: 2, config: 3, keyFile: 'jstests/libs/key1' }); +var st = new ShardingTest({ shards: 2, config: 3, keyFile: 'jstests/libs/key1', useHostname: false }); runTest(st.s); st.stop(); |