Skip to content

Add script to run tests against prod DB#1183

Open
nils-wisiol wants to merge 1 commit intomainfrom
20260122_test_prod
Open

Add script to run tests against prod DB#1183
nils-wisiol wants to merge 1 commit intomainfrom
20260122_test_prod

Conversation

@nils-wisiol
Copy link
Contributor

The revert commit is necessary to make it work. Without, the script reproduces the bug we saw in prod.

Usage: ./run-api-tests-stack.sh [--no-build] [--keep] [--docker] [--prod-db] [--prod-user USER] [--prod-host HOST] [--refresh-prod-db]
  --no-build  Skip docker image build step
  --keep      Do not tear down containers/volumes after tests
  --docker    Run API tests inside the api container (CI-style)
  --prod-db   Download a logical dbapi dump from production and load it locally
  --prod-user SSH username for prod (default: root)
  --prod-host SSH hostname for prod (default: desec.io)
  --refresh-prod-db  Re-download prod db dump even if cache exists

Copy link
Member

@peterthomassen peterthomassen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants