summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildscripts/resmokelib/testing/fixtures/tenant_migration.py16
-rw-r--r--jstests/replsets/libs/tenant_migration_util.js5
2 files changed, 13 insertions, 8 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/tenant_migration.py b/buildscripts/resmokelib/testing/fixtures/tenant_migration.py
index 50e2375868f..b253274733a 100644
--- a/buildscripts/resmokelib/testing/fixtures/tenant_migration.py
+++ b/buildscripts/resmokelib/testing/fixtures/tenant_migration.py
@@ -177,13 +177,15 @@ class TenantMigrationFixture(interface.Fixture): # pylint: disable=too-many-ins
try:
primary_client.admin.command({
- "createRole": "tenantMigrationRecipientRole", "privileges":
- [{"resource": {"cluster": True}, "actions": ["listDatabases", "useUUID"]},
- {"resource": {"db": "", "collection": ""}, "actions": ["listCollections"]},
- {
- "resource": {"anyResource": True},
- "actions": ["dbStats", "collStats", "find", "listIndexes"]
- }], "roles": []
+ "createRole": "tenantMigrationRecipientRole",
+ "privileges": [{
+ "resource": {"cluster": True},
+ "actions": ["listDatabases", "useUUID", "advanceClusterTime"]
+ }, {"resource": {"db": "", "collection": ""}, "actions": ["listCollections"]},
+ {
+ "resource": {"anyResource": True},
+ "actions": ["dbStats", "collStats", "find", "listIndexes"]
+ }], "roles": []
})
except:
self.logger.exception(
diff --git a/jstests/replsets/libs/tenant_migration_util.js b/jstests/replsets/libs/tenant_migration_util.js
index cc6ecb5bfb6..0c347adac07 100644
--- a/jstests/replsets/libs/tenant_migration_util.js
+++ b/jstests/replsets/libs/tenant_migration_util.js
@@ -389,7 +389,10 @@ var TenantMigrationUtil = (function() {
assert.commandWorked(adminDB.runCommand({
createRole: "tenantMigrationRecipientRole",
privileges: [
- {resource: {cluster: true}, actions: ["listDatabases", "useUUID"]},
+ {
+ resource: {cluster: true},
+ actions: ["listDatabases", "useUUID", "advanceClusterTime"]
+ },
{resource: {db: "", collection: ""}, actions: ["listCollections"]},
{
resource: {anyResource: true},