summaryrefslogtreecommitdiff
path: root/jstests/sharding/timeseries_sharding_admin_commands.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/timeseries_sharding_admin_commands.js')
-rw-r--r--jstests/sharding/timeseries_sharding_admin_commands.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/jstests/sharding/timeseries_sharding_admin_commands.js b/jstests/sharding/timeseries_sharding_admin_commands.js
index 696fa86ee69..bfd8d3ef853 100644
--- a/jstests/sharding/timeseries_sharding_admin_commands.js
+++ b/jstests/sharding/timeseries_sharding_admin_commands.js
@@ -274,17 +274,5 @@ function assertRangeMatch(savedRange, paramRange) {
dropTimeSeriesColl();
})();
-// Check renameCollection command cannot modify name through the view namespace.
-(function checkRenameCollectionCommand() {
- createTimeSeriesColl(
- {index: {[metaField]: 1, [timeField]: 1}, shardKey: {[metaField]: 1, [timeField]: 1}});
- const newCollName = `${collName}New`;
- const newViewNss = `${dbName}.${newCollName}`;
- // Rename collection is not supported through view namespace.
- assert.commandFailedWithCode(mongo.s.adminCommand({renameCollection: viewNss, to: newViewNss}),
- ErrorCodes.NamespaceNotFound);
- dropTimeSeriesColl();
-})();
-
mongo.stop();
})();