mirror of https://github.com/apache/jclouds.git
update slicehost default template properties
This commit is contained in:
parent
feaef2b6eb
commit
6662614023
|
@ -53,7 +53,8 @@ public class SlicehostTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTes
|
|||
public boolean apply(OsFamilyVersion64Bit input) {
|
||||
switch (input.family) {
|
||||
case UBUNTU:
|
||||
return input.version.equals("") || input.version.startsWith("10") || input.version.equals("9.10");
|
||||
return !(input.version.startsWith("11.10") || input.version.equals("8.04") || (input.version
|
||||
.equals("11.04") && !input.is64Bit));
|
||||
case DEBIAN:
|
||||
return !(input.version.equals("6.0") && !input.is64Bit);
|
||||
case RHEL:
|
||||
|
@ -75,7 +76,7 @@ public class SlicehostTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTes
|
|||
@Test
|
||||
public void testDefaultTemplateBuilder() throws IOException {
|
||||
Template defaultTemplate = context.getComputeService().templateBuilder().build();
|
||||
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "10.10");
|
||||
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "11.04");
|
||||
assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true);
|
||||
assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU);
|
||||
assertEquals(getCores(defaultTemplate.getHardware()), 0.25d);
|
||||
|
|
Loading…
Reference in New Issue