diff options
author | Lukas Kämmerling <4281581+LKaemmerling@users.noreply.github.com> | 2019-03-11 16:57:23 +0100 |
---|---|---|
committer | René Moser <mail@renemoser.net> | 2019-03-11 16:57:23 +0100 |
commit | 32c337ee395cdc0fca4d593412c316f2a6914922 (patch) | |
tree | 48e040adc90e1c2b9d737387517ab466b591117f /test | |
parent | Rewrite of na_ontap_snapshot to follow NetAppModule, add new option to rename... (diff) | |
download | ansible-32c337ee395cdc0fca4d593412c316f2a6914922.tar.xz ansible-32c337ee395cdc0fca4d593412c316f2a6914922.zip |
hcloud_server: streamline label handling (#53633)
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/targets/hcloud_server/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/targets/hcloud_server/tasks/main.yml b/test/integration/targets/hcloud_server/tasks/main.yml index 5a9722b3a5..1d5d6011ec 100644 --- a/test/integration/targets/hcloud_server/tasks/main.yml +++ b/test/integration/targets/hcloud_server/tasks/main.yml @@ -312,6 +312,24 @@ - main_server.hcloud_server.labels.key == "other" - main_server.hcloud_server.labels.mylabel == 123 + +- name: test update server with labels in other order + hcloud_server: + name: "{{ hcloud_server_name}}" + server_type: cx11 + image: "ubuntu-18.04" + ssh_keys: + - ci@ansible.hetzner.cloud + labels: + mylabel: 123 + key: other + state: started + register: main_server +- name: verify update server with labels in other order + assert: + that: + - main_server is not changed + - name: cleanup with labels hcloud_server: name: "{{ hcloud_server_name }}" |