1
0
Fork 0
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:
shaerpour 2025-05-31 10:38:11 +03:30
parent 9aa94c643c
commit bfe9b2a0ef
No known key found for this signature in database
GPG key ID: D89285D72B39ED8F

View file

@ -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 }}"