-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #398: Use a different DB for E2E testing
052e855 fix: [#392] use a different DB for E2E testing (Jose Celano) Pull request description: To avoid accidentally overwriting the default database. ACKs for top commit: josecelano: ACK 052e855 Tree-SHA512: a8467a3a6a6a4f5d5874a6a10bb29384ab860cdb73c9f22c75f2e8db32b1c6855b346cba54c37dbd3f4c15898e15a463ed2e058e957f5c8acea33208b5586c10
- Loading branch information
Showing
19 changed files
with
198 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/bin/bash | ||
|
||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.container.mysql.toml) \ | ||
TORRUST_TRACKER_CONFIG=$(cat ./share/default/config/tracker.container.mysql.toml) \ | ||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.e2e.container.mysql.toml) \ | ||
TORRUST_TRACKER_CONFIG=$(cat ./share/default/config/tracker.e2e.container.sqlite.toml) \ | ||
docker compose down | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
#!/bin/bash | ||
|
||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.container.mysql.toml) \ | ||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.e2e.container.mysql.toml) \ | ||
docker compose build | ||
|
||
USER_ID=${USER_ID:-1000} \ | ||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.container.mysql.toml) \ | ||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.e2e.container.mysql.toml) \ | ||
TORRUST_INDEX_DATABASE="torrust_index_e2e_testing" \ | ||
TORRUST_INDEX_DATABASE_DRIVER="mysql" \ | ||
TORRUST_INDEX_TRACKER_API_TOKEN="MyAccessToken" \ | ||
TORRUST_INDEX_MYSQL_DATABASE="torrust_index_e2e_testing" \ | ||
TORRUST_TRACKER_CONFIG=$(cat ./share/default/config/tracker.container.sqlite3.toml) \ | ||
TORRUST_TRACKER_CONFIG=$(cat ./share/default/config/tracker.e2e.container.sqlite3.toml) \ | ||
TORRUST_TRACKER_DATABASE="e2e_testing_sqlite3" \ | ||
TORRUST_TRACKER_DATABASE_DRIVER="sqlite3" \ | ||
TORRUST_TRACKER_API_ADMIN_TOKEN="MyAccessToken" \ | ||
docker compose up -d | ||
|
||
docker compose up --detach --pull always --remove-orphans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
|
||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.container.sqlite3.toml) \ | ||
TORRUST_TRACKER_CONFIG=$(cat ./share/default/config/tracker.container.sqlite3.toml) \ | ||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.e2e.container.sqlite3.toml) \ | ||
TORRUST_TRACKER_CONFIG=$(cat ./share/default/config/tracker.e2e.container.sqlite3.toml) \ | ||
docker compose down |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
#!/bin/bash | ||
|
||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.container.sqlite3.toml) \ | ||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.e2e.container.sqlite3.toml) \ | ||
docker compose build | ||
|
||
USER_ID=${USER_ID:-1000} \ | ||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.container.sqlite3.toml) \ | ||
TORRUST_INDEX_CONFIG=$(cat ./share/default/config/index.e2e.container.sqlite3.toml) \ | ||
TORRUST_INDEX_DATABASE="e2e_testing_sqlite3" \ | ||
TORRUST_INDEX_DATABASE_DRIVER="sqlite3" \ | ||
TORRUST_INDEX_TRACKER_API_TOKEN="MyAccessToken" \ | ||
TORRUST_TRACKER_CONFIG=$(cat ./share/default/config/tracker.container.sqlite3.toml) \ | ||
TORRUST_TRACKER_CONFIG=$(cat ./share/default/config/tracker.e2e.container.sqlite3.toml) \ | ||
TORRUST_TRACKER_DATABASE="e2e_testing_sqlite3" \ | ||
TORRUST_TRACKER_DATABASE_DRIVER="sqlite3" \ | ||
TORRUST_TRACKER_API_ADMIN_TOKEN="MyAccessToken" \ | ||
docker compose up -d | ||
|
||
docker compose up --detach --pull always --remove-orphans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
# Please override the tracker token setting the | ||
# `TORRUST_INDEX_TRACKER_API_TOKEN` | ||
# environmental variable! | ||
|
||
[tracker] | ||
url = "udp://tracker:6969" | ||
mode = "Public" | ||
api_url = "http://tracker:1212" | ||
token = "MyAccessToken" | ||
token_valid_seconds = 7257600 | ||
|
||
[net] | ||
port = 3001 | ||
|
||
[auth] | ||
email_on_signup = "Optional" | ||
min_password_length = 6 | ||
max_password_length = 64 | ||
secret_key = "MaxVerstappenWC2021" | ||
|
||
[database] | ||
connect_url = "mysql://root:root_secret_password@mysql:3306/torrust_index_e2e_testing" | ||
|
||
[mail] | ||
email_verification_enabled = false | ||
from = "[email protected]" | ||
reply_to = "[email protected]" | ||
username = "" | ||
password = "" | ||
server = "mailcatcher" | ||
port = 1025 | ||
|
||
[image_cache] | ||
max_request_timeout_ms = 1000 | ||
capacity = 128000000 | ||
entry_size_limit = 4000000 | ||
user_quota_period_seconds = 3600 | ||
user_quota_bytes = 64000000 | ||
|
||
[api] | ||
default_torrent_page_size = 10 | ||
max_torrent_page_size = 30 | ||
|
||
[tracker_statistics_importer] | ||
torrent_info_update_interval = 3600 | ||
port = 3002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
# Please override the tracker token setting the | ||
# `TORRUST_INDEX_TRACKER_API_TOKEN` | ||
# environmental variable! | ||
|
||
[tracker] | ||
url = "udp://tracker:6969" | ||
mode = "Public" | ||
api_url = "http://tracker:1212" | ||
token = "MyAccessToken" | ||
token_valid_seconds = 7257600 | ||
|
||
[net] | ||
port = 3001 | ||
|
||
[auth] | ||
email_on_signup = "Optional" | ||
min_password_length = 6 | ||
max_password_length = 64 | ||
secret_key = "MaxVerstappenWC2021" | ||
|
||
[database] | ||
connect_url = "sqlite:///var/lib/torrust/index/database/e2e_testing_sqlite3.db?mode=rwc" | ||
|
||
[mail] | ||
email_verification_enabled = false | ||
from = "[email protected]" | ||
reply_to = "[email protected]" | ||
username = "" | ||
password = "" | ||
server = "mailcatcher" | ||
port = 1025 | ||
|
||
[image_cache] | ||
max_request_timeout_ms = 1000 | ||
capacity = 128000000 | ||
entry_size_limit = 4000000 | ||
user_quota_period_seconds = 3600 | ||
user_quota_bytes = 64000000 | ||
|
||
[api] | ||
default_torrent_page_size = 10 | ||
max_torrent_page_size = 30 | ||
|
||
[tracker_statistics_importer] | ||
torrent_info_update_interval = 3600 | ||
port = 3002 |
Oops, something went wrong.