mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
VMware: Add integration test for vmware facts (#33404)
This fix adds integration tests for vmware_guest_facts. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
3a3a63ce46
commit
7209b7f060
1 changed files with 14 additions and 0 deletions
|
@ -77,6 +77,12 @@
|
|||
- "guest_facts_0001['instance']['hw_cores_per_socket'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_datastores'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_esxi_host'] == h1 | basename"
|
||||
- "guest_facts_0001['instance']['hw_files'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_guest_ha_state'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_is_template'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_folder'] is defined"
|
||||
- "guest_facts_0001['instance']['guest_question'] is defined"
|
||||
- "guest_facts_0001['instance']['guest_consolidation_needed'] is defined"
|
||||
|
||||
- set_fact: vm1_uuid="{{ guest_facts_0001['instance']['hw_product_uuid'] }}"
|
||||
|
||||
|
@ -101,6 +107,14 @@
|
|||
- "guest_facts_0002['instance']['hw_product_uuid'] is defined"
|
||||
- "guest_facts_0002['instance']['hw_product_uuid'] == vm1_uuid"
|
||||
- "guest_facts_0002['instance']['hw_cores_per_socket'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_datastores'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_esxi_host'] == h1 | basename"
|
||||
- "guest_facts_0001['instance']['hw_files'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_guest_ha_state'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_is_template'] is defined"
|
||||
- "guest_facts_0001['instance']['hw_folder'] is defined"
|
||||
- "guest_facts_0001['instance']['guest_question'] is defined"
|
||||
- "guest_facts_0001['instance']['guest_consolidation_needed'] is defined"
|
||||
|
||||
# Testcase 0003: Get details about virtual machines without snapshots using UUID
|
||||
- name: get empty list of snapshots from virtual machine using UUID
|
||||
|
|
Loading…
Reference in a new issue