mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
parent
cbdaab3e42
commit
b8afdc52b1
@ -91,7 +91,7 @@
|
|||||||
|
|
||||||
- name: assert container is returned when filters are matched (single label)
|
- name: assert container is returned when filters are matched (single label)
|
||||||
assert:
|
assert:
|
||||||
that: "{{ output.containers | length }} == 1"
|
that: "output.containers | length == 1"
|
||||||
|
|
||||||
- name: Get info on Docker host and list containers matching filters (multiple labels)
|
- name: Get info on Docker host and list containers matching filters (multiple labels)
|
||||||
docker_host_info:
|
docker_host_info:
|
||||||
@ -104,7 +104,7 @@
|
|||||||
|
|
||||||
- name: assert container is returned when filters are matched (multiple labels)
|
- name: assert container is returned when filters are matched (multiple labels)
|
||||||
assert:
|
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
|
- name: Get info on Docker host and do not list containers which do not match filters
|
||||||
docker_host_info:
|
docker_host_info:
|
||||||
@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
- name: assert no container is returned when filters are not matched
|
- name: assert no container is returned when filters are not matched
|
||||||
assert:
|
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)
|
- name: Get info on Docker host and list containers matching filters (single label, not all containers)
|
||||||
docker_host_info:
|
docker_host_info:
|
||||||
@ -139,8 +139,8 @@
|
|||||||
- name: assert one resp. two container is returned
|
- name: assert one resp. two container is returned
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "{{ output.containers | length }} == 1"
|
- "output.containers | length == 1"
|
||||||
- "{{ output_all.containers | length }} == 2"
|
- "output_all.containers | length == 2"
|
||||||
|
|
||||||
- name: Get info on Docker host and list containers with verbose output
|
- name: Get info on Docker host and list containers with verbose output
|
||||||
docker_host_info:
|
docker_host_info:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user