CloudConfig editor: azs sub-properties added to schema

This commit is contained in:
Kris De Volder
2017-08-09 15:15:57 -07:00
parent 8f2582925b
commit e8b1c8658c
4 changed files with 41 additions and 1 deletions

View File

@@ -2358,4 +2358,32 @@ public class BoshEditorTest {
editor.assertProblems("bad-network|unknown 'NetworkName'");
}
@Test public void cloudconfig_network_azs_ca() throws Exception {
Editor editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
"azs:\n" +
"- <*>"
);
editor.assertContextualCompletions("<*>",
"name: <*>"
);
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
"azs:\n" +
"- name: the-zone\n" +
" <*>"
);
editor.assertContextualCompletions(PLAIN_COMPLETION, "<*>",
"cloud_properties:\n" +
" <*>"
);
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
"azs:\n" +
"- name: the-zone\n" +
" cloud_properties: {}\n"
);
editor.assertHoverContains("name", "Name of an AZ within the Director");
editor.assertHoverContains("cloud_properties", "Describes any IaaS-specific properties needed to associated with AZ");
}
}