summaryrefslogtreecommitdiff
path: root/test/compose/port_map_diff_port
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-12-11 09:17:45 -0600
committerbaude <bbaude@redhat.com>2020-12-11 10:07:13 -0600
commitcb91bf96e02de8a6a7e50f83b4b69b9c47b84cc5 (patch)
tree46e3a7613d8893511bd8112653ea36258936d73c /test/compose/port_map_diff_port
parentf3e69d7300e3b4d6c5bb676c1dae27b10c3a4d56 (diff)
downloadpodman-cb91bf96e02de8a6a7e50f83b4b69b9c47b84cc5.tar.gz
podman-cb91bf96e02de8a6a7e50f83b4b69b9c47b84cc5.tar.bz2
podman-cb91bf96e02de8a6a7e50f83b4b69b9c47b84cc5.zip
add compose test descriptions
adding compose test descriptions and validations. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/compose/port_map_diff_port')
-rw-r--r--test/compose/port_map_diff_port/README.md9
-rw-r--r--test/compose/port_map_diff_port/frontend/Dockerfile2
-rw-r--r--test/compose/port_map_diff_port/tests.sh3
3 files changed, 13 insertions, 1 deletions
diff --git a/test/compose/port_map_diff_port/README.md b/test/compose/port_map_diff_port/README.md
new file mode 100644
index 000000000..13ece72ad
--- /dev/null
+++ b/test/compose/port_map_diff_port/README.md
@@ -0,0 +1,9 @@
+port map on different port
+===============
+
+This test creates a container that runs flask on different ports for the container
+and the host
+
+Validation
+------------
+* curl http://localhost:5001 and verify message
diff --git a/test/compose/port_map_diff_port/frontend/Dockerfile b/test/compose/port_map_diff_port/frontend/Dockerfile
index a393a0dcb..8d5c45401 100644
--- a/test/compose/port_map_diff_port/frontend/Dockerfile
+++ b/test/compose/port_map_diff_port/frontend/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/port_map_diff_port/tests.sh b/test/compose/port_map_diff_port/tests.sh
new file mode 100644
index 000000000..5a468aadc
--- /dev/null
+++ b/test/compose/port_map_diff_port/tests.sh
@@ -0,0 +1,3 @@
+# -*- bash -*-
+
+test_port 5001 = "Podman rulez!"