set assignedcluster in tenantmanagement workload

This commit is contained in:
Jon Fu 2022-09-09 16:10:42 -07:00
parent 64a06f6c6b
commit bfd2d138f7
1 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,9 @@ struct TenantManagementWorkload : TestWorkload {
wait(tr->commit());
} else {
ASSERT(tenantsToCreate.size() == 1);
if (deterministicRandom()->coinflip()) {
tenantsToCreate.begin()->second.assignedCluster = self->dataClusterName;
}
wait(MetaclusterAPI::createTenant(
self->mvDb, tenantsToCreate.begin()->first, tenantsToCreate.begin()->second));
}