tests: vultr: fix tests due to vultr API changes (#55621)
This commit is contained in:
parent
1705ef5f26
commit
e0ea5bb512
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue