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:
parent
25a069c2d4
commit
a04b1b6174
1 changed files with 14 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue