diff --git a/labs/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeComputeServiceLiveTest.java b/labs/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeComputeServiceLiveTest.java index 1cb30fef0d..8083fd40c5 100644 --- a/labs/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeComputeServiceLiveTest.java +++ b/labs/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeComputeServiceLiveTest.java @@ -18,30 +18,17 @@ */ package org.jclouds.hpcloud.compute.compute; -import org.jclouds.compute.BaseComputeServiceLiveTest; -import org.jclouds.sshj.config.SshjSshClientModule; +import org.jclouds.openstack.nova.v1_1.compute.NovaComputeServiceLiveTest; import org.testng.annotations.Test; -import com.google.inject.Module; - /** * * @author Adrian Cole */ @Test(groups = "live", singleThreaded = true, testName = "HPCloudComputeComputeServiceLiveTest") -public class HPCloudComputeComputeServiceLiveTest extends BaseComputeServiceLiveTest { +public class HPCloudComputeComputeServiceLiveTest extends NovaComputeServiceLiveTest { public HPCloudComputeComputeServiceLiveTest() { provider = "hpcloud-compute"; } - - @Override - protected Module getSshModule() { - return new SshjSshClientModule(); - } - - @Override - public void testOptionToNotBlock() { - // start call is blocking anyway. - } } diff --git a/labs/openstack-nova/src/test/java/org/jclouds/openstack/nova/v1_1/compute/NovaComputeServiceLiveTest.java b/labs/openstack-nova/src/test/java/org/jclouds/openstack/nova/v1_1/compute/NovaComputeServiceLiveTest.java new file mode 100644 index 0000000000..f0879a0003 --- /dev/null +++ b/labs/openstack-nova/src/test/java/org/jclouds/openstack/nova/v1_1/compute/NovaComputeServiceLiveTest.java @@ -0,0 +1,52 @@ +package org.jclouds.openstack.nova.v1_1.compute; + +import org.jclouds.compute.BaseComputeServiceLiveTest; +import org.jclouds.sshj.config.SshjSshClientModule; +import org.testng.annotations.Test; + +import com.google.inject.Module; + +/** + * + * @author Adrian Cole + */ +@Test(groups = "live", singleThreaded = true, testName = "NovaComputeServiceLiveTest") +public class NovaComputeServiceLiveTest extends BaseComputeServiceLiveTest { + + public NovaComputeServiceLiveTest() { + provider = "openstack-nova"; + } + + @Override + protected Module getSshModule() { + return new SshjSshClientModule(); + } + + @Override + public void testOptionToNotBlock() { + // start call is blocking anyway. + } + + @Test(enabled = true, dependsOnMethods = "testReboot", expectedExceptions = UnsupportedOperationException.class) + public void testSuspendResume() throws Exception { + super.testSuspendResume(); + } + + @Test(enabled = true, dependsOnMethods = "testSuspendResume") + @Override + public void testGetNodesWithDetails() throws Exception { + super.testGetNodesWithDetails(); + } + + @Test(enabled = true, dependsOnMethods = "testSuspendResume") + @Override + public void testListNodes() throws Exception { + super.testListNodes(); + } + + @Test(enabled = true, dependsOnMethods = { "testListNodes", "testGetNodesWithDetails" }) + @Override + public void testDestroyNodes() { + super.testDestroyNodes(); + } +}