From b8afdc52b1c70097453657def88d90f6a4fcab16 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 28 Nov 2023 22:52:43 +0100 Subject: [PATCH] Fix bad expressions in tests. (#711) ci_complete --- .../targets/docker_host_info/tasks/test_host_info.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/targets/docker_host_info/tasks/test_host_info.yml b/tests/integration/targets/docker_host_info/tasks/test_host_info.yml index 0d090db9..b4871d3e 100644 --- a/tests/integration/targets/docker_host_info/tasks/test_host_info.yml +++ b/tests/integration/targets/docker_host_info/tasks/test_host_info.yml @@ -91,7 +91,7 @@ - name: assert container is returned when filters are matched (single label) assert: - that: "{{ output.containers | length }} == 1" + that: "output.containers | length == 1" - name: Get info on Docker host and list containers matching filters (multiple labels) docker_host_info: @@ -104,7 +104,7 @@ - name: assert container is returned when filters are matched (multiple labels) assert: - that: "{{ output.containers | length }} == 1" + that: "output.containers | length == 1" - name: Get info on Docker host and do not list containers which do not match filters docker_host_info: @@ -118,7 +118,7 @@ - name: assert no container is returned when filters are not matched assert: - that: "{{ output.containers | length }} == 0" + that: "output.containers | length == 0" - name: Get info on Docker host and list containers matching filters (single label, not all containers) docker_host_info: @@ -139,8 +139,8 @@ - name: assert one resp. two container is returned assert: that: - - "{{ output.containers | length }} == 1" - - "{{ output_all.containers | length }} == 2" + - "output.containers | length == 1" + - "output_all.containers | length == 2" - name: Get info on Docker host and list containers with verbose output docker_host_info: