Schema for 'vip' network in Cloud conf editor

This commit is contained in:
Kris De Volder
2017-08-09 13:55:32 -07:00
parent e4f774f65c
commit c4377845c6
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
Describes any IaaS-specific properties for the network. Default is {} (empty Hash).
See:
- [AWS CPI network cloud properties](https://bosh.io/docs/aws-cpi.html#networks)
- [Azure CPI network cloud properties](https://bosh.io/docs/azure-cpi.html#networks)
- [OpenStack CPI network cloud properties](https://bosh.io/docs/openstack-cpi.html#networks)
- [Softlayer CPI network cloud properties](https://bosh.io/docs/softlayer-cpi.html#networks)
- [Google Cloud Platform CPI network cloud properties](https://bosh.io/docs/google-cpi.html#networks)
- [vSphere CPI network cloud properties](https://bosh.io/docs/vsphere-cpi.html#networks)
- [vCloud CPI network cloud properties](https://bosh.io/docs/vcloud-cpi.html#networks)

View File

@@ -2301,4 +2301,31 @@ public class BoshEditorTest {
editor.assertHoverContains("azs", "List of AZs associated with this subnet");
}
@Test public void cloudconfig_vip_network() throws Exception {
Editor editor;
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
"networks:\n" +
"- name: foo\n" +
" type: vip\n" +
" <*>"
);
editor.assertContextualCompletions(PLAIN_COMPLETION,
"<*>"
, // ==>
"cloud_properties:\n" +
" <*>"
);
editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
"networks:\n" +
"- name: foo\n" +
" type: vip\n" +
" cloud_properties: {}"
);
editor.assertHoverContains("name", "Name used to reference this network configuration");
editor.assertHoverContains("type", "The type of configuration");
editor.assertHoverContains("cloud_properties", "Describes any IaaS-specific properties for the network");
}
}