summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/vmware_guest_snapshot_facts
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2019-05-16 15:36:48 +0200
committerGonéri Le Bouder <goneri@lebouder.net>2019-05-23 23:40:19 +0200
commit6bb21c3db0bbaaa31aef09b6e5971e83a1f016df (patch)
treefdae4329d2d7ead8a0afdfb7059b93cf7bcecb7f /test/integration/targets/vmware_guest_snapshot_facts
parentAlways keep subset data for callbacks (#56881) (diff)
downloadansible-6bb21c3db0bbaaa31aef09b6e5971e83a1f016df.tar.xz
ansible-6bb21c3db0bbaaa31aef09b6e5971e83a1f016df.zip
vmware: test-refactoring
- In order to keep the integration with `ansible-test`, we prefer to avoid any interaction with the Ansible inventory file. - split up the prepare_vmware_tests/defaults/main.yml in two configuration files: one for vcsim and one for a real environment - remove all the access to hostvars - directly interact with the ESXi to mount/umount the datastore https://github.com/ansible/ansible/pull/56516 - record the virtual machine folder in the environment configuration - vmware_guest_move: Use https://github.com/ansible/ansible/pull/55237
Diffstat (limited to 'test/integration/targets/vmware_guest_snapshot_facts')
-rw-r--r--test/integration/targets/vmware_guest_snapshot_facts/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/targets/vmware_guest_snapshot_facts/tasks/main.yml b/test/integration/targets/vmware_guest_snapshot_facts/tasks/main.yml
index a876d18efe..f8908675cf 100644
--- a/test/integration/targets/vmware_guest_snapshot_facts/tasks/main.yml
+++ b/test/integration/targets/vmware_guest_snapshot_facts/tasks/main.yml
@@ -17,8 +17,8 @@
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: "{{ dc1 }}"
- folder: "{{ f0 }}"
- name: "{{ infra.vm_list[0] }}"
+ name: "{{ virtual_machines[0].name }}"
+ folder: "{{ virtual_machines[0].folder }}"
register: vm_snapshot_facts
- debug: var=vm_snapshot_facts