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

This commit is contained in:
René Moser 2019-04-23 21:23:02 +02:00 committed by GitHub
parent 1705ef5f26
commit e0ea5bb512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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: