bump version of 'vcenter-test-container' to '1.3.0' (govmomi v0.18.0) (#41151)
* leave vmware_guest_powerstate tests enabled, but revert changes from:66743f33
* leave VM poweroff tests enabled, but revert changes from:87d6bdaf
* bumped 'vcenter-test-container' version to '1.3.0' * updated test task names based on PR feedback
This commit is contained in:
parent
f61164406e
commit
ba848e018c
5 changed files with 16 additions and 12 deletions
|
@ -22,7 +22,7 @@
|
||||||
port: 443
|
port: 443
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: get a list of VMS from vcsim
|
- name: get a list of VMS from vcsim
|
||||||
uri:
|
uri:
|
||||||
url: http://{{ vcsim }}:5000/govc_find?filter=VM
|
url: http://{{ vcsim }}:5000/govc_find?filter=VM
|
||||||
register: vmlist
|
register: vmlist
|
||||||
|
@ -45,7 +45,8 @@
|
||||||
|
|
||||||
- debug: var=poweroff_d1_c1_f0
|
- debug: var=poweroff_d1_c1_f0
|
||||||
|
|
||||||
- name: make sure no changes were made
|
# vcsim (v0.18.0) VMs are spawned PoweredOn
|
||||||
|
- name: make sure changes were made
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "poweroff_d1_c1_f0.results|map(attribute='changed')|unique|list == [False]"
|
- "poweroff_d1_c1_f0.results|map(attribute='changed')|unique|list == [True]"
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
port: 443
|
port: 443
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: get a list of VMS from vcsim
|
- name: get a list of VMS from vcsim
|
||||||
uri:
|
uri:
|
||||||
url: http://{{ vcsim }}:5000/govc_find?filter=VM
|
url: http://{{ vcsim }}:5000/govc_find?filter=VM
|
||||||
register: vmlist
|
register: vmlist
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
- debug: var=vmlist
|
- debug: var=vmlist
|
||||||
|
|
||||||
# https://github.com/ansible/ansible/issues/25011
|
# https://github.com/ansible/ansible/issues/25011
|
||||||
# Sending "-folders 1" to vcsim nests the datacenter under
|
# Sending "-folders 1" to vcsim nests the datacenter under
|
||||||
# the folder so that the path prefix is no longer /vm
|
# the folder so that the path prefix is no longer /vm
|
||||||
#
|
#
|
||||||
# /F0/DC0/vm/F0/DC0_H0_VM0
|
# /F0/DC0/vm/F0/DC0_H0_VM0
|
||||||
|
@ -56,7 +56,8 @@
|
||||||
|
|
||||||
- debug: var=poweroff_d1_c1_f1
|
- debug: var=poweroff_d1_c1_f1
|
||||||
|
|
||||||
- name: make sure no changes were made
|
# vcsim (v0.18.0) VMs are spawned PoweredOn
|
||||||
|
- name: make sure changes were made
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "poweroff_d1_c1_f1.results|map(attribute='changed')|unique|list == [False]"
|
- "poweroff_d1_c1_f1.results|map(attribute='changed')|unique|list == [True]"
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
|
|
||||||
- debug: var=poweroff_d1_c1_f0
|
- debug: var=poweroff_d1_c1_f0
|
||||||
|
|
||||||
- name: make sure no changes were made
|
# vcsim (v0.18.0) VMs are spawned PoweredOn
|
||||||
|
- name: make sure changes were made
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "poweroff_d1_c1_f0.results|map(attribute='changed')|unique|list == [False]"
|
- "poweroff_d1_c1_f0.results|map(attribute='changed')|unique|list == [True]"
|
||||||
|
|
|
@ -56,7 +56,8 @@
|
||||||
|
|
||||||
- debug: var=poweroff_d1_c1_f1
|
- debug: var=poweroff_d1_c1_f1
|
||||||
|
|
||||||
- name: make sure no changes were made
|
# vcsim (v0.18.0) VMs are spawned PoweredOn
|
||||||
|
- name: make sure changes were made
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "poweroff_d1_c1_f1.results|map(attribute='changed')|unique|list == [False]"
|
- "poweroff_d1_c1_f1.results|map(attribute='changed')|unique|list == [True]"
|
||||||
|
|
|
@ -43,7 +43,7 @@ class VcenterProvider(CloudProvider):
|
||||||
if os.environ.get('ANSIBLE_VCSIM_CONTAINER'):
|
if os.environ.get('ANSIBLE_VCSIM_CONTAINER'):
|
||||||
self.image = os.environ.get('ANSIBLE_VCSIM_CONTAINER')
|
self.image = os.environ.get('ANSIBLE_VCSIM_CONTAINER')
|
||||||
else:
|
else:
|
||||||
self.image = 'quay.io/ansible/vcenter-test-container:1.2.0'
|
self.image = 'quay.io/ansible/vcenter-test-container:1.3.0'
|
||||||
self.container_name = ''
|
self.container_name = ''
|
||||||
|
|
||||||
def filter(self, targets, exclude):
|
def filter(self, targets, exclude):
|
||||||
|
|
Loading…
Reference in a new issue