mirror of https://github.com/apache/jclouds.git
reboot type is set to soft
minor template creation checks
This commit is contained in:
parent
4a25594fc8
commit
b11e02d4a8
|
@ -47,7 +47,7 @@ public class NovaLifeCycleStrategy implements RebootNodeStrategy, SuspendNodeStr
|
||||||
public NodeMetadata rebootNode(String id) {
|
public NodeMetadata rebootNode(String id) {
|
||||||
int serverId = Integer.parseInt(id);
|
int serverId = Integer.parseInt(id);
|
||||||
// if false server wasn't around in the first place
|
// if false server wasn't around in the first place
|
||||||
client.rebootServer(serverId, RebootType.HARD);
|
client.rebootServer(serverId, RebootType.SOFT);
|
||||||
return getNode.getNode(id);
|
return getNode.getNode(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ import org.testng.annotations.BeforeTest;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
@ -58,6 +59,13 @@ public class ComputeServiceCheck {
|
||||||
System.out.println(metedata);
|
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
|
@AfterTest
|
||||||
public void after() {
|
public void after() {
|
||||||
context.close();
|
context.close();
|
||||||
|
|
|
@ -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.apiversion=1.1
|
||||||
test.nova.identity=admin
|
test.nova.identity=admin
|
||||||
test.nova.credential=d744752f-20d3-4d75-979f-f62f16033b07
|
test.nova.credential=d744752f-20d3-4d75-979f-f62f16033b07
|
||||||
|
|
Loading…
Reference in New Issue