CloudConfig toplevel property hovers

This commit is contained in:
Kris De Volder
2017-08-08 11:07:45 -07:00
parent b5d4adcf95
commit 157b121ffa
8 changed files with 106 additions and 8 deletions

View File

@@ -1895,4 +1895,19 @@ public class BoshEditorTest {
editor.assertProblems("bogus|Unknown property");
}
@Test public void cloudconfig_toplevel_hovers() throws Exception {
Editor editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
"azs: []\n" +
"vm_types: []\n" +
"disk_types: []\n" +
"networks: []\n" +
"compilation: {}\n"
);
editor.assertHoverContains("azs", "Specifies the AZs available to deployments.");
editor.assertHoverContains("networks", "specifies a network configuration that jobs can reference.");
editor.assertHoverContains("vm_types", "Specifies the [VM types](https://bosh.io/docs/terminology.html#vm-type) available to deployments.");
editor.assertHoverContains("disk_types", "Specifies the [disk types](https://bosh.io/docs/terminology.html#disk-types) available to deployments.");
editor.assertHoverContains("compilation", "A compilation definition allows to specify VM characteristics.");
}
}