ansible/test/integration/targets/win_disk_facts/tasks/tests.yml
Wojciech Sciesinski b8a7e35b22 Correct integration tests for the win_disk_facts module (#51044)
* Correct integration tests for the win_disk_facts module

* Exclude W2K8, W2K8-R2 from tests run under CI
2019-02-06 07:42:11 +10:00

17 lines
808 B
YAML

- name: get disk facts on the target
win_disk_facts:
register: disks_found
- name: assert disk facts
assert:
that:
- disks_found.changed == false
- disks_found.ansible_facts.ansible_disks[0].number is defined
- disks_found.ansible_facts.ansible_disks[0].guid is defined
- disks_found.ansible_facts.ansible_disks[0].location is defined
- disks_found.ansible_facts.ansible_disks[0].path is defined
- disks_found.ansible_facts.ansible_disks[0].read_only is defined
- disks_found.ansible_facts.ansible_disks[0].clustered is defined
- disks_found.ansible_facts.ansible_disks[0].bootable is defined
- disks_found.ansible_facts.ansible_disks[0].physical_disk.size is defined
- disks_found.ansible_facts.ansible_disks[0].physical_disk.operational_status is defined