Fix integration test mount_facts

Some VMs might only have a single mount point, so they only have a single UUID.
Lee Garrett 2 days ago
parent b34d96647f
commit e0b0c684f1

@ -175,9 +175,9 @@
- name: Test any devices have a UUID (Linux) - name: Test any devices have a UUID (Linux)
assert: assert:
that: that:
- dynamic.ansible_facts.mount_points.values() | list | map(attribute='uuid') | unique | length > 1 - dynamic.ansible_facts.mount_points.values() | list | map(attribute='uuid') | unique | length > 0
- dynamic_mount.ansible_facts.mount_points.values() | list | map(attribute='uuid') | unique | length > 1 - dynamic_mount.ansible_facts.mount_points.values() | list | map(attribute='uuid') | unique | length > 0
- static.ansible_facts.mount_points.values() | list | map(attribute='uuid') | unique | length > 1 - static.ansible_facts.mount_points.values() | list | map(attribute='uuid') | unique | length > 0
when: ansible_os_family not in ("Darwin", "FreeBSD") when: ansible_os_family not in ("Darwin", "FreeBSD")
- name: Test duplicate sources - name: Test duplicate sources

Loading…
Cancel
Save