tests: vultr: fix tests due to vultr API changes (#55621)

pull/55673/head
René Moser 6 years ago committed by GitHub
parent 1705ef5f26
commit e0ea5bb512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,7 +8,7 @@
- name: verify test gather vultr plan facts in check mode - name: verify test gather vultr plan facts in check mode
assert: assert:
that: 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 - name: test gather vultr plan fact
vultr_plan_facts: vultr_plan_facts:
@ -16,4 +16,4 @@
- name: verify test gather vultr plan facts - name: verify test gather vultr plan facts
assert: assert:
that: 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

@ -17,7 +17,7 @@
- name: verify test gather vultr server facts - empty resources - name: verify test gather vultr server facts - empty resources
assert: assert:
that: 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 - name: setup firewall group
vultr_firewall_group: vultr_firewall_group:
@ -38,7 +38,7 @@
- name: verify test gather vultr server facts in check mode - name: verify test gather vultr server facts in check mode
assert: assert:
that: 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 - name: test gather vultr server facts
vultr_server_facts: vultr_server_facts:
@ -46,7 +46,7 @@
- name: verify test gather vultr server facts - name: verify test gather vultr server facts
assert: assert:
that: 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 - name: Pause for 5 min before deleting the VM
pause: pause:

Loading…
Cancel
Save