-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3857ac
commit 9298d64
Showing
5 changed files
with
35 additions
and
136 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
original_dir=$(pwd) | ||
function return_to_original_dir { | ||
cd "$original_dir" | ||
} | ||
trap return_to_original_dir EXIT | ||
cd "$(git rev-parse --show-toplevel)" | ||
|
||
docker compose --env-file .env.test -f docker-compose-test.yml up -d | ||
sleep 2 | ||
|
||
psql postgresql://helios:123456789@localhost:5555/heliosdb -f migrations/00000000000000_diesel_initial_setup/up.sql | ||
psql postgresql://helios:123456789@localhost:5555/heliosdb -f migrations/2024-08-02-114025_initial/up.sql | ||
psql postgresql://helios:123456789@localhost:5555/heliosdb -f src/tests/e2e/sql/seed.sql | ||
|
||
cargo test e2e | ||
|
||
docker compose -f docker-compose-test.yml down | ||
|
||
cd "$original_dir" |
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,7 @@ | ||
DELETE FROM "session"; | ||
DELETE FROM "device"; | ||
DELETE FROM "classic_auth"; | ||
DELETE FROM "oauth"; | ||
DELETE FROM "config"; | ||
DELETE FROM "server"; | ||
DELETE FROM "user"; | ||
DELETE FROM "user"; |
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 @@ | ||
|