Skip to content

Commit d80c31f

Browse files
committed
tests/integration: Add tests for up and down command
Refs #387 Signed-off-by: Frank Stettner <[email protected]>
1 parent cefa68d commit d80c31f

File tree

5 files changed

+597
-0
lines changed

5 files changed

+597
-0
lines changed

tests/integration/up_down/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM docker.io/library/debian:bookworm-slim
2+
RUN apt-get update \
3+
&& apt-get install -y \
4+
dumb-init \
5+
&& apt-get autoremove
6+
RUN mkdir -p /mnt/test/

tests/integration/up_down/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "3"
2+
volumes:
3+
web1_vol:
4+
web2_vol:
5+
services:
6+
web1:
7+
image: podman-compose-up-down-test
8+
build: .
9+
hostname: web1
10+
command: ["dumb-init", "sleep", "infinity"]
11+
volumes:
12+
- web1_vol:/mnt/test/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: "3"
2+
volumes:
3+
web1_vol:
4+
web2_vol:
5+
services:
6+
web1:
7+
image: podman-compose-up-down-test
8+
build: .
9+
hostname: web1
10+
command: ["dumb-init", "sleep", "infinity"]
11+
volumes:
12+
- web1_vol:/mnt/test/
13+
web2:
14+
image: docker.io/library/debian:up-down-test
15+
hostname: web2
16+
command: ["sleep", "infinity"]
17+
volumes:
18+
- web2_vol:/mnt/test/
19+

0 commit comments

Comments
 (0)