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

Test/db ingestion tests #27

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Test/db ingestion tests #27

merged 2 commits into from
Nov 1, 2024

Conversation

zone117x
Copy link
Member

@zone117x zone117x commented Nov 1, 2024

Closes #22

Include a json payload dump from running chainhook in regtest-env and uses it in a test for ingestion code.

This PR also implements a new streamlined method managing postgres in tests:

  • Jest setup code automatically spins up ephemeral postgres docker containers with random/unique ports for tests to use.
  • Tests configure their postgres db instance to use a randomly generated PG_SCHEMA name so they can run in parallel without running into database conflicts.
  • Configures Jest projects to separate different logic for different kinds of tests, e.g. some need postgres instance, others are simple unit tests.

Copy link

github-actions bot commented Nov 1, 2024

Vercel deployment URL: https://signer-metrics-1am0z0hcg-hirosystems.vercel.app 🚀

@zone117x zone117x requested a review from janniks November 1, 2024 12:59
Copy link

codecov bot commented Nov 1, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@zone117x zone117x merged commit 092806b into main Nov 1, 2024
5 checks passed
@zone117x zone117x deleted the test/db-ingestion-tests branch November 1, 2024 13:41
@blockstack-devops
Copy link

🎉 This PR is included in version 0.4.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use regtest-env chainhook payload dump for testing
2 participants