vmware_guest_disk_info/test: ensure the test VM is running
`vmware_guest_disk_info` expects the VM to be running. Since
964783fbd2
, `prepare_vmware_tests`
creates the test VM with the `powered-off` state. This to increase
the performance.
This commit ensures the test-suite actually run against a running VM,
as expected.
This commit is contained in:
parent
ef69f3a3b5
commit
d29aaffb16
2 changed files with 18 additions and 0 deletions
|
@ -9,6 +9,15 @@
|
||||||
setup_datastore: true
|
setup_datastore: true
|
||||||
setup_virtualmachines: true
|
setup_virtualmachines: true
|
||||||
|
|
||||||
|
- name: set state to poweron the first VM
|
||||||
|
vmware_guest_powerstate:
|
||||||
|
validate_certs: no
|
||||||
|
hostname: "{{ vcenter_hostname }}"
|
||||||
|
username: "{{ vcenter_username }}"
|
||||||
|
password: "{{ vcenter_password }}"
|
||||||
|
name: "{{ virtual_machines[0].name }}"
|
||||||
|
folder: '{{ f0 }}'
|
||||||
|
state: powered-on
|
||||||
|
|
||||||
- name: Gather facts about virtual machine disks
|
- name: Gather facts about virtual machine disks
|
||||||
vmware_guest_disk_facts: &get_facts
|
vmware_guest_disk_facts: &get_facts
|
||||||
|
|
|
@ -9,6 +9,15 @@
|
||||||
setup_datastore: true
|
setup_datastore: true
|
||||||
setup_virtualmachines: true
|
setup_virtualmachines: true
|
||||||
|
|
||||||
|
- name: set state to poweron the first VM
|
||||||
|
vmware_guest_powerstate:
|
||||||
|
validate_certs: no
|
||||||
|
hostname: "{{ vcenter_hostname }}"
|
||||||
|
username: "{{ vcenter_username }}"
|
||||||
|
password: "{{ vcenter_password }}"
|
||||||
|
name: "{{ virtual_machines[0].name }}"
|
||||||
|
folder: '{{ f0 }}'
|
||||||
|
state: powered-on
|
||||||
|
|
||||||
- name: Gather info about virtual machine disks
|
- name: Gather info about virtual machine disks
|
||||||
vmware_guest_disk_info: &get_info
|
vmware_guest_disk_info: &get_info
|
||||||
|
|
Loading…
Reference in a new issue