diff --git a/README.md b/README.md index f2ae33b..fd5b0bc 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ docker compose up -d Then run the tests: ```sh -docker exec -t tests-selenium-tests-1 \ +docker exec -t end-to-end-test-selenium-tests-1 \ python "/app/tests/test_navigation.py" ``` diff --git a/tests/Dockerfile b/tests/end-to-end-test/Dockerfile similarity index 100% rename from tests/Dockerfile rename to tests/end-to-end-test/Dockerfile diff --git a/tests/compose.yml b/tests/end-to-end-test/compose.yml similarity index 99% rename from tests/compose.yml rename to tests/end-to-end-test/compose.yml index 221ea87..ee445fc 100644 --- a/tests/compose.yml +++ b/tests/end-to-end-test/compose.yml @@ -2,7 +2,6 @@ # To execute this docker-compose yml file use `docker-compose -f docker-compose-v3.yml up` # Add the `-d` flag at the end for detached execution # To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-v3.yml down` -version: "3" services: chrome-node: image: selenium/node-chrome:4.8.3-20230404 diff --git a/tests/requirements.txt b/tests/end-to-end-test/requirements.txt similarity index 100% rename from tests/requirements.txt rename to tests/end-to-end-test/requirements.txt diff --git a/tests/test_default.py b/tests/end-to-end-test/test_default.py similarity index 100% rename from tests/test_default.py rename to tests/end-to-end-test/test_default.py diff --git a/tests/test_interactive.py b/tests/end-to-end-test/test_interactive.py similarity index 100% rename from tests/test_interactive.py rename to tests/end-to-end-test/test_interactive.py diff --git a/tests/test_navigation.py b/tests/end-to-end-test/test_navigation.py similarity index 100% rename from tests/test_navigation.py rename to tests/end-to-end-test/test_navigation.py diff --git a/tests/testcases.yaml b/tests/end-to-end-test/testcases.yaml similarity index 100% rename from tests/testcases.yaml rename to tests/end-to-end-test/testcases.yaml diff --git a/tests/scripts/docker-compose.sh b/tests/scripts/docker-compose.sh index d2d7b10..67758ca 100755 --- a/tests/scripts/docker-compose.sh +++ b/tests/scripts/docker-compose.sh @@ -3,11 +3,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" if [[ "$1" == "up" ]]; then - docker compose -f $DIR/../compose.yml up --build "${@:2}" + docker compose -f $DIR/../end-to-end-test/compose.yml up --build "${@:2}" elif [[ "$1" == "pull" ]]; then - docker compose -f $DIR/../compose.yml pull + docker compose -f $DIR/../end-to-end-test/compose.yml pull elif [[ "$1" == "down" ]]; then - docker compose -f $DIR/../compose.yml down + docker compose -f $DIR/../end-to-end-test/compose.yml down elif [[ "$1" == "shutdown" ]]; then - docker compose -f $DIR/../compose.yml down -v --remove-orphans + docker compose -f $DIR/../end-to-end-test/compose.yml down -v --remove-orphans fi diff --git a/tests/scripts/docker-utils/exec-selenium.sh b/tests/scripts/docker-utils/exec-selenium.sh index 2c8f2f1..aaf69b6 100755 --- a/tests/scripts/docker-utils/exec-selenium.sh +++ b/tests/scripts/docker-utils/exec-selenium.sh @@ -1,4 +1,4 @@ #!/bin/bash -e -docker exec -t tests-selenium-tests-1 \ +docker exec -t end-to-end-test-selenium-tests-1 \ python "/app/tests/$@" diff --git a/tests/scripts/docker-utils/test-connection.sh b/tests/scripts/docker-utils/test-connection.sh index a8421fb..67bce4b 100755 --- a/tests/scripts/docker-utils/test-connection.sh +++ b/tests/scripts/docker-utils/test-connection.sh @@ -1,3 +1,3 @@ #!/bin/bash -e -docker run --rm --network tests_default curlimages/curl:latest -s --retry 20 --retry-delay 1 --retry-connrefused $1 +docker run --rm --network end-to-end-test_default curlimages/curl:latest -s --retry 20 --retry-delay 1 --retry-connrefused $1