From cb91bf96e02de8a6a7e50f83b4b69b9c47b84cc5 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 11 Dec 2020 09:17:45 -0600 Subject: add compose test descriptions adding compose test descriptions and validations. Signed-off-by: baude --- test/compose/env_and_volume/README.md | 12 ++++++++++++ test/compose/env_and_volume/read/Dockerfile | 2 +- test/compose/env_and_volume/tests.sh | 4 ++++ test/compose/env_and_volume/write/Dockerfile | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 test/compose/env_and_volume/README.md create mode 100644 test/compose/env_and_volume/tests.sh (limited to 'test/compose/env_and_volume') diff --git a/test/compose/env_and_volume/README.md b/test/compose/env_and_volume/README.md new file mode 100644 index 000000000..e7d74976b --- /dev/null +++ b/test/compose/env_and_volume/README.md @@ -0,0 +1,12 @@ +environment variable and volume +=============== + +This test creates two containers both of which are running flask. The first container has +an environment variable called PODMAN_MSG. That container pipes the contents of PODMAN_MSG +to a file on a shared volume between the containers. The second container then reads the +file are returns the PODMAN_MSG value via flask (http). + +Validation +------------ +* curl http://localhost:5000 and verify message +* curl http://localhost:5001 and verify message diff --git a/test/compose/env_and_volume/read/Dockerfile b/test/compose/env_and_volume/read/Dockerfile index a393a0dcb..8d5c45401 100644 --- a/test/compose/env_and_volume/read/Dockerfile +++ b/test/compose/env_and_volume/read/Dockerfile @@ -1,4 +1,4 @@ -FROM podman_python +FROM quay.io/libpod/podman_python WORKDIR /app COPY . /app ENTRYPOINT ["python3"] diff --git a/test/compose/env_and_volume/tests.sh b/test/compose/env_and_volume/tests.sh new file mode 100644 index 000000000..a4c8bed30 --- /dev/null +++ b/test/compose/env_and_volume/tests.sh @@ -0,0 +1,4 @@ +# -*- bash -*- + +test_port 5000 = "done" +test_port 5001 = "podman_rulez" diff --git a/test/compose/env_and_volume/write/Dockerfile b/test/compose/env_and_volume/write/Dockerfile index a393a0dcb..8d5c45401 100644 --- a/test/compose/env_and_volume/write/Dockerfile +++ b/test/compose/env_and_volume/write/Dockerfile @@ -1,4 +1,4 @@ -FROM podman_python +FROM quay.io/libpod/podman_python WORKDIR /app COPY . /app ENTRYPOINT ["python3"] -- cgit v1.2.3-54-g00ecf