mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
Add assign idempotency test
This commit is contained in:
parent
859811925f
commit
7fd295e02b
1 changed files with 12 additions and 0 deletions
|
|
@ -213,6 +213,18 @@
|
|||
- floatingIP is changed
|
||||
- floatingIP.hcloud_floating_ip.server == "{{ main_server.hcloud_server.name }}"
|
||||
|
||||
- name: test assign Floating IP idempotency
|
||||
hcloud_floating_ip:
|
||||
name: "{{ hcloud_floating_ip_name }}"
|
||||
description: "changed-description"
|
||||
type: ipv4
|
||||
server: "{{ main_server.hcloud_server.name }}"
|
||||
register: floatingIP
|
||||
- name: verify test unassign Floating IPidempotency
|
||||
assert:
|
||||
that:
|
||||
- floatingIP is not changed
|
||||
|
||||
- name: test unassign Floating IP
|
||||
hcloud_floating_ip:
|
||||
name: "{{ hcloud_floating_ip_name }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue