[stable-2.8] Fix hcloud tests

(cherry picked from commit 6c1a255d98)

Co-authored-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
This commit is contained in:
Lukas Kämmerling 2019-05-14 18:54:48 +02:00 committed by Toshio Kuratomi
parent 2a862ee82e
commit 4f763037b0
4 changed files with 6 additions and 8 deletions

View file

@ -1,3 +1,2 @@
cloud/hcloud
shippable/hcloud/group1
disabled

View file

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

View file

@ -1,3 +1,2 @@
cloud/hcloud
shippable/hcloud/group1
disabled

View file

@ -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: