summaryrefslogtreecommitdiff
path: root/jstests/core
diff options
context:
space:
mode:
authorKshitij Gupta <kshitij.gupta@mongodb.com>2020-06-24 20:57:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-02 16:23:45 +0000
commit2bdac781a19690e80880bd1c7b22f1d0d3d2b7b2 (patch)
tree1912d2bf1f537196aa95e8d1b597ce1e50133368 /jstests/core
parentd5891965f27e703abd1db6a4e825bd21e283b02b (diff)
downloadmongo-2bdac781a19690e80880bd1c7b22f1d0d3d2b7b2.tar.gz
SERVER-48676: Create reshardCollection command on router.
Diffstat (limited to 'jstests/core')
-rw-r--r--jstests/core/views/views_all_commands.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/core/views/views_all_commands.js b/jstests/core/views/views_all_commands.js
index 59d0c5417f7..7a88aa76703 100644
--- a/jstests/core/views/views_all_commands.js
+++ b/jstests/core/views/views_all_commands.js
@@ -455,6 +455,16 @@ let viewsCommandTests = {
replSetTestEgress: {skip: isUnrelated},
replSetUpdatePosition: {skip: isUnrelated},
replSetResizeOplog: {skip: isUnrelated},
+ reshardCollection: {
+ command: {reshardCollection: "test.view", key: {_id: 1}},
+ setup: function(conn) {
+ assert.commandWorked(conn.adminCommand({enableSharding: "test"}));
+ },
+ expectedErrorCode: ErrorCodes.NamespaceNotSharded,
+ skipStandalone: true,
+ expectFailure: true,
+ isAdminCommand: true,
+ },
resetError: {skip: isUnrelated},
revokePrivilegesFromRole: {
command: {