Commit 03943ef 1 parent 48ec4b1 commit 03943ef Copy full SHA for 03943ef
File tree 4 files changed +4
-8
lines changed
contrib/dev-tools/container/e2e
4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.container.mysql.toml) \
4
4
docker compose build
5
5
6
6
USER_ID=${USER_ID:- 1000} \
7
- # Index
8
7
TORRUST_INDEX_CONFIG=$( cat ./share/default/config/index.container.mysql.toml) \
9
8
TORRUST_INDEX_DATABASE_DRIVER=" mysql" \
10
9
TORRUST_INDEX_TRACKER_API_TOKEN=" MyAccessToken" \
11
10
TORRUST_IDX_BACK_MYSQL_DATABASE=" torrust_index_e2e_testing" \
12
- # Tracker
13
11
TORRUST_TRACKER_CONFIG=$( cat ./share/default/config/tracker.container.mysql.toml) \
14
12
TORRUST_TRACKER_DATABASE_DRIVER=" mysql" \
15
13
TORRUST_TRACKER_API_ADMIN_TOKEN=" MyAccessToken" \
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ 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 =" ./share/default/config/index.container.sqlite3.toml" cargo test || exit 1
63
+ TORRUST_INDEX_E2E_SHARED =true TORRUST_INDEX_E2E_PATH_CONFIG =" ./share/default/config/index.container.sqlite3.toml" cargo test || exit 1
64
64
65
65
# Stop E2E testing environment
66
66
./contrib/dev-tools/container/e2e/sqlite/e2e-env-down.sh || exit 1
@@ -91,7 +91,7 @@ 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 =" ./share/default/config/index.container.mysql.toml" cargo test || exit 1
94
+ TORRUST_INDEX_E2E_SHARED =true TORRUST_INDEX_E2E_PATH_CONFIG =" ./share/default/config/index.container.mysql.toml" cargo test || exit 1
95
95
96
96
# Stop E2E testing environment
97
97
./contrib/dev-tools/container/e2e/mysql/e2e-env-down.sh || exit 1
Original file line number Diff line number Diff line change @@ -4,11 +4,9 @@ TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.container.sqlite3.toml)
4
4
docker compose build
5
5
6
6
USER_ID=${USER_ID:- 1000} \
7
- # Index
8
7
TORRUST_INDEX_CONFIG=$( cat ./share/default/config/index.container.sqlite3.toml) \
9
8
TORRUST_INDEX_DATABASE_DRIVER=" sqlite3" \
10
9
TORRUST_INDEX_TRACKER_API_TOKEN=" MyAccessToken" \
11
- # Tracker
12
10
TORRUST_TRACKER_CONFIG=$( cat ./share/default/config/tracker.container.sqlite3.toml) \
13
11
TORRUST_TRACKER_DATABASE_DRIVER=" sqlite3" \
14
12
TORRUST_TRACKER_API_ADMIN_TOKEN=" MyAccessToken" \
Original file line number Diff line number Diff line change 4
4
//! against an in-process server (isolated).
5
5
//!
6
6
//! If you want to run the tests against an out-of-process server, you need to
7
- //! set the environment variable `TORRUST_IDX_BACK_E2E_SHARED ` to `true`.
7
+ //! set the environment variable `TORRUST_INDEX_E2E_SHARED ` to `true`.
8
8
//!
9
9
//! > **NOTICE**: The server must be running before running the tests. The
10
10
//! server url is hardcoded to `http://localhost:3001` for now. We are planning
11
11
//! to make it configurable in the future via a environment variable.
12
12
//!
13
13
//! ```text
14
- //! TORRUST_IDX_BACK_E2E_SHARED =true cargo test
14
+ //! TORRUST_INDEX_E2E_SHARED =true cargo test
15
15
//! ```
16
16
//!
17
17
//! If you want to run the tests against an isolated server, you need to execute
You can’t perform that action at this time.
0 commit comments