Fixes a missing image. Test now tries to match image by name.

This commit is contained in:
Zack Shoylev 2015-01-29 16:45:49 -06:00
parent b75b0c28d6
commit 4db8b2360b
1 changed files with 3 additions and 3 deletions

View File

@ -39,11 +39,11 @@ public class CloudServersUSTemplateBuilderLiveTest extends BaseTemplateBuilderLi
@Test
public void testTemplateBuilder() {
Template defaultTemplate = this.view.getComputeService().templateBuilder().build();
Template defaultTemplate = this.view.getComputeService().templateBuilder().imageNameMatches(".*Ubuntu 14\\.10.*").build();
assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true);
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "12.10");
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "14.10");
assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU);
assertEquals(defaultTemplate.getImage().getName(), "Ubuntu 12.10 (Quantal Quetzal)");
assertEquals(defaultTemplate.getImage().getName(), "Ubuntu 14.10 (Utopic Unicorn) (PVHVM)");
assertEquals(defaultTemplate.getImage().getDefaultCredentials().getUser(), "root");
assertEquals(defaultTemplate.getLocation().getId(), "SYD");
assertEquals(defaultTemplate.getImage().getLocation().getId(), "SYD");