cloudstack: tests: add test facts in check mode

This commit is contained in:
Rene Moser 2017-07-26 11:27:13 +02:00 committed by René Moser
commit 50a24cc9d7
2 changed files with 40 additions and 2 deletions

View file

@ -38,6 +38,23 @@
that:
- instance|success
- name: test instance facts in check mode
cs_instance_facts:
name: "{{ cs_resource_prefix }}-vm"
register: instance_facts
check_mode: true
- name: verify test instance facts in check mode
assert:
that:
- instance_facts|success
- not instance_facts|changed
- cloudstack_instance.id == instance.id
- cloudstack_instance.domain == instance.domain
- cloudstack_instance.account == instance.account
- cloudstack_instance.zone == instance.zone
- cloudstack_instance.name == instance.name
- cloudstack_instance.service_offering == instance.service_offering
- name: test instance facts
cs_instance_facts:
name: "{{ cs_resource_prefix }}-vm"