From 6c1a255d987a22c3e328d672244677a7c60c254a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Tue, 14 May 2019 18:54:48 +0200 Subject: [PATCH] Fix hcloud tests --- test/integration/targets/hcloud_server/aliases | 1 - test/integration/targets/hcloud_server/tasks/main.yml | 10 +++++----- test/integration/targets/hcloud_ssh_key/aliases | 1 - test/integration/targets/hcloud_ssh_key/tasks/main.yml | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/test/integration/targets/hcloud_server/aliases b/test/integration/targets/hcloud_server/aliases index 4b3a9b36f86..18dc30b6c31 100644 --- a/test/integration/targets/hcloud_server/aliases +++ b/test/integration/targets/hcloud_server/aliases @@ -1,3 +1,2 @@ cloud/hcloud shippable/hcloud/group1 -disabled diff --git a/test/integration/targets/hcloud_server/tasks/main.yml b/test/integration/targets/hcloud_server/tasks/main.yml index e901ca59d0e..92a5b4c7ab3 100644 --- a/test/integration/targets/hcloud_server/tasks/main.yml +++ b/test/integration/targets/hcloud_server/tasks/main.yml @@ -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 diff --git a/test/integration/targets/hcloud_ssh_key/aliases b/test/integration/targets/hcloud_ssh_key/aliases index 4b3a9b36f86..18dc30b6c31 100644 --- a/test/integration/targets/hcloud_ssh_key/aliases +++ b/test/integration/targets/hcloud_ssh_key/aliases @@ -1,3 +1,2 @@ cloud/hcloud shippable/hcloud/group1 -disabled diff --git a/test/integration/targets/hcloud_ssh_key/tasks/main.yml b/test/integration/targets/hcloud_ssh_key/tasks/main.yml index f935674684d..baaadd4db46 100644 --- a/test/integration/targets/hcloud_ssh_key/tasks/main.yml +++ b/test/integration/targets/hcloud_ssh_key/tasks/main.yml @@ -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: