diff options
author | David Passante <david.passante@orange.com> | 2018-09-17 16:08:16 +0200 |
---|---|---|
committer | René Moser <mail@renemoser.net> | 2018-09-17 16:08:16 +0200 |
commit | 05328ebf2121de18f8bede086fbec81be7ee94e7 (patch) | |
tree | 6ff231d6efe2570d5056552629bd93bea1a88477 /test/integration/targets/cs_vpc_offering | |
parent | Simplify PPA installation for Ubuntu (#45690) (diff) | |
download | ansible-05328ebf2121de18f8bede086fbec81be7ee94e7.tar.xz ansible-05328ebf2121de18f8bede086fbec81be7ee94e7.zip |
Cloudstack: fix support for some VPC service capabilities (#45727)
* Fix support for VPC capabilities such as redundant routers or region level VPC
* Add integration test cases for "region level VPC" and "distributed router" capabilities
Diffstat (limited to 'test/integration/targets/cs_vpc_offering')
-rw-r--r-- | test/integration/targets/cs_vpc_offering/tasks/main.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/integration/targets/cs_vpc_offering/tasks/main.yml b/test/integration/targets/cs_vpc_offering/tasks/main.yml index 0336495ff1..ebbeaf910a 100644 --- a/test/integration/targets/cs_vpc_offering/tasks/main.yml +++ b/test/integration/targets/cs_vpc_offering/tasks/main.yml @@ -380,6 +380,30 @@ - vpcoffer.state == "Enabled" - vpcoffer.display_text == "vpc offering description" +- name: test create enabled region level vpc offer with distrubuted router + cs_vpc_offering: + name: "{{ cs_resource_prefix }}_vpc_drl" + display_text: "vpc offering description" + supported_services: [ Dns, PortForwarding, Dhcp, SourceNat, UserData, StaticNat, Vpn, Lb ] + service_providers: + - { service: 'dns', provider: 'virtualrouter' } + - { service: 'dhcp', provider: 'virtualrouter' } + state: enabled + service_capabilities: + - {service: 'Connectivity', capabilitytype: 'DistributedRouter', capabilityvalue: true} + - {service: 'Connectivity', capabilitytype: 'RegionLevelVPC', capabilityvalue: true} + register: vpcoffer +- name: verify results of create enabled region level vpc offer with distrubuted router + assert: + that: + - vpcoffer is successful + - vpcoffer is changed + - vpcoffer.name == "{{ cs_resource_prefix }}_vpc_drl" + - vpcoffer.state == "Enabled" + - vpcoffer.display_text == "vpc offering description" + - vpcoffer.distributed == true + - vpcoffer.region_level == true + - name: remove vpc offer cs_vpc_offering: name: "{{ cs_resource_prefix }}_vpc" @@ -390,3 +414,14 @@ that: - vpcoffer is successful - vpcoffer is changed + +- name: remove region level vpc offer with distrubuted router + cs_vpc_offering: + name: "{{ cs_resource_prefix }}_vpc_drl" + state: absent + register: vpcoffer +- name: verify results of remove region level vpc offer with distrubuted router + assert: + that: + - vpcoffer is successful + - vpcoffer is changed |