From ec23a4a3587f83c603b36b7761881c9edb8c503b Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Wed, 4 Sep 2013 15:00:54 -0400 Subject: SERVER-9517 Update tests to pass with new user schema --- jstests/replsets/auth1.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jstests/replsets/auth1.js') diff --git a/jstests/replsets/auth1.js b/jstests/replsets/auth1.js index f6a9d654977..84035b890d9 100644 --- a/jstests/replsets/auth1.js +++ b/jstests/replsets/auth1.js @@ -36,8 +36,8 @@ run("chmod", "600", path+"key2"); print("add a user to server0: foo"); m = startMongodTest( port[0], name+"-0", 0 ); -m.getDB("admin").addUser("foo", "bar"); -m.getDB("test").addUser("bar", "baz"); +m.getDB("admin").addUser("foo", "bar", jsTest.adminUserRoles); +m.getDB("test").addUser("bar", "baz", jsTest.basicUserRoles); print("make sure user is written before shutting down"); m.getDB("test").getLastError(); stopMongod(port[0]); -- cgit v1.2.1