mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
cs_vpc: fix disabled or wrong vpc offering taken (#42465)
This commit is contained in:
parent
3301a0b530
commit
d7c3d5501b
2 changed files with 31 additions and 4 deletions
|
@ -45,7 +45,22 @@
|
|||
assert:
|
||||
that:
|
||||
- vpc is failed
|
||||
- 'vpc.msg == "VPC offering not found: does_not_exist"'
|
||||
- 'vpc.msg == "VPC offering not found or not enabled: does_not_exist"'
|
||||
|
||||
- name: test fail name substring match
|
||||
cs_vpc:
|
||||
name: "{{ cs_resource_prefix }}_vpc"
|
||||
# Full name is "Redundant VPC offering"
|
||||
vpc_offering: "Redundant"
|
||||
zone: "{{ cs_common_zone_adv }}"
|
||||
cidr: 10.10.1.0/16
|
||||
ignore_errors: true
|
||||
register: vpc
|
||||
- name: verify test fail name substring match
|
||||
assert:
|
||||
that:
|
||||
- vpc is failed
|
||||
- 'vpc.msg == "VPC offering not found or not enabled: Redundant"'
|
||||
|
||||
- name: test create vpc with custom offering in check mode
|
||||
cs_vpc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue