summaryrefslogtreecommitdiff
path: root/jstests/replsets/libs/tenant_migration_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/libs/tenant_migration_test.js')
-rw-r--r--jstests/replsets/libs/tenant_migration_test.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/jstests/replsets/libs/tenant_migration_test.js b/jstests/replsets/libs/tenant_migration_test.js
index 70d6c24c571..d49fa3bc342 100644
--- a/jstests/replsets/libs/tenant_migration_test.js
+++ b/jstests/replsets/libs/tenant_migration_test.js
@@ -272,9 +272,6 @@ function TenantMigrationTest({
this.checkTenantDBHashes(tenantId);
}
- this.assertNoDuplicatedExternalKeyDocs(this.getDonorRst());
- this.assertNoDuplicatedExternalKeyDocs(this.getRecipientRst());
-
return stateRes;
};
@@ -578,22 +575,6 @@ function TenantMigrationTest({
};
/**
- * Asserts that there are no admin.system.external_validation_keys docs with the same keyId
- * and replicaSetName.
- */
- this.assertNoDuplicatedExternalKeyDocs = function(rst) {
- grantFindExternalClusterTimeKeysPrivilegeIfNeeded(rst);
-
- const docs = rst.getPrimary().getDB("admin").system.external_validation_keys.find();
- let aggRes = rst.getPrimary().getDB("admin").system.external_validation_keys.aggregate([
- {$group: {_id: {keyId: "$keyId", replicaSetName: "$replicaSetName"}, count: {$sum: 1}}}
- ]);
- aggRes.forEach(doc => {
- assert.eq(1, doc.count, "all external key docs: " + tojson(docs.toArray()));
- });
- };
-
- /**
* Shuts down the donor and recipient sets, only if they were not passed in as parameters.
* If they were passed in, the test that initialized them should be responsible for shutting
* them down.