Update vmware integration tests (#31273)

* Boilerplat fixed
* Standardized vcsim variables in all modules

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-11-06 21:58:15 +05:30 committed by ansibot
commit c11c882345
20 changed files with 98 additions and 213 deletions

View file

@ -1,6 +1,5 @@
# Test code for the vmware_guest_tools_wait module.
# Copyright (c) 2017 Philippe Dellaert <philippe@dellaert.org>
# Copyright: (c) 2017 Philippe Dellaert <philippe@dellaert.org>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
- name: make sure pyvmomi is installed
@ -23,11 +22,11 @@
- name: kill vcsim
uri:
url: "{{ 'http://' + vcsim + ':5000/killall' }}"
url: http://{{ vcsim }}:5000/killall
- name: start vcsim
uri:
url: "{{ 'http://' + vcsim + ':5000/spawn?datacenter=1&cluster=1&folder=0' }}"
url: http://{{ vcsim }}:5000/spawn?datacenter=1&cluster=1&folder=0
register: vcsim_instance
- name: Wait for vcsim server to come up online
@ -38,7 +37,7 @@
- name: get a list of virtual machines from vcsim
uri:
url: "{{ 'http://' + vcsim + ':5000/govc_find?filter=VM' }}"
url: http://{{ vcsim }}:5000/govc_find?filter=VM
register: vms
- set_fact: vm1="{{ vms['json'][0] }}"