Fixed new test for buildpacks
This commit is contained in:
@@ -1129,7 +1129,8 @@ public class ManifestYamlEditorTest {
|
||||
editor = harness.newEditor(
|
||||
"applications:\n" +
|
||||
"- name: foo-foo\n" +
|
||||
" buildpack: java_buildpack\n" +
|
||||
" buildpacks:\n " +
|
||||
" - bad-buildpack\n" +
|
||||
" routes:\n" +
|
||||
" - route: foo.blah/fooo\n"
|
||||
);
|
||||
@@ -1371,7 +1372,7 @@ public class ManifestYamlEditorTest {
|
||||
when(buildPack.getName()).thenReturn("java_buildpack");
|
||||
when(cfClient.getBuildpacks()).thenReturn(ImmutableList.of(buildPack));
|
||||
|
||||
CompletionItem completion = assertCompletions("buildpacks: \n - <*>", " - java_buildpack<*>").get(0);
|
||||
CompletionItem completion = assertCompletions("buildpacks:\n - <*>", "buildpacks:\n - java_buildpack<*>").get(0);
|
||||
assertEquals("java_buildpack", completion.getLabel());
|
||||
assertDocumentation("an-org : a-space [test.io]", completion);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user