Add an integration test for deleting image stores in check mode (#54015)
This commit is contained in:
parent
ea1639e633
commit
968bedd8c2
1 changed files with 15 additions and 0 deletions
|
@ -122,6 +122,21 @@
|
|||
- "ss.name == 'storage_pool_adv'"
|
||||
- "ss.zone == cs_common_zone_adv"
|
||||
|
||||
- name: delete the image store in check_mode
|
||||
cs_image_store:
|
||||
name: "storage_pool_adv"
|
||||
zone: "{{ cs_common_zone_adv }}"
|
||||
state: absent
|
||||
register: ss
|
||||
check_mode: yes
|
||||
- name: verify results for delete the image store in check_mode
|
||||
assert:
|
||||
that:
|
||||
- ss is successful
|
||||
- ss is changed
|
||||
- "ss.name == 'storage_pool_adv'"
|
||||
- "ss.zone == cs_common_zone_adv"
|
||||
|
||||
- name: delete the image store
|
||||
cs_image_store:
|
||||
name: "storage_pool_adv"
|
||||
|
|
Loading…
Reference in a new issue