summaryrefslogtreecommitdiff
path: root/jstests/auth/auth1.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2012-12-07 17:42:30 -0500
committerSpencer T Brody <spencer@10gen.com>2012-12-07 17:47:52 -0500
commit5172fa4b00a02b7a2102bf54fe1dcd17ca1b0801 (patch)
treed59660f1a6bd50450df213f539b2051f44057ff5 /jstests/auth/auth1.js
parent001d19f0b8a50925aa7192cd565b66168eb9efbc (diff)
downloadmongo-5172fa4b00a02b7a2102bf54fe1dcd17ca1b0801.tar.gz
SERVER-7572 Change a bunch of commands to not require auth in old authorization system
Diffstat (limited to 'jstests/auth/auth1.js')
-rw-r--r--jstests/auth/auth1.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js
index da6357121e4..e1de19fd49b 100644
--- a/jstests/auth/auth1.js
+++ b/jstests/auth/auth1.js
@@ -26,14 +26,9 @@ db.getSisterDB( "admin" ).addUser( "super", "super" );
assert.throws( function() { t.findOne() }, [], "read without login" );
print("make sure we can't run certain commands w/out auth");
-var errmsg = "need to login";
+var errmsg = "unauthorized";
assert.eq(db.runCommand({eval : "function() { return 1; }"}).errmsg, errmsg);
-assert.eq(db.runCommand({getLastError : 1}).errmsg, errmsg);
-assert.eq(db.runCommand({whatsmyuri : 1}).errmsg, errmsg);
-assert.eq(db.runCommand({availableQueryOptions : 1}).errmsg, errmsg);
assert.eq(db.adminCommand({getLog : "global"}).errmsg, errmsg);
-assert.eq(db.runCommand({getPrevError : 1}).errmsg, errmsg);
-assert.eq(db.runCommand({resetError : 1}).errmsg, errmsg);
assert( db.auth( "eliot" , "eliot" ) , "auth failed" );