summaryrefslogtreecommitdiff
path: root/jstests/sharding/mongos_dataSize_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/mongos_dataSize_test.js')
-rw-r--r--jstests/sharding/mongos_dataSize_test.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/jstests/sharding/mongos_dataSize_test.js b/jstests/sharding/mongos_dataSize_test.js
deleted file mode 100644
index 9dc9ceac78f..00000000000
--- a/jstests/sharding/mongos_dataSize_test.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// This tests the command dataSize on sharded clusters to ensure that they can use the command.
-
-(function() {
-'use strict';
-
-let s = new ShardingTest({shards: 2, mongos: 1});
-let db = s.getDB("test");
-assert.commandWorked(s.s0.adminCommand({enableSharding: "test"}));
-assert.commandWorked(s.s0.adminCommand({shardcollection: "test.foo", key: {num: 1}}));
-assert.commandWorked(s.getPrimaryShard("test").getDB("admin").runCommand({datasize: "test.foo"}));
-assert.commandFailedWithCode(s.getPrimaryShard("test").getDB("admin").runCommand({datasize: "foo"}),
- ErrorCodes.InvalidNamespace);
-s.stop();
-})();