Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API response recorder for test fixtures #261

Merged
merged 5 commits into from
Jun 20, 2024
Merged

Conversation

gouline
Copy link
Owner

@gouline gouline commented Jun 18, 2024

API test fixtures are responses saved from an old Metabase release with rough manual additions over the years. To be able to create reproducible test cases for current Metabase releases, there needs to be a way to re-generate these as needed.

  • API response recorder to generate repeatable test fixtures
  • Migrate sandbox Metabase to H2 database mounted as a local volume that can be committed to preserve test questions and dashboards (bootstrapping anything mildly complex via API is too hard, that area is largely internal to Metabase and changes without warning)
  • Create and commit a representative selection of collections, dashboards and questions (query tables, query questions, native SQL queries)
  • Generate new fixtures and fix breaking tests

@gouline gouline marked this pull request as ready for review June 20, 2024 06:24
@gouline gouline merged commit 1e6d0f9 into master Jun 20, 2024
1 check passed
@gouline gouline deleted the test-fixture-recorder branch June 20, 2024 06:40
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.

1 participant