use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class ImageV2Tests method testReactivateImage.
public void testReactivateImage() throws IOException {
respondWith(204);
ActionResponse reactivate = osv3().imagesV2().reactivate("8a2ea42d-06b5-42c2-a54d-97105420f2bb");
assertTrue(reactivate.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class ImageV2Tests method testDeleteMember.
public void testDeleteMember() throws IOException {
respondWith(204);
String imageId = "4b434528-032b-4467-946c-b5880ce15c06";
String memberId = "66cabdfb14bd48d48402f7464bda7733";
ActionResponse deleteMember = osv3().imagesV2().deleteMember(imageId, memberId);
assertTrue(deleteMember.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class ImageV2Tests method testUpdateImageTag.
public void testUpdateImageTag() throws IOException {
respondWith(204);
String tag = "tag1";
String imageId = "8a2ea42d-06b5-42c2-a54d-97105420f2bb";
ActionResponse ur = osv3().imagesV2().updateTag(imageId, tag);
assertTrue(ur.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class QuotaSetTests method delete.
@Test
public void delete() throws Exception {
respondWith(202);
ActionResponse response = osv3().share().quotaSets().delete("test_tenant");
assertTrue(response.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class KeystoneRoleServiceTests method grantRevokeProjectUserRole_Test.
/**
* grants and revokes a role to/from a user in project context
*
* @throws Exception
*/
public void grantRevokeProjectUserRole_Test() throws Exception {
respondWith(204);
ActionResponse result_grant = osv3().identity().roles().grantProjectUserRole(PROJECT_ID, USER_ID, ROLE_ID);
assertTrue(result_grant.isSuccess());
respondWith(204);
ActionResponse result_revoke = osv3().identity().roles().revokeProjectUserRole(PROJECT_ID, USER_ID, ROLE_ID);
assertTrue(result_revoke.isSuccess());
}
Aggregations