@@ -42,13 +42,13 @@ cargo install imdl || exit 1
42
42
# Install app (no docker) that will run the test suite against the E2E testing
43
43
# environment (in docker).
44
44
cp .env.local .env || exit 1
45
- ./bin/ install.sh || exit 1
45
+ ./contrib/dev-tools/init/ install-local .sh || exit 1
46
46
47
47
# TEST USING SQLITE
48
48
echo " Running E2E tests using SQLite ..."
49
49
50
50
# Start E2E testing environment
51
- ./docker/bin /e2e/sqlite/e2e-env-up.sh || exit 1
51
+ ./contrib/dev-tools/container /e2e/sqlite/e2e-env-up.sh || exit 1
52
52
53
53
wait_for_container_to_be_healthy torrust-mysql-1 10 3
54
54
# todo: implement healthchecks for tracker and index and wait until they are healthy
@@ -60,16 +60,16 @@ sleep 20s
60
60
docker ps
61
61
62
62
# Run E2E tests with shared app instance
63
- TORRUST_IDX_BACK_E2E_SHARED=true TORRUST_IDX_BACK_E2E_CONFIG_PATH=" ./config-idx-back.sqlite.local .toml" cargo test || exit 1
63
+ TORRUST_IDX_BACK_E2E_SHARED=true TORRUST_IDX_BACK_E2E_CONFIG_PATH=" ./share/default/ config/index.container.sqlite3 .toml" cargo test || exit 1
64
64
65
65
# Stop E2E testing environment
66
- docker compose down
66
+ ./contrib/dev-tools/container/e2e/sqlite/e2e-env-down.sh || exit 1
67
67
68
68
# TEST USING MYSQL
69
69
echo " Running E2E tests using MySQL ..."
70
70
71
71
# Start E2E testing environment
72
- ./docker/bin /e2e/mysql/e2e-env-up.sh || exit 1
72
+ ./contrib/dev-tools/container /e2e/mysql/e2e-env-up.sh || exit 1
73
73
74
74
wait_for_container_to_be_healthy torrust-mysql-1 10 3
75
75
# todo: implement healthchecks for tracker and index and wait until they are healthy
@@ -91,7 +91,8 @@ echo "Creating MySQL database $MYSQL_DATABASE for for E2E testing ..."
91
91
mysql -h $MYSQL_HOST -u $MYSQL_USER -p$MYSQL_PASSWORD -e " CREATE DATABASE IF NOT EXISTS $MYSQL_DATABASE ;"
92
92
93
93
# Run E2E tests with shared app instance
94
- TORRUST_IDX_BACK_E2E_SHARED=true TORRUST_IDX_BACK_E2E_CONFIG_PATH=" ./config-idx-back.mysql.local .toml" cargo test || exit 1
94
+ TORRUST_IDX_BACK_E2E_SHARED=true TORRUST_IDX_BACK_E2E_CONFIG_PATH=" ./share/default/ config/index.container.mysql .toml" cargo test || exit 1
95
95
96
96
# Stop E2E testing environment
97
- docker compose down
97
+ ./contrib/dev-tools/container/e2e/mysql/e2e-env-down.sh || exit 1
98
+
0 commit comments