summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorAmalia Hawkins <amalia.hawkins@10gen.com>2015-04-30 10:37:09 -0400
committerAmalia Hawkins <amalia.hawkins@10gen.com>2015-04-30 10:38:56 -0400
commit7cd6f825684fe97fae9b822deead422a6903c7ef (patch)
tree379b5db8bdca62689207fb1fd2e8ed027ca99ec7 /jstests/auth
parent30c9fa8ef46c1c6a0951a0d8ab724991e5cc04e2 (diff)
downloadmongo-7cd6f825684fe97fae9b822deead422a6903c7ef.tar.gz
SERVER-7942: Remove obsolete test from auth jstests
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/system_user_exception.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/jstests/auth/system_user_exception.js b/jstests/auth/system_user_exception.js
deleted file mode 100644
index f9c79828b86..00000000000
--- a/jstests/auth/system_user_exception.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// Test the special handling of the __system user
-// works when pw auth mechanisms are disabled.
-
-var port = allocatePorts(1)[0];
-
-// Start mongod with no authentication mechanisms enabled
-var m = MongoRunner.runMongod({keyFile: "jstests/libs/key1",
- port: port,
- dbpath: MongoRunner.dataDir + "/no-authmechs",
- setParameter: "authenticationMechanisms="});
-
-// Verify that it's possible to authenticate the __system@local user
-assert.eq(1, m.getDB("local").auth("__system", "foopdedoop"), 1);
-assert.eq(0, m.getDB("local").auth("__system", "foopdedoo"), 0);
-assert.eq(1, m.getDB("local").auth({user: "__system", pwd: "foopdedoop", mechanism: "MONGODB-CR"}));
-
-// Verify that it is not possible to authenticate other users
-m.getDB("test").createUser({user: "guest" , pwd: "guest", roles: jsTest.readOnlyUserRoles});
-assert.eq(0, m.getDB("test").auth("guest", "guest"));
-
-MongoRunner.stopMongod(port);