self-hosted/integration-test.sh
Ethan Smith d298f66a0e
Error monitoring of the self-hosted installer (#1679)
This is the MVP of error monitoring of the self-hosted installer. We have:
- Added a prompt for users to opt into error reporting
- Rewritten the traceback code to give a full stack trace
- Hooked up sending errors to our self-hosted instance

Fixes #740

Co-authored-by: Chad Whitacre <chadwhitacre@sentry.io>
Co-authored-by: hubertdeng123 <hubertdeng123@gmail.com>
2022-09-13 10:25:38 -07:00

28 lines
710 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
echo "Reset customizations"
rm -f sentry/enhance-image.sh
rm -f sentry/requirements.txt
echo no > .reporterrors
echo "Testing initial install"
./install.sh
./_integration-test/run.sh
./_integration-test/ensure-customizations-not-present.sh
echo "Make customizations"
cat <<EOT > sentry/enhance-image.sh
#!/bin/bash
touch /created-by-enhance-image
apt-get update
apt-get install -y gcc libsasl2-dev python-dev libldap2-dev libssl-dev
EOT
chmod +x sentry/enhance-image.sh
printf "python-ldap" > sentry/requirements.txt
echo "Testing in-place upgrade and customizations"
./install.sh --minimize-downtime
./_integration-test/run.sh
./_integration-test/ensure-customizations-work.sh