From 6a42d6861d6012f66eb457e0016fd16249f70813 Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Sat, 18 Apr 2020 22:41:06 +0300 Subject: [PATCH] add ports test --- tests/ports/docker-compose.yml | 18 ++++++++++++++++++ tests/ports/test1.txt | 1 + tests/ports/test2.txt | 1 + 3 files changed, 20 insertions(+) create mode 100644 tests/ports/docker-compose.yml create mode 100644 tests/ports/test1.txt create mode 100644 tests/ports/test2.txt diff --git a/tests/ports/docker-compose.yml b/tests/ports/docker-compose.yml new file mode 100644 index 0000000..4140e12 --- /dev/null +++ b/tests/ports/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3" +services: + web1: + image: busybox + command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"] + working_dir: /var/www/html + ports: + - 8001:8001 + volumes: + - ./test1.txt:/var/www/html/index.txt:ro + web2: + image: busybox + command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"] + working_dir: /var/www/html + ports: + - 8002:8002 + volumes: + - ./test2.txt:/var/www/html/index.txt:ro diff --git a/tests/ports/test1.txt b/tests/ports/test1.txt new file mode 100644 index 0000000..a5bce3f --- /dev/null +++ b/tests/ports/test1.txt @@ -0,0 +1 @@ +test1 diff --git a/tests/ports/test2.txt b/tests/ports/test2.txt new file mode 100644 index 0000000..180cf83 --- /dev/null +++ b/tests/ports/test2.txt @@ -0,0 +1 @@ +test2