reboot type is set to soft

minor template creation checks
This commit is contained in:
Dmitri Babaev 2011-04-26 18:19:36 +04:00
parent 4a25594fc8
commit b11e02d4a8
3 changed files with 10 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class NovaLifeCycleStrategy implements RebootNodeStrategy, SuspendNodeStr
public NodeMetadata rebootNode(String id) {
int serverId = Integer.parseInt(id);
// if false server wasn't around in the first place
client.rebootServer(serverId, RebootType.HARD);
client.rebootServer(serverId, RebootType.SOFT);
return getNode.getNode(id);
}

View File

@ -15,6 +15,7 @@ import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import java.io.IOException;
import java.util.NoSuchElementException;
import java.util.Properties;
import java.util.Set;
@ -57,6 +58,13 @@ public class ComputeServiceCheck {
Set<? extends NodeMetadata> metedata = cs.createNodesInGroup("test", 1, template);
System.out.println(metedata);
}
@Test(expectedExceptions = NoSuchElementException.class)
public void testDefaultTempateDoesNotSpecifyTheOS() {
ComputeService cs = context.getComputeService();
Template template = cs.templateBuilder().build();
System.out.println(template);
}
@AfterTest
public void after() {

View File

@ -1,4 +1,4 @@
test.nova.endpoint=http://172.18.34.40:8774
test.nova.endpoint=http://dragon004.hw.griddynamics.net:8774
test.nova.apiversion=1.1
test.nova.identity=admin
test.nova.credential=d744752f-20d3-4d75-979f-f62f16033b07