use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class ExternalSegmentServiceTest method testDeleteExternalSegment.
@Test
public void testDeleteExternalSegment() {
respondWith(200);
String id = "fff89eb8-8f9d-49a2-b66c-ad75d9a95287";
ActionResponse result = osv2().gbp().externalSegment().delete(id);
assertTrue(result.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class ServerTagTests method checkTag.
@Test
public void checkTag() {
respondWith(204);
ActionResponse check = osv3().compute().serverTags().check("1", "tag1");
assertTrue(check.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class ServerTagTests method addTag.
@Test
public void addTag() {
respondWith(204);
ActionResponse check = osv3().compute().serverTags().addSingle("1", "tag");
assertTrue(check.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class ServerTagTests method deleteTag.
@Test
public void deleteTag() {
respondWith(204);
ActionResponse delete = osv3().compute().serverTags().delete("1", "tag1");
assertTrue(delete.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class NetworkPolicyServiceTest method testDeleteNetworkServicePolicy.
@Test
public void testDeleteNetworkServicePolicy() {
respondWith(200);
String id = "d98e3cd5-3eb4-41ba-9069-6f5867ceb162";
ActionResponse result = osv2().gbp().networkPolicyService().delete(id);
assertTrue(result.isSuccess());
}
Aggregations