-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Ensure proper database permissions and migration setup
- Updated init_database.sh to grant necessary privileges to the PostgreSQL user. - Included ALTER USER and GRANT statements to allow the user to create databases and manage tables, sequences, and functions. - Added migration command in conftest.py to ensure Django migrations are applied before running tests. - Verified database connection and user permissions for successful test execution. - Changed database name to 'test_game_history_db' in the configuration for running tests.
- Loading branch information
Showing
3 changed files
with
40 additions
and
5 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,12 @@ | ||
DB_USER = "root" | ||
DB_PASS = "root" | ||
|
||
RABBITMQ_DEFAULT_USER="user" | ||
RABBITMQ_DEFAULT_PASS="pass" | ||
|
||
RABBITMQ_HOST="rabbitmq" | ||
RABBITMQ_USER="user" | ||
RABBITMQ_PASS="pass" | ||
RABBITMQ_PORT="5672" | ||
|
||
PGPASSWORD='root' |