summaryrefslogtreecommitdiff
path: root/jstests/core/administrative/cleanup_orphaned.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/administrative/cleanup_orphaned.js')
-rw-r--r--jstests/core/administrative/cleanup_orphaned.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/jstests/core/administrative/cleanup_orphaned.js b/jstests/core/administrative/cleanup_orphaned.js
new file mode 100644
index 00000000000..e3448599540
--- /dev/null
+++ b/jstests/core/administrative/cleanup_orphaned.js
@@ -0,0 +1,11 @@
+// This test expects to be run against a non-shardsvr.
+// The test runs commands that are not allowed with security token: cleanupOrphaned.
+// @tags: [
+// not_allowed_with_security_token,
+// requires_non_retryable_commands,
+// directly_against_shardsvrs_incompatible,
+// ]
+
+// Test that cleanupOrphaned cannot be run on stand alone mongod.
+var res = db.adminCommand({cleanupOrphaned: 'unsharded.coll'});
+assert(!res.ok, tojson(res));