-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #3558
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This is a test file for a part of `_lib.sh`, where we read `.env.custom` file if there is one. | ||
# We only want to give very minimal value to the `.env.custom` file, and expect that it would | ||
# be merged with the original `.env` file, with the `.env.custom` file taking precedence. | ||
cat <<EOF >".env.custom" | ||
SENTRY_EVENT_RETENTION_DAYS=10 | ||
EOF | ||
|
||
# The `_test_setup.sh` script sources `install/_lib.sh`, so.. finger crossed this should works. | ||
source _unit-test/_test_setup.sh | ||
|
||
rm -f .env.custom | ||
|
||
echo "Expecting SENTRY_EVENT_RETENTION_DAYS to be 10, got ${SENTRY_EVENT_RETENTION_DAYS}" | ||
test "$SENTRY_EVENT_RETENTION_DAYS" == "10" | ||
echo "Pass" | ||
echo "Expecting SENTRY_BIND to be 9000, got ${SENTRY_BIND}" | ||
test "$SENTRY_BIND" == "9000" | ||
echo "Pass" | ||
echo "Expecting COMPOSE_PROJECT_NAME to be sentry-self-hosted, got ${COMPOSE_PROJECT_NAME}" | ||
test "$COMPOSE_PROJECT_NAME" == "sentry-self-hosted" | ||
echo "Pass" | ||
|
||
report_success |
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