Add missing hovers for releases attributes

This commit is contained in:
Kris De Volder
2017-07-20 14:50:07 -07:00
parent 27f5e4eca9
commit 4342b237ed
5 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1 @@
*Required*. Name of a stemcell used in the deployment.

View File

@@ -0,0 +1 @@
Full name of a matching stemcell. Either `name` or `os` keys can be specified.

View File

@@ -0,0 +1 @@
Operating system of a matching stemcell. Example: `ubuntu-trusty`. Either `name` or `os` keys can be specified.

View File

@@ -0,0 +1 @@
*Required*. The version of a matching stemcell. Version can be `latest`.

View File

@@ -213,6 +213,22 @@ public class BoshEditorTest {
);
}
@Test public void stemcellHovers() throws Exception {
Editor editor = harness.newEditor(
"stemcells:\n" +
"- alias: default\n" +
" os: ubuntu-trusty\n" +
" version: 3147\n" +
" name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent"
);
editor.assertHoverContains("alias", "Name of a stemcell used in the deployment");
editor.assertHoverContains("os", "Operating system of a matching stemcell");
editor.assertHoverContains("version", "The version of a matching stemcell");
editor.assertHoverContains("name", "Full name of a matching stemcell. Either `name` or `os` keys can be specified.");
}
@Test public void releasesBlockCompletions() throws Exception {
Editor editor = harness.newEditor(
"releases:\n" +