1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

Fix tests

Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
This commit is contained in:
Lukas Kämmerling 2021-02-23 11:53:21 +01:00
parent 25a069c2d4
commit a04b1b6174

View file

@ -74,7 +74,20 @@
assert:
that:
- result is failed
- 'result.msg == "one of the following is required: id, name"'
- 'result.msg == "value of type must be one of: ipv4, ipv6, got: ipv5"'
- name: test invalid location
hcloud_floating_ip:
name: "{{ hcloud_floating_ip_name }}"
type: ipv4
home_location: "abc"
register: result
ignore_errors: yes
- name: verify invalid location
assert:
that:
- result is failed
- result.msg == "location 'abc' not found"
- name: test create Floating IP with check mode
hcloud_floating_ip: