Fix hcloud tests

This commit is contained in:
Lukas Kämmerling 2019-05-14 18:54:48 +02:00 committed by Matt Clay
parent 27aca731b3
commit 6c1a255d98
4 changed files with 6 additions and 8 deletions

View file

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

View file

@ -307,7 +307,7 @@
- ci@ansible.hetzner.cloud - ci@ansible.hetzner.cloud
labels: labels:
key: value key: value
mylabel: 123 mylabel: "val123"
state: started state: started
register: main_server register: main_server
- name: verify create server with labels - name: verify create server with labels
@ -315,7 +315,7 @@
that: that:
- main_server is changed - main_server is changed
- main_server.hcloud_server.labels.key == "value" - 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 - name: test update server with labels
hcloud_server: hcloud_server:
@ -326,7 +326,7 @@
- ci@ansible.hetzner.cloud - ci@ansible.hetzner.cloud
labels: labels:
key: other key: other
mylabel: 123 mylabel: "val123"
state: started state: started
register: main_server register: main_server
- name: verify update server with labels - name: verify update server with labels
@ -334,7 +334,7 @@
that: that:
- main_server is changed - main_server is changed
- main_server.hcloud_server.labels.key == "other" - 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 - name: test update server with labels in other order
@ -345,7 +345,7 @@
ssh_keys: ssh_keys:
- ci@ansible.hetzner.cloud - ci@ansible.hetzner.cloud
labels: labels:
mylabel: 123 mylabel: "val123"
key: other key: other
state: started state: started
register: main_server register: main_server

View file

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

View file

@ -91,7 +91,7 @@
name: "changed-{{ hcloud_ssh_key_name }}" name: "changed-{{ hcloud_ssh_key_name }}"
labels: labels:
key: value key: value
test: 123 test: "val123"
register: result register: result
- name: test update ssh key with other labels - name: test update ssh key with other labels
assert: assert: