summaryrefslogtreecommitdiff
path: root/jstests/auth/deleted_recreated_user_mongod.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/deleted_recreated_user_mongod.js')
-rw-r--r--jstests/auth/deleted_recreated_user_mongod.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/jstests/auth/deleted_recreated_user_mongod.js b/jstests/auth/deleted_recreated_user_mongod.js
new file mode 100644
index 00000000000..c033a916263
--- /dev/null
+++ b/jstests/auth/deleted_recreated_user_mongod.js
@@ -0,0 +1,12 @@
+/*
+ * Test that sessions on mongods cannot be resumed by deleted and recreated user.
+ */
+(function() {
+'use strict';
+
+load("jstests/auth/deleted_recreated_user_base.js");
+
+const mongod = MongoRunner.runMongod({auth: ''});
+runTest(mongod, mongod);
+MongoRunner.stopMongod(mongod);
+})();