added base test for openstack-nova

This commit is contained in:
Adrian Cole 2012-03-22 17:15:49 -07:00
parent 2a1b423f2b
commit 5f6815904b
2 changed files with 54 additions and 15 deletions

View File

@ -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.
}
}

View File

@ -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();
}
}