Hovers for vm_types block in cloudconfig editor
This commit is contained in:
@@ -6,13 +6,3 @@ Example:
|
||||
- name: default
|
||||
cloud_properties:
|
||||
instance_type: m1.small
|
||||
|
||||
CPI Specific `cloud_properties`
|
||||
|
||||
- See [AWS CPI VM types cloud properties](https://bosh.io/docs/aws-cpi.html#resource-pools)
|
||||
- See [Azure CPI VM types cloud properties](https://bosh.io/docs/azure-cpi.html#resource-pools)
|
||||
- See [OpenStack CPI VM types cloud properties](https://bosh.io/docs/openstack-cpi.html#resource-pools)
|
||||
- See [Softlayer CPI VM types cloud properties](https://bosh.io/docs/softlayer-cpi.html#resource-pools)
|
||||
- See [Google Cloud Platform CPI VM types cloud properties](https://bosh.io/docs/google-cpi.html#resource-pools)
|
||||
- See [vSphere CPI VM types cloud properties](https://bosh.io/docs/vsphere-cpi.html#resource-pools)
|
||||
- See [vCloud CPI VM types cloud properties](https://bosh.io/docs/vcloud-cpi.html#resource-pools)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
*Optional*. Describes any IaaS-specific properties needed to create VMs; for most IaaSes, some data here is actually required.
|
||||
|
||||
CPI Specific `cloud_properties`
|
||||
|
||||
- See [AWS CPI VM types cloud properties](https://bosh.io/docs/aws-cpi.html#resource-pools)
|
||||
- See [Azure CPI VM types cloud properties](https://bosh.io/docs/azure-cpi.html#resource-pools)
|
||||
- See [OpenStack CPI VM types cloud properties](https://bosh.io/docs/openstack-cpi.html#resource-pools)
|
||||
- See [Softlayer CPI VM types cloud properties](https://bosh.io/docs/softlayer-cpi.html#resource-pools)
|
||||
- See [Google Cloud Platform CPI VM types cloud properties](https://bosh.io/docs/google-cpi.html#resource-pools)
|
||||
- See [vSphere CPI VM types cloud properties](https://bosh.io/docs/vsphere-cpi.html#resource-pools)
|
||||
- See [vCloud CPI VM types cloud properties](https://bosh.io/docs/vcloud-cpi.html#resource-pools)
|
||||
@@ -0,0 +1 @@
|
||||
*Required*. A unique name used to identify and reference the VM type.
|
||||
@@ -1957,6 +1957,14 @@ public class BoshEditorTest {
|
||||
@Test public void cloudconfig_vm_types_subproperties() throws Exception {
|
||||
Editor editor;
|
||||
|
||||
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
|
||||
"vm_types:\n" +
|
||||
"- <*>"
|
||||
);
|
||||
editor.assertContextualCompletions("<*>",
|
||||
"name: <*>"
|
||||
);
|
||||
|
||||
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
|
||||
"vm_types:\n" +
|
||||
"- name: nice-vm\n" +
|
||||
@@ -1966,14 +1974,6 @@ public class BoshEditorTest {
|
||||
"cloud_properties:\n <*>"
|
||||
);
|
||||
|
||||
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
|
||||
"vm_types:\n" +
|
||||
"- <*>"
|
||||
);
|
||||
editor.assertContextualCompletions("<*>",
|
||||
"name: <*>"
|
||||
);
|
||||
|
||||
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
|
||||
"vm_types:\n" +
|
||||
"- name: nice-vm\n" +
|
||||
@@ -1985,6 +1985,15 @@ public class BoshEditorTest {
|
||||
"dup|Duplicate 'VMTypeName'",
|
||||
"dup|Duplicate 'VMTypeName'"
|
||||
);
|
||||
|
||||
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
|
||||
"vm_types:\n" +
|
||||
"- name: default\n" +
|
||||
" cloud_properties:\n" +
|
||||
" instance_type: m1.small\n"
|
||||
);
|
||||
editor.assertHoverContains("name", "A unique name used to identify and reference the VM type");
|
||||
editor.assertHoverContains("cloud_properties", "Describes any IaaS-specific properties needed to create VMs");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user