mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
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:
parent
28b86b1148
commit
c11c882345
20 changed files with 98 additions and 213 deletions
|
@ -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] }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue