Support Using TestContainers for our Integration Tests #4626
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a test suite utilizing TestContainers. It support spinning up docker compose stacks with all bacalhau components, thus resembling production setup.
This is not a complete TestSuite, but a big initial step towards consolidating out testing and evaluating TestContainers usage.
1- Allow us to run integration tests against a docker compose
deployment of bacalhau
2- Bacalhau compute/requestor configuration can be injected in the
container before start. We do not need to rebuild it every time
3- Tests are separated into suites which allows the combination of
similar tests together that will use the same docker compose
deployment. Help speed up things
4- Docker compose deployment has a local registry as well as a minio
server running. This expands out testing ability and scope.
5- Test Suite Works with Github Actions
Linear issue tracker: ENG-263
Github Issue: #4597