Skip to content

Commit

Permalink
make migrations tests ignore structured logging
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole authored and ptzianos committed Aug 8, 2024
1 parent 3411b88 commit 5dfd715
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/migrations/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ services:
- |
apt-get update && apt-get install -y jq &&
echo "------------------------------ Starting tests ------------------------------" &&
/bin/draconctl migrations inspect --url postgres://postgres:password@postgres:5432?sslmode=disable --json | tee | jq -eM '. | select(.Version == 0)' &&
/bin/draconctl migrations inspect --url postgres://postgres:password@postgres:5432?sslmode=disable --json |grep -v 'level=' | tee | jq -eM '. | select(.Version == 0)' &&
echo "------------------------------ Applying migrations ------------------------------" &&
/bin/draconctl migrations apply --url postgres://postgres:password@postgres:5432?sslmode=disable &&
/bin/draconctl migrations inspect --url postgres://postgres:password@postgres:5432?sslmode=disable --json | tee | jq -eM '. | select(.Version > 0)' &&
/bin/draconctl migrations inspect --url postgres://postgres:password@postgres:5432?sslmode=disable --json |grep -v 'level=' | tee | jq -eM '. | select(.Version > 0)' &&
echo "------------------------------ Reverting migrations ------------------------------" &&
/bin/draconctl migrations revert --url postgres://postgres:password@postgres:5432?sslmode=disable &&
/bin/draconctl migrations inspect --url postgres://postgres:password@postgres:5432?sslmode=disable --json | tee | jq -eM '. | select(.Version == 0)'
/bin/draconctl migrations inspect --url postgres://postgres:password@postgres:5432?sslmode=disable --json |grep -v 'level=' | tee | jq -eM '. | select(.Version == 0)'
networks:
test-migrations:

0 comments on commit 5dfd715

Please sign in to comment.