mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
* fix failing unit tests * fix unit test pipeline * add newline to unit-test file * preserve semantics from docker volume test * add error-handling tests * reorganize file structure of unit tests * add comment for using _file format in ensure relay credentials test * add error handling unit tests * use unit-test directory * stack trace should be from the unit test directory * Slightly better fail signal * Clearer start as well Co-authored-by: Chad Whitacre <chadwhitacre@sentry.io>
31 lines
668 B
Bash
Executable File
31 lines
668 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$(dirname $0)/_test_setup.sh"
|
|
|
|
get_volumes() {
|
|
# If grep returns no strings, we still want to return without error
|
|
docker volume ls --quiet | { grep '^sentry-.*' || true; } | sort
|
|
}
|
|
|
|
# Maybe they exist prior, maybe they don't. Script is idempotent.
|
|
|
|
expected_volumes="sentry-clickhouse
|
|
sentry-data
|
|
sentry-kafka
|
|
sentry-postgres
|
|
sentry-redis
|
|
sentry-symbolicator
|
|
sentry-zookeeper"
|
|
|
|
before=$(get_volumes)
|
|
|
|
test "$before" == "" || test "$before" == "$expected_volumes"
|
|
|
|
source create-docker-volumes.sh
|
|
source create-docker-volumes.sh
|
|
source create-docker-volumes.sh
|
|
|
|
after=$(get_volumes)
|
|
test "$after" == "$expected_volumes"
|
|
|
|
report_success
|