Skip to content

Commit

Permalink
test(backup): Use --no-prompt for backup tests (#2618)
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslavsky committed Dec 2, 2023
1 parent bf66ddd commit 76ab9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _integration-test/ensure-backup-restore-works.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo "Creating backup..."
# to group and owner. Instead, try creating the empty file and then give everyone write access to the backup file
touch $(pwd)/sentry/backup.json
chmod 666 $(pwd)/sentry/backup.json
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh export global /sentry-admin/backup.json
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh export global /sentry-admin/backup.json --no-prompt
if [ ! -s "$(pwd)/sentry/backup.json" ]; then
echo "Backup file is empty"
exit 1
Expand All @@ -31,6 +31,6 @@ source install/set-up-and-migrate-database.sh
$dc up -d

echo "Importing backup..."
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh import global /sentry-admin/backup.json
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh import global /sentry-admin/backup.json --no-prompt

rm $(pwd)/sentry/backup.json

0 comments on commit 76ab9a5

Please sign in to comment.