mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
cloudstack: test: ensure network is implemented (#52204)
In ACS 4.12, it is no longer possbile to acquire IPs to a (...) network
not already in implemented state.
With deployment of a VM instance, we enforce the implementation of the
network. Also see 323f791efc
This commit is contained in:
@@ -11,6 +11,23 @@
|
||||
that:
|
||||
- net is successful
|
||||
|
||||
- name: setup instance to get network in implementation state
|
||||
cs_instance:
|
||||
name: "{{ cs_resource_prefix }}-vm-cs-firewall"
|
||||
template: "{{ cs_common_template }}"
|
||||
service_offering: "{{ cs_common_service_offering }}"
|
||||
zone: "{{ cs_common_zone_adv }}"
|
||||
networks:
|
||||
- "{{ net.name }}"
|
||||
register: instance
|
||||
until: instance is success
|
||||
retries: 10
|
||||
delay: 5
|
||||
- name: verify instance setup
|
||||
assert:
|
||||
that:
|
||||
- instance is successful
|
||||
|
||||
- name: public ip address setup
|
||||
cs_ip_address:
|
||||
network: ansible test
|
||||
@@ -444,6 +461,17 @@
|
||||
- fw is successful
|
||||
- fw is not changed
|
||||
|
||||
- name: cleanup instance
|
||||
cs_instance:
|
||||
name: "{{ cs_resource_prefix }}-vm-cs-firewall"
|
||||
zone: "{{ cs_common_zone_adv }}"
|
||||
state: expunged
|
||||
register: instance
|
||||
- name: verify instance cleanup
|
||||
assert:
|
||||
that:
|
||||
- instance is successful
|
||||
|
||||
- name: network cleanup
|
||||
cs_network:
|
||||
name: "{{ cs_firewall_network }}"
|
||||
|
||||
Reference in New Issue
Block a user