diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-02-03 18:41:12 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-02-03 18:44:13 -0500 |
commit | 588dc81b0822ebb46f80e152b94527a882e6ea5e (patch) | |
tree | 2b1dca27cd181910a44a86aa7e60bff5e39c6b54 /jstests/ssl | |
parent | ad3e62b700dd70d17713951dee63e5fc3212c92e (diff) | |
download | mongo-588dc81b0822ebb46f80e152b94527a882e6ea5e.tar.gz |
SERVER-10848 Update some SSL tests to run without --use-x509
Diffstat (limited to 'jstests/ssl')
-rw-r--r-- | jstests/ssl/sharding_with_x509.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/ssl/sharding_with_x509.js b/jstests/ssl/sharding_with_x509.js index ca6fdd5923d..75150a60548 100644 --- a/jstests/ssl/sharding_with_x509.js +++ b/jstests/ssl/sharding_with_x509.js @@ -10,7 +10,6 @@ var x509_options = {sslMode : "requireSSL", var st = new ShardingTest({ name : "sharding_with_x509" , shards : 2, mongos : 1, - keyFile : "jstests/libs/key1", other: { configOptions : x509_options, mongosOptions : x509_options, @@ -18,8 +17,9 @@ var st = new ShardingTest({ name : "sharding_with_x509" , shardOptions : x509_options }}); -var mongos = new Mongo( "localhost:" + st.s0.port ) -var coll = mongos.getCollection( "test.foo" ) +st.s.getDB('admin').createUser({user: 'admin', pwd: 'pwd', roles: ['root']}); +st.s.getDB('admin').auth('admin', 'pwd'); +var coll = st.s.getCollection( "test.foo" ) st.shardColl( coll, { _id : 1 }, false ) |