mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
delete idempotency
This commit is contained in:
parent
04723e1a52
commit
f0720c327f
1 changed files with 11 additions and 0 deletions
|
|
@ -106,3 +106,14 @@
|
|||
that:
|
||||
- result is changed
|
||||
- result.hcloud_storage_box_snapshot is none
|
||||
|
||||
- name: Test delete idempotency
|
||||
hetzner.hcloud.storage_box_snapshot:
|
||||
storage_box: "{{ test_storage_box.hcloud_storage_box.name }}"
|
||||
name: "{{ _storage_box_snapshot.name }}"
|
||||
state: absent
|
||||
register: result
|
||||
- name: Verify delete idempotency
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is not changed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue