mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
feat: Check re-create idempotency for unit tests
This commit is contained in:
parent
9aa94c643c
commit
bfe9b2a0ef
1 changed files with 11 additions and 0 deletions
|
|
@ -49,6 +49,17 @@
|
|||
that:
|
||||
- result is not changed
|
||||
|
||||
- name: test create ssh key idempotence with force
|
||||
hetzner.hcloud.ssh_key:
|
||||
name: "{{ hcloud_ssh_key_name }}"
|
||||
public_key: "{{ test_ssh_keypair.public_key }}"
|
||||
force: true
|
||||
register: result
|
||||
- name: verify create ssh key idempotence with force
|
||||
assert:
|
||||
that:
|
||||
- result is not changed
|
||||
|
||||
- name: test update ssh key with check mode
|
||||
hetzner.hcloud.ssh_key:
|
||||
id: "{{ ssh_key.hcloud_ssh_key.id }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue