Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-10848 Update some SSL tests to run without --use-x509

  • Loading branch information...
commit 588dc81b0822ebb46f80e152b94527a882e6ea5e 1 parent ad3e62b
@stbrody stbrody authored
View
5 jstests/replsets/initial_sync1.js
@@ -54,7 +54,10 @@ var ports = allocatePorts( 3 );
var basePath = MongoRunner.dataPath + basename;
var hostname = getHostName();
-var slave2 = startMongodTest (ports[2], basename, false, {replSet : basename, oplogSize : 2} )
+var slave2 = startMongodTest (ports[2],
+ basename,
+ false,
+ Object.merge({replSet : basename, oplogSize : 2}, x509_options2));
var local_s2 = slave2.getDB("local");
var admin_s2 = slave2.getDB("admin");
View
6 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 )
Please sign in to comment.
Something went wrong with that request. Please try again.