Search in sources :

Example 41 with ActionResponse

use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.

the class EnvironmentTests method testDeleteEnvironment.

public void testDeleteEnvironment() throws IOException {
    respondWith(204);
    ActionResponse delete = osv3().murano().environments().delete("721f76f9a9d64ebcacc76189cb8978a9");
    assertTrue(delete.isSuccess());
}
Also used : ActionResponse(org.openstack4j.model.common.ActionResponse)

Example 42 with ActionResponse

use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.

the class ShareTypeTests method removeShareTypeAccess.

@Test
public void removeShareTypeAccess() throws Exception {
    respondWith(202);
    ActionResponse response = osv3().share().shareTypes().removeShareTypeAccess("be27425c-f807-4500-a056-d00721db45cf", "e1284adea3ee4d2482af5ed214f3ad90");
    assertTrue(response.isSuccess());
}
Also used : ActionResponse(org.openstack4j.model.common.ActionResponse) AbstractTest(org.openstack4j.api.AbstractTest) Test(org.testng.annotations.Test)

Example 43 with ActionResponse

use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.

the class LbPoolTests method testDisAssociateHealthMonitor.

@Test(enabled = false)
public void testDisAssociateHealthMonitor() {
    String poolId = "db083bf7-c455-4758-b1ad-203cf441a73a";
    String healthId = "8767284a-b542-4db6-8393-0a404a959c1d";
    ActionResponse result = osv3().networking().loadbalancers().lbPool().disAssociateHealthMonitor(poolId, healthId);
    assertTrue(result.isSuccess());
}
Also used : ActionResponse(org.openstack4j.model.common.ActionResponse) Test(org.testng.annotations.Test) AbstractTest(org.openstack4j.api.AbstractTest)

Example 44 with ActionResponse

use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.

the class LbPoolV2Tests method testDeletePoolV2.

public void testDeletePoolV2() {
    respondWith(204);
    ActionResponse result = osv3().networking().lbaasV2().lbPool().delete("b7f6a49f-ebd8-43c5-b792-5748366eff21");
    assertTrue(result.isSuccess());
}
Also used : ActionResponse(org.openstack4j.model.common.ActionResponse)

Example 45 with ActionResponse

use of org.openstack4j.model.common.ActionResponse in project openstack4j by ContainX.

the class SharesTests method revokeAccess.

@Test
public void revokeAccess() throws Exception {
    respondWith(202);
    ActionResponse response = osv3().share().shares().revokeAccess("406ea93b-32e9-4907-a117-148b3945749f", "a25b2df3-90bd-4add-afa6-5f0dbbd50452");
    assertTrue(response.isSuccess());
}
Also used : ActionResponse(org.openstack4j.model.common.ActionResponse) Test(org.testng.annotations.Test) AbstractTest(org.openstack4j.api.AbstractTest)

Aggregations

ActionResponse (org.openstack4j.model.common.ActionResponse)123 AbstractTest (org.openstack4j.api.AbstractTest)54 Test (org.testng.annotations.Test)54 Message (org.apache.camel.Message)25 ArrayList (java.util.ArrayList)2 CreateUpdateContainerOptions (org.openstack4j.model.storage.object.options.CreateUpdateContainerOptions)2 TroveBuilders (org.openstack4j.openstack.trove.builder.TroveBuilders)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 File (java.io.File)1 InputStream (java.io.InputStream)1 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 RecordedRequest (okhttp3.mockwebserver.RecordedRequest)1 ResponseToActionResponse (org.openstack4j.core.transport.functions.ResponseToActionResponse)1 Action (org.openstack4j.model.compute.Action)1 User (org.openstack4j.model.identity.v3.User)1 Volume (org.openstack4j.model.storage.block.Volume)1 VolumeSnapshot (org.openstack4j.model.storage.block.VolumeSnapshot)1 KeystoneUser (org.openstack4j.openstack.identity.v3.domain.KeystoneUser)1 TroveDatabase (org.openstack4j.openstack.trove.domain.TroveDatabase)1