assertVAppStatus(vAppUrn, Status.POWERED_OFF);
}
@Test(groups = { "live", "user" }, description = "POST /vApp/{id}/action/controlAccess", dependsOnMethods = { "testGetVApp" })
public void testControlAccessUser() {
ControlAccessParams params = ControlAccessParams
.builder()
.notSharedToEveryone()
.accessSetting(
AccessSetting.builder()
.subject(Reference.builder().href(user.getHref()).type(ADMIN_USER).build())
.accessLevel("ReadOnly").build()).build();
// The method under test
ControlAccessParams modified = vAppApi.editControlAccess(vAppUrn, params);
// Check the retrieved object is well formed
checkControlAccessParams(modified);
// Check the required fields are set
assertEquals(modified, params, String.format(ENTITY_EQUAL, "ControlAccessParams"));