Fix HPCloudComputeTemplateBuilderLiveTest

This commit is contained in:
Ignasi Barrera 2015-03-24 00:40:43 +01:00
parent 4db2b75add
commit fcb7dfcb81
1 changed files with 2 additions and 2 deletions

View File

@ -41,9 +41,9 @@ public class HPCloudComputeTemplateBuilderLiveTest extends BaseTemplateBuilderLi
public void testTemplateBuilder() { public void testTemplateBuilder() {
Template defaultTemplate = this.view.getComputeService().templateBuilder().build(); Template defaultTemplate = this.view.getComputeService().templateBuilder().build();
assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true); assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true);
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "12.04"); assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "14.04");
assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU); assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU);
assertTrue(defaultTemplate.getImage().getName().startsWith("Ubuntu Server 12.04")); assertTrue(defaultTemplate.getImage().getName().startsWith("Ubuntu Server 14.04"));
assertEquals(defaultTemplate.getImage().getDefaultCredentials().getUser(), "ubuntu"); assertEquals(defaultTemplate.getImage().getDefaultCredentials().getUser(), "ubuntu");
assertEquals(defaultTemplate.getLocation().getId(), "region-a.geo-1"); assertEquals(defaultTemplate.getLocation().getId(), "region-a.geo-1");
assertEquals(defaultTemplate.getImage().getLocation().getId(), "region-a.geo-1"); assertEquals(defaultTemplate.getImage().getLocation().getId(), "region-a.geo-1");