use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class SharesTests method extend.
@Test
public void extend() throws Exception {
respondWith(202);
ActionResponse response = osv3().share().shares().extend("406ea93b-32e9-4907-a117-148b3945749f", 2);
assertTrue(response.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class SharesTests method shrink.
@Test
public void shrink() throws Exception {
respondWith(202);
ActionResponse response = osv3().share().shares().shrink("406ea93b-32e9-4907-a117-148b3945749f", 1);
assertTrue(response.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class SharesTests method forceDelete.
@Test
public void forceDelete() throws Exception {
respondWith(202);
ActionResponse response = osv3().share().shares().forceDelete("406ea93b-32e9-4907-a117-148b3945749f");
assertTrue(response.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class SharesTests method unsetMetadata.
@Test
public void unsetMetadata() throws Exception {
respondWith(200);
ActionResponse response = osv3().share().shares().unsetMetadata("3d503524-a906-4757-8576-77a2029ff0c4", "key");
assertTrue(response.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class SharesTests method resetState.
@Test
public void resetState() throws Exception {
respondWith(202);
ActionResponse response = osv3().share().shares().resetState("406ea93b-32e9-4907-a117-148b3945749f", Share.Status.ERROR);
assertTrue(response.isSuccess());
}
Aggregations