diff --git a/tests/testsuite/roles/testing/files/requirements.txt b/tests/testsuite/roles/testing/files/requirements.txt deleted file mode 100644 index 190100f..0000000 --- a/tests/testsuite/roles/testing/files/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -requests==2.32.3 -docker==7.1.0 -retry==0.9.2 diff --git a/tests/testsuite/roles/testing/tasks/functional.yml b/tests/testsuite/roles/testing/tasks/functional.yml index 08e582f..33c2a29 100644 --- a/tests/testsuite/roles/testing/tasks/functional.yml +++ b/tests/testsuite/roles/testing/tasks/functional.yml @@ -1,4 +1,30 @@ --- +- name: Execute Docker commands on multiple containers + block: + - ansible.builtin.loop: + start: 0 + end: 4 + step: 1 + register: node_indices + - community.docker.docker_container_exec: + container: "{{ node_prefix }}-{{ item.index }}" + command: "/bin/bash -c 'docker ps -a'" + timeout: 15 + register: docker_output + loop: "{{ node_indices.results }}" + - debug: + msg: "=== {{ item.item }} ===" + verbosity: 2 + loop: "{{ docker_output.results }}" + - debug: + msg: "STDOUT: {{ item.stdout_lines }}" + verbosity: 2 + loop: "{{ docker_output.results }}" + - debug: + msg: "STDERR: {{ item.stderr_lines }}" + verbosity: 2 + loop: "{{ docker_output.results }}" + - name: "install required pip packages on {{ node_prefix }}-4" community.docker.docker_container_exec: container: "{{ node_prefix }}-4"