summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2018-07-27 17:09:24 -0400
committerMaria van Keulen <maria@mongodb.com>2018-08-07 14:26:55 -0400
commit88a8b7b31ca41eca88e782d84e496911c93cc0ae (patch)
treef60e0bee8e351180ad2c256c3c8946ec35fadeb6 /jstests/noPassthroughWithMongod
parent4c16f0f336f4db77034e8aa594bbd4a5bac3f40c (diff)
downloadmongo-88a8b7b31ca41eca88e782d84e496911c93cc0ae.tar.gz
SERVER-36257 Remove copyDB and clone commands
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/server7428.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/jstests/noPassthroughWithMongod/server7428.js b/jstests/noPassthroughWithMongod/server7428.js
deleted file mode 100644
index 7b5278a10e1..00000000000
--- a/jstests/noPassthroughWithMongod/server7428.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// Regression test for SERVER-7428.
-
-// TODO(spencer): move this test out of slowNightly directory once there is a better place for tests
-// that start their own mongod's but aren't slow
-
-// Verify that the copyDatabase command works appropriately when the
-// target mongo instance has authentication enabled.
-
-(function() {
-
- // Setup fromDb with no auth
- var fromDb = MongoRunner.runMongod();
-
- // Setup toDb with auth
- var toDb = MongoRunner.runMongod({auth: ""});
- var admin = toDb.getDB("admin");
- admin.createUser({user: "foo", pwd: "bar", roles: jsTest.adminUserRoles});
- admin.auth("foo", "bar");
-
- admin.copyDatabase('test', 'test', fromDb.host);
-
- MongoRunner.stopMongod(fromDb);
- MongoRunner.stopMongod(toDb);
-})();