summaryrefslogtreecommitdiff
path: root/jstests/multiVersion
diff options
context:
space:
mode:
authorJason Zhang <jason.zhang@mongodb.com>2021-06-24 18:30:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-29 15:54:41 +0000
commit6fd8879c252b0123e1fd1f52f7c080640482edc8 (patch)
treef54e119194d48a52263d152b91b187adf9da0339 /jstests/multiVersion
parent43c655b0bc42d2ddf4bed061b60bbf7c1c9942e4 (diff)
downloadmongo-6fd8879c252b0123e1fd1f52f7c080640482edc8.tar.gz
SERVER-58029 Remove oplog_views_for_tenant_migration.js after 5.0 branch cut
Diffstat (limited to 'jstests/multiVersion')
-rw-r--r--jstests/multiVersion/oplog_views_for_tenant_migration.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/jstests/multiVersion/oplog_views_for_tenant_migration.js b/jstests/multiVersion/oplog_views_for_tenant_migration.js
deleted file mode 100644
index 0c7e5dad8b7..00000000000
--- a/jstests/multiVersion/oplog_views_for_tenant_migration.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Tests that oplog views for resharding and tenant migration are created when a replica set is
- * upgraded from 4.4.
- */
-(function() {
-"use strict";
-load("jstests/multiVersion/libs/multi_rs.js"); // For 'upgradeSet()'
-
-const kTenantMigrationOplogViewName = "system.tenantMigration.oplogView";
-
-function assertOplogViewsNotExist(node) {
- const localDb = node.getDB("local");
- const tenantMigrationRes = localDb.runCommand(
- {listCollections: 1, filter: {type: "view", name: kTenantMigrationOplogViewName}});
- assert.eq(0, tenantMigrationRes.cursor.firstBatch.length);
-}
-
-function assertOplogViewsExist(node) {
- const localDb = node.getDB("local");
- const tenantMigrationRes = localDb.runCommand(
- {listCollections: 1, filter: {type: "view", name: kTenantMigrationOplogViewName}});
- assert.eq(1, tenantMigrationRes.cursor.firstBatch.length);
-}
-
-// Set up a replica set in v4.4.
-const rst = new ReplSetTest({nodes: 2, nodeOptions: {binVersion: "last-lts"}});
-rst.startSet();
-rst.initiate();
-rst.nodes.forEach(node => assertOplogViewsNotExist(node));
-
-// Upgrade the replica set.
-rst.upgradeSet({binVersion: "latest"});
-rst.nodes.forEach(node => assertOplogViewsExist(node));
-
-rst.stopSet();
-})();