Connectors unit tests infrastructure #944
Closed
karolisg
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
PR for wrapper function #980 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Almost every connector needs external database, so we need to create infrastructure for every connector. That infrastructure and test cases should consider several aspects:
Current capabilities
We currently have implementation for e2e tests to be executed on buildkite. This approach creates external database infrastructure in docker container and run dozer app. After running, it compares the expected result/error with the actual result.
For connectors unit tests, we can reuse
dozer-tests
module parts, which allows to create and run docker commands. In that case every connector unit tests cases can control what infrastructure they need and connect to it.Infrastructure needed for connectors
Every connector has different needs of running services. Below is short list what containers every connector might need for unit test cases.
- zookeeper container
- debezium connector
- schema registry container (if needed)
- Postgres (or any other, which has proper data types mapping) container
- AWS S3 Mock container (if any suitable exists)
Beta Was this translation helpful? Give feedback.
All reactions