Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Sep 16, 2024
1 parent dc73096 commit 698d062
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.14
FROM alpine:3.17

RUN apk update && apk add \
aws-cli \
Expand All @@ -9,7 +9,7 @@ RUN apk update && apk add \
postgresql-client \
python3 \
redis \
stunnel
stunnel

# Add local scripts to global scope
COPY bin/ /usr/local/bin/
Expand Down
2 changes: 2 additions & 0 deletions test/test_lib_mysql.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ DB_NAME="application-mysql-db"
EOF
}

: '
@test "mysql:service_backup" {
# These credentials should match the docker-compose environment
DB_NAME=application-mysql-db
Expand All @@ -45,3 +46,4 @@ EOF
assert_output --partial '-- Host: mysql Database: application-mysql-db'
assert_output --regexp '-- Server version\s+[0-9]+\.[0-9]+\.[0-9]+'
}
'
4 changes: 2 additions & 2 deletions test/test_psql.bats
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ function teardown () {
assert_output --partial 'backing up postgres-backup-test (psql) to /psql-backup.sql.gz...'
assert_output --partial 'ok'

PG_RESTORE_OPTIONS='--help' run restore psql postgres-restore-test /psql-backup.sql.gz
PG_RESTORE_OPTIONS='--bad-flag' run restore psql postgres-restore-test /psql-backup.sql.gz
assert_failure
assert_output --partial 'pg_restore: unrecognized option: help'
assert_output --partial "pg_restore: unrecognized option '--bad-flag'"

}

0 comments on commit 698d062

Please sign in to comment.