Fix hcloud tests
This commit is contained in:
parent
27aca731b3
commit
6c1a255d98
4 changed files with 6 additions and 8 deletions
|
@ -1,3 +1,2 @@
|
|||
cloud/hcloud
|
||||
shippable/hcloud/group1
|
||||
disabled
|
||||
|
|
|
@ -307,7 +307,7 @@
|
|||
- ci@ansible.hetzner.cloud
|
||||
labels:
|
||||
key: value
|
||||
mylabel: 123
|
||||
mylabel: "val123"
|
||||
state: started
|
||||
register: main_server
|
||||
- name: verify create server with labels
|
||||
|
@ -315,7 +315,7 @@
|
|||
that:
|
||||
- main_server is changed
|
||||
- main_server.hcloud_server.labels.key == "value"
|
||||
- main_server.hcloud_server.labels.mylabel == 123
|
||||
- main_server.hcloud_server.labels.mylabel == "val123"
|
||||
|
||||
- name: test update server with labels
|
||||
hcloud_server:
|
||||
|
@ -326,7 +326,7 @@
|
|||
- ci@ansible.hetzner.cloud
|
||||
labels:
|
||||
key: other
|
||||
mylabel: 123
|
||||
mylabel: "val123"
|
||||
state: started
|
||||
register: main_server
|
||||
- name: verify update server with labels
|
||||
|
@ -334,7 +334,7 @@
|
|||
that:
|
||||
- main_server is changed
|
||||
- main_server.hcloud_server.labels.key == "other"
|
||||
- main_server.hcloud_server.labels.mylabel == 123
|
||||
- main_server.hcloud_server.labels.mylabel == "val123"
|
||||
|
||||
|
||||
- name: test update server with labels in other order
|
||||
|
@ -345,7 +345,7 @@
|
|||
ssh_keys:
|
||||
- ci@ansible.hetzner.cloud
|
||||
labels:
|
||||
mylabel: 123
|
||||
mylabel: "val123"
|
||||
key: other
|
||||
state: started
|
||||
register: main_server
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
cloud/hcloud
|
||||
shippable/hcloud/group1
|
||||
disabled
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
name: "changed-{{ hcloud_ssh_key_name }}"
|
||||
labels:
|
||||
key: value
|
||||
test: 123
|
||||
test: "val123"
|
||||
register: result
|
||||
- name: test update ssh key with other labels
|
||||
assert:
|
||||
|
|
Loading…
Reference in a new issue