summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2017-10-13 17:37:14 -0400
committerMaria van Keulen <maria@mongodb.com>2017-10-19 12:30:25 -0400
commitaf44617f264c0a2338759debe37ad1d7e353d2ab (patch)
treed122a69aad3f30deae08fc3ae8c749131c3349f7 /jstests/auth
parentb77a6c7069cc1cd944c0d204a7c6285d405a0e2c (diff)
downloadmongo-af44617f264c0a2338759debe37ad1d7e353d2ab.tar.gz
SERVER-29448 Disallow removing the admin database in replica set mode
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/user_defined_roles_on_secondaries.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/jstests/auth/user_defined_roles_on_secondaries.js b/jstests/auth/user_defined_roles_on_secondaries.js
index 1eb3566985f..c405363c575 100644
--- a/jstests/auth/user_defined_roles_on_secondaries.js
+++ b/jstests/auth/user_defined_roles_on_secondaries.js
@@ -134,14 +134,6 @@
assertListContainsRole(role.inheritedRoles, {role: "dbAdmin", db: "db1"}, node);
});
- // Verify that dropping the admin database propagates.
- assert.commandWorked(rstest.getPrimary().getDB("admin").dropDatabase());
- assert.commandWorked(rstest.getPrimary().getDB("admin").getLastErrorObj(2));
- rstest.nodes.forEach(function(node) {
- var roles = node.getDB("db1").getRoles();
- assert.eq(0, roles.length, node);
- });
-
// Verify that applyOps commands propagate.
// NOTE: This section of the test depends on the oplog and roles schemas.
assert.commandWorked(rstest.getPrimary().getDB("admin").runCommand({
@@ -171,15 +163,6 @@
}
},
{op: "c", ns: "admin.$cmd", o: {drop: "system.roles"}},
- ]
- }));
-
- // The dropDatabase command cannot be run inside an applyOps if it still has any collections
- // (drop-pending included). See SERVER-29874.
- assert.commandWorked(rstest.getPrimary().getDB("admin").dropDatabase());
-
- assert.commandWorked(rstest.getPrimary().getDB("admin").runCommand({
- applyOps: [
{op: "c", ns: "admin.$cmd", o: {create: "system.roles"}},
{
op: "i",