summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/vmware_guest_find/tasks
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2017-07-21 18:12:43 +0200
committerjctanner <tanner.jc@gmail.com>2017-07-21 18:12:43 +0200
commitede82e21307969da4acf82e05ef9f8a542f19795 (patch)
tree785e5099346fe5d13b841447a3902b2923ebd31d /test/integration/targets/vmware_guest_find/tasks
parentDon't need to convert cmd to bytes as it is already an array of bytes (diff)
downloadansible-ede82e21307969da4acf82e05ef9f8a542f19795.tar.xz
ansible-ede82e21307969da4acf82e05ef9f8a542f19795.zip
Implement vmware_argument_spec for required params (#25731)
Without the fix hostname, username and password params used to skip required check. Fixes #25696 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'test/integration/targets/vmware_guest_find/tasks')
-rw-r--r--test/integration/targets/vmware_guest_find/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/vmware_guest_find/tasks/main.yml b/test/integration/targets/vmware_guest_find/tasks/main.yml
index 43ddcd3bc3..14c9903806 100644
--- a/test/integration/targets/vmware_guest_find/tasks/main.yml
+++ b/test/integration/targets/vmware_guest_find/tasks/main.yml
@@ -8,14 +8,27 @@
vcsim: "{{ lookup('env', 'vcenter_host') }}"
- debug: var=vcsim
+- name: wait for flask server
+ wait_for:
+ host: "{{ vcsim }}"
+ port: 5000
+ state: started
+
- name: kill vcsim
uri:
url: "{{ 'http://' + vcsim + ':5000/killall' }}"
+
- name: start vcsim
uri:
url: "{{ 'http://' + vcsim + ':5000/spawn?cluster=2' }}"
register: vcsim_instance
+- name: wait for vcsim server
+ wait_for:
+ host: "{{ vcsim }}"
+ port: 443
+ state: started
+
- name: get a list of VMS from vcsim
uri:
url: "{{ 'http://' + vcsim + ':5000/govc_find?filter=VM' }}"