forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: [torrust#120] E2E tests for torrent routes
- Loading branch information
1 parent
ea36618
commit e3ed344
Showing
19 changed files
with
1,021 additions
and
55 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
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,26 @@ | ||
#!/bin/bash | ||
|
||
# Delete the SQLite databases and recreate them. | ||
|
||
./docker/bin/e2e-env-down.sh | ||
|
||
rm -f ./storage/database/torrust_index_backend_e2e_testing.db | ||
rm -f ./storage/database/torrust_tracker_e2e_testing.db | ||
|
||
# Generate storage directory if it does not exist | ||
mkdir -p "./storage/database" | ||
|
||
# Generate the sqlite database for the index backend if it does not exist | ||
if ! [ -f "./storage/database/torrust_index_backend_e2e_testing.db" ]; then | ||
# todo: it should get the path from config.toml and only do it when we use sqlite | ||
touch ./storage/database/torrust_index_backend_e2e_testing.db | ||
echo ";" | sqlite3 ./storage/database/torrust_index_backend_e2e_testing.db | ||
fi | ||
|
||
# Generate the sqlite database for the tracker if it does not exist | ||
if ! [ -f "./storage/database/torrust_tracker_e2e_testing.db" ]; then | ||
touch ./storage/database/torrust_tracker_e2e_testing.db | ||
echo ";" | sqlite3 ./storage/database/torrust_tracker_e2e_testing.db | ||
fi | ||
|
||
./docker/bin/e2e-env-up.sh |
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
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ pub mod about; | |
pub mod category; | ||
pub mod root; | ||
pub mod settings; | ||
pub mod torrent; | ||
pub mod user; |
Oops, something went wrong.