summaryrefslogtreecommitdiff
path: root/jstests/connection_status.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/connection_status.js')
-rw-r--r--jstests/connection_status.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/jstests/connection_status.js b/jstests/connection_status.js
deleted file mode 100644
index 08d05cbf28d..00000000000
--- a/jstests/connection_status.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// Tests the connectionStatus command
-
-var dbName = 'connection_status';
-var myDB = db.getSiblingDB(dbName);
-myDB.dropAllUsers();
-
-function test(userName) {
- myDB.createUser({user: userName, pwd: "weak password", roles: jsTest.basicUserRoles});
- myDB.auth(userName, "weak password");
-
- var output = myDB.runCommand("connectionStatus");
- assert.commandWorked(output);
- var users = output.authInfo.authenticatedUsers;
-
- var matches = 0;
- for (var i=0; i < users.length; i++) {
- if (users[i].db != dbName)
- continue;
-
- assert.eq(users[i].user, userName);
- matches++;
- }
- assert.eq(matches, 1);
-}
-
-test("someone");
-test("someone else"); // replaces someone