Skip to content

Commit

Permalink
ci: Isolate end-to-end-test
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Aug 4, 2024
1 parent 0ef5739 commit 10ebb2d
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion tests/compose.yml → tests/end-to-end-test/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions tests/scripts/docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/scripts/docker-utils/exec-selenium.sh
Original file line number Diff line number Diff line change
@@ -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/$@"
2 changes: 1 addition & 1 deletion tests/scripts/docker-utils/test-connection.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 10ebb2d

Please sign in to comment.