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