1
0
Fork 0
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:
Abhijeet Kasurde 2017-11-30 16:19:53 +05:30 committed by GitHub
parent 3a3a63ce46
commit 7209b7f060
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,12 @@
- "guest_facts_0001['instance']['hw_cores_per_socket'] is defined" - "guest_facts_0001['instance']['hw_cores_per_socket'] is defined"
- "guest_facts_0001['instance']['hw_datastores'] is defined" - "guest_facts_0001['instance']['hw_datastores'] is defined"
- "guest_facts_0001['instance']['hw_esxi_host'] == h1 | basename" - "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'] }}" - 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'] is defined"
- "guest_facts_0002['instance']['hw_product_uuid'] == vm1_uuid" - "guest_facts_0002['instance']['hw_product_uuid'] == vm1_uuid"
- "guest_facts_0002['instance']['hw_cores_per_socket'] is defined" - "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 # Testcase 0003: Get details about virtual machines without snapshots using UUID
- name: get empty list of snapshots from virtual machine using UUID - name: get empty list of snapshots from virtual machine using UUID