2018-04-22 18:13:01 +00:00
|
|
|
---
|
2018-11-01 06:26:08 +00:00
|
|
|
- name: test fail vpc and network mutually exclusive
|
2018-04-22 18:13:01 +00:00
|
|
|
cs_ip_address:
|
2018-11-01 06:26:08 +00:00
|
|
|
network: "{{ cs_resource_prefix }}_net_vpc"
|
|
|
|
vpc: "foobar"
|
2018-04-22 18:13:01 +00:00
|
|
|
zone: "{{ cs_common_zone_adv }}"
|
2018-11-01 06:26:08 +00:00
|
|
|
ignore_errors: yes
|
2018-04-22 18:13:01 +00:00
|
|
|
register: ip_address
|
2018-11-01 06:26:08 +00:00
|
|
|
- name: verify test fail vpc and network mutually exclusive
|
2018-04-22 18:13:01 +00:00
|
|
|
assert:
|
|
|
|
that:
|
2018-11-01 06:26:08 +00:00
|
|
|
- ip_address is failed
|
|
|
|
- 'ip_address.msg == "parameters are mutually exclusive: vpc, network"'
|
2018-04-22 18:13:01 +00:00
|
|
|
|
2018-11-01 06:26:08 +00:00
|
|
|
- name: run test for network setup
|
|
|
|
import_tasks: network.yml
|
2018-04-22 18:13:01 +00:00
|
|
|
|
2018-11-01 06:26:08 +00:00
|
|
|
- name: run test for vpc setup
|
|
|
|
import_tasks: vpc.yml
|