mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-13 05:15:58 +02:00
pgx driver tests (#1379)
This commit is contained in:
parent
6491100ef1
commit
7baa5d623b
8 changed files with 113 additions and 12 deletions
|
@ -49,8 +49,6 @@ restore() {
|
|||
backup_file="${1?missing file to restore database from}"
|
||||
[ -f "$backup_file" ] || die "Backup file $backup_file doesn't exist"
|
||||
PGPASSWORD="${POSTGRES_PASSWORD}" pg_restore --username "${POSTGRES_USER}" --host "${POSTGRES_HOST}" --port "${POSTGRES_PORT}" --dbname crowdsec_test --clean < "$backup_file"
|
||||
# make sure data is ready when crowdsec needs it
|
||||
sleep 0.3
|
||||
}
|
||||
|
||||
config_yaml() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue