From 63c7f9c319b1e6fd9ebc28625a274ba9db6ac99e Mon Sep 17 00:00:00 2001 From: Victor Galkin Date: Tue, 26 Apr 2011 19:34:07 +0400 Subject: [PATCH] Fix for support maven surefire plugin test runner --- .../nova/live/compute/ServiceActionsLiveTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sandbox-apis/nova/src/test/java/org/jclouds/openstack/nova/live/compute/ServiceActionsLiveTest.java b/sandbox-apis/nova/src/test/java/org/jclouds/openstack/nova/live/compute/ServiceActionsLiveTest.java index 9b50d262cc..b7a890540f 100644 --- a/sandbox-apis/nova/src/test/java/org/jclouds/openstack/nova/live/compute/ServiceActionsLiveTest.java +++ b/sandbox-apis/nova/src/test/java/org/jclouds/openstack/nova/live/compute/ServiceActionsLiveTest.java @@ -5,8 +5,10 @@ import com.google.common.collect.Iterables; import org.jclouds.compute.domain.NodeMetadata; import org.jclouds.compute.domain.NodeState; import org.testng.annotations.AfterTest; +import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; +import java.io.IOException; import java.util.Set; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -20,6 +22,13 @@ public class ServiceActionsLiveTest extends ComputeBase { static private String group = "ServiceActionsLiveTest"; + @BeforeTest + @Override + public void before() throws IOException, ExecutionException, TimeoutException, InterruptedException { + super.before(); + computeService.destroyNodesMatching(inGroup(group)); + } + @Test public void testReboot() throws Exception { getDefaultNodeImmediately(group);