mirror of https://github.com/apache/jclouds.git
Fix for support maven surefire plugin test runner
This commit is contained in:
parent
bb09790060
commit
63c7f9c319
|
@ -5,8 +5,10 @@ import com.google.common.collect.Iterables;
|
||||||
import org.jclouds.compute.domain.NodeMetadata;
|
import org.jclouds.compute.domain.NodeMetadata;
|
||||||
import org.jclouds.compute.domain.NodeState;
|
import org.jclouds.compute.domain.NodeState;
|
||||||
import org.testng.annotations.AfterTest;
|
import org.testng.annotations.AfterTest;
|
||||||
|
import org.testng.annotations.BeforeTest;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.TimeoutException;
|
import java.util.concurrent.TimeoutException;
|
||||||
|
@ -20,6 +22,13 @@ public class ServiceActionsLiveTest extends ComputeBase {
|
||||||
|
|
||||||
static private String group = "ServiceActionsLiveTest";
|
static private String group = "ServiceActionsLiveTest";
|
||||||
|
|
||||||
|
@BeforeTest
|
||||||
|
@Override
|
||||||
|
public void before() throws IOException, ExecutionException, TimeoutException, InterruptedException {
|
||||||
|
super.before();
|
||||||
|
computeService.destroyNodesMatching(inGroup(group));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testReboot() throws Exception {
|
public void testReboot() throws Exception {
|
||||||
getDefaultNodeImmediately(group);
|
getDefaultNodeImmediately(group);
|
||||||
|
|
Loading…
Reference in New Issue