Fix failing test

This commit is contained in:
Kris De Volder
2017-07-24 12:25:26 -07:00
parent d75d1438d2
commit 427dbe8b62
4 changed files with 17 additions and 2 deletions

View File

@@ -936,13 +936,13 @@ public class BoshEditorTest {
editor = harness.newEditor(
"stemcells:\n" +
"- alias: good\n" +
" os: ubuntu-trusty\n" +
" os: ubuntu\n" +
"- alias: not-so-good\n" +
" os: bogus<*>"
);
editor.ignoreProblem(YamlSchemaProblems.MISSING_PROPERTY);
editor.assertProblems(
"bogus|unknown 'StemcellOs'. Valid values are: [centos-7, ubuntu-trusty]"
"bogus|unknown 'StemcellOs'. Valid values are: [ubuntu, centos]"
);
}

View File

@@ -57,4 +57,10 @@ public class BoshCommandStemcellsProviderTest {
provider.getModel(mock(DynamicSchemaContext.class)).getStemcellOss());
}
@Test public void getVersions() throws Exception {
assertEquals(ImmutableSet.of("3421.11"),
provider.getModel(mock(DynamicSchemaContext.class)).getVersions());
}
}