From e0b0c684f1261ff5a089c2918f249011a3802973 Mon Sep 17 00:00:00 2001 From: Lee Garrett Date: Wed, 20 Nov 2024 20:51:29 +0100 Subject: [PATCH] Fix integration test mount_facts Some VMs might only have a single mount point, so they only have a single UUID. --- test/integration/targets/mount_facts/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/targets/mount_facts/tasks/main.yml b/test/integration/targets/mount_facts/tasks/main.yml index 56446865ab0..d595f737108 100644 --- a/test/integration/targets/mount_facts/tasks/main.yml +++ b/test/integration/targets/mount_facts/tasks/main.yml @@ -175,9 +175,9 @@ - name: Test any devices have a UUID (Linux) assert: that: - - dynamic.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 > 1 - - static.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 > 0 + - static.ansible_facts.mount_points.values() | list | map(attribute='uuid') | unique | length > 0 when: ansible_os_family not in ("Darwin", "FreeBSD") - name: Test duplicate sources