@@ -2933,6 +2933,7 @@ public void replicationWithAuthzCacheClear() throws Throwable {

VerificationHost groupHost = this.host.getPeerHost();

groupHost.setSystemAuthorizationContext();
// wait for auth related services to be stabilized
groupHost.waitForReplicatedFactoryServiceAvailable(
UriUtils.buildUri(groupHost, UserService.FACTORY_LINK));
@@ -2950,7 +2951,7 @@ public void replicationWithAuthzCacheClear() throws Throwable {
String bazUserLink = UriUtils.buildUriPath(ServiceUriPaths.CORE_AUTHZ_USERS,
"baz@vmware.com");

groupHost.setSystemAuthorizationContext();


// create user, user-group, resource-group, role for foo@vmware.com
// user: /core/authz/users/foo@vmware.com
@@ -3161,7 +3162,7 @@ private void populateAuthCacheInAllPeers(AuthorizationContext authContext) throw

// based on the role created in test, all users have access to ExampleService
this.host.sendAndWaitExpectSuccess(
Operation.createGet(UriUtils.buildStatsUri(peer, ExampleService.FACTORY_LINK)));
Operation.createGet(UriUtils.buildUri(peer, ExampleService.FACTORY_LINK)));
}

this.host.waitFor("Timeout waiting for correct auth cache state",