From e0ea5bb512a3b1c9ebf3c9affa597e02562df3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Tue, 23 Apr 2019 21:23:02 +0200 Subject: [PATCH] tests: vultr: fix tests due to vultr API changes (#55621) --- test/integration/targets/vultr_plan_facts/tasks/main.yml | 4 ++-- test/integration/targets/vultr_server_facts/tasks/main.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/targets/vultr_plan_facts/tasks/main.yml b/test/integration/targets/vultr_plan_facts/tasks/main.yml index 8efe5b738a..519f3f883d 100644 --- a/test/integration/targets/vultr_plan_facts/tasks/main.yml +++ b/test/integration/targets/vultr_plan_facts/tasks/main.yml @@ -8,7 +8,7 @@ - name: verify test gather vultr plan facts in check mode assert: that: - - ansible_facts.vultr_plan_facts|selectattr('name','equalto','16384 MB RAM,110 GB SSD,20.00 TB BW') | list | count == 1 + - ansible_facts.vultr_plan_facts|selectattr('name','equalto','16384 MB RAM,2x110 GB SSD,20.00 TB BW') | list | count == 1 - name: test gather vultr plan fact vultr_plan_facts: @@ -16,4 +16,4 @@ - name: verify test gather vultr plan facts assert: that: - - ansible_facts.vultr_plan_facts|selectattr('name','equalto','16384 MB RAM,110 GB SSD,20.00 TB BW') | list | count == 1 + - ansible_facts.vultr_plan_facts|selectattr('name','equalto','16384 MB RAM,2x110 GB SSD,20.00 TB BW') | list | count == 1 diff --git a/test/integration/targets/vultr_server_facts/tasks/main.yml b/test/integration/targets/vultr_server_facts/tasks/main.yml index 95af65e7ee..9d75df5544 100644 --- a/test/integration/targets/vultr_server_facts/tasks/main.yml +++ b/test/integration/targets/vultr_server_facts/tasks/main.yml @@ -17,7 +17,7 @@ - name: verify test gather vultr server facts - empty resources assert: that: - - ansible_facts.vultr_server_facts | count == 0 + - ansible_facts.vultr_server_facts | selectattr('name','equalto',vultr_server_name) | list | count == 0 - name: setup firewall group vultr_firewall_group: @@ -38,7 +38,7 @@ - name: verify test gather vultr server facts in check mode assert: that: - - ansible_facts.vultr_server_facts|selectattr('name','equalto','{{ vultr_server_name }}') | list | count == 1 + - ansible_facts.vultr_server_facts|selectattr('name','equalto',vultr_server_name) | list | count == 1 - name: test gather vultr server facts vultr_server_facts: @@ -46,7 +46,7 @@ - name: verify test gather vultr server facts assert: that: - - ansible_facts.vultr_server_facts|selectattr('name','equalto','{{ vultr_server_name }}') | list | count == 1 + - ansible_facts.vultr_server_facts|selectattr('name','equalto',vultr_server_name) | list | count == 1 - name: Pause for 5 min before deleting the VM pause: