Skip to content

Commit 5c67a77

Browse files
committed
Add http service tests
Signed-off-by: Sagi Shnaidman <[email protected]>
1 parent e998614 commit 5c67a77

File tree

3 files changed

+73
-5
lines changed

3 files changed

+73
-5
lines changed

.github/workflows/podman_container_api.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ jobs:
4141
matrix:
4242
ansible-version:
4343
- ansible<2.10
44-
- git+https://github.com/ansible/ansible.git@stable-2.15
44+
# - git+https://github.com/ansible/ansible.git@stable-2.17
4545
- git+https://github.com/ansible/ansible.git@devel
4646
os:
4747
- ubuntu-22.04
4848
python-version:
49-
- "3.10"
49+
- "3.11"
5050
podman-version:
5151
- unstable
5252
include:
5353
- os: ubuntu-22.04
54-
ansible-version: git+https://github.com/ansible/ansible.git@stable-2.15
54+
ansible-version: git+https://github.com/ansible/ansible.git@stable-2.17
5555
python-version: "3.10"
5656
podman-version: stable
5757

@@ -108,6 +108,7 @@ jobs:
108108
python3 -m pip install --user -r requirements.txt
109109
podman system service --time=0 unix:///tmp/podman.sock &
110110
sudo podman system service --time=0 unix:///tmp/root-podman.sock &
111+
podman system service --time=0 tcp:localhost:25771 &
111112
112113
echo $ANSIBLE_CONFIG
113114
command -v ansible-playbook

tests/integration/targets/podman_container_api/tasks/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,30 @@
3434
- name: Test idempotency of containers in pods
3535
include_tasks: ../../podman_container_idempotency/tasks/idem_pods.yml
3636

37+
- name: Test idempotency of bool options in containers and idempotency
38+
include_tasks: ../../podman_container_idempotency/tasks/idem_bool_list_dict.yml
39+
40+
- name: Test idempotency of other settings
41+
include_tasks: ../../podman_container_idempotency/tasks/idem_all.yml
42+
43+
- name: Set podman socket var for rootless
44+
set_fact:
45+
podman_socket: http://localhost:25771
46+
47+
- name: Run tasks from podman container
48+
include_tasks: ../../podman_container/tasks/main.yml
49+
50+
- name: Run tasks from podman container info
51+
include_tasks: ../../podman_container_info/tasks/main.yml
52+
53+
- name: Prepare a container
54+
include_tasks: ../../podman_container_idempotency/tasks/build_test_container.yml
55+
56+
- name: Test idempotency of other settings
57+
include_tasks: ../../podman_container_idempotency/tasks/idem_volumes.yml
58+
59+
- name: Test idempotency of ports
60+
include_tasks: ../../podman_container_idempotency/tasks/idem_ports.yml
61+
3762
- name: Test idempotency of other settings
3863
include_tasks: ../../podman_container_idempotency/tasks/idem_all.yml

0 commit comments

Comments
 (0)