use of org.openstack4j.model.common.ActionResponse in project camel by apache.
the class GroupProducer method doDelete.
private void doDelete(Exchange exchange) {
final Message msg = exchange.getIn();
final String id = msg.getHeader(OpenstackConstants.ID, msg.getHeader(KeystoneConstants.GROUP_ID, String.class), String.class);
ObjectHelper.notEmpty(id, "Group ID");
final ActionResponse response = osV3Client.identity().groups().delete(id);
checkFailure(response, msg, "Delete group with ID " + id);
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class PolicyClassifierServiceTest method testDeletePolicyClassifier.
@Test
public void testDeletePolicyClassifier() {
respondWith(200);
String id = "36e41adb-0b9b-4a11-abd5-66e5386139d4";
ActionResponse result = osv2().gbp().policyClassifier().delete(id);
assertTrue(result.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class PolicyRuleServiceTest method testDeletePolicyRule.
@Test
public void testDeletePolicyRule() {
respondWith(200);
String id = "059909d1-7f20-40cf-a78a-27c340a5aaac";
ActionResponse result = osv2().gbp().policyRule().delete(id);
assertTrue(result.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class PolicyRuleSetServiceTest method testDeletePolicyRuleSet.
@Test
public void testDeletePolicyRuleSet() {
respondWith(200);
String id = "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4";
ActionResponse result = osv2().gbp().policyRuleSet().delete(id);
assertTrue(result.isSuccess());
}
use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.
the class ContainerTests method testDeleteContainer.
public void testDeleteContainer() throws IOException {
respondWith(204);
ActionResponse result = osv3().barbican().containers().delete(containerId);
assertTrue(result.isSuccess());
}
Aggregations