firefly-fabconnect
firefly-fabconnect copied to clipboard
Integration test harness
Stand up real components to test various functions, especially those that rely on external components:
- mongodb
- kafka
Run automated tests to carry out end to end scenarios to exercise all the components involved
I have added the example of Kafka integration test to my fork (branch: draft). https://github.com/janrockdev/firefly-fabconnect/tree/draft/test/integration/kafka
- create Kafka (Confluent) standalone server with UI and ecosystem
- create topic "ffin"
- send test message and compare with expected
- remove all (this step can be removed to keep Kafka available for other tests of part of a development environment)
I can adjust it for the fabconnect as you will need. I kept logging there just in case you want to use it in CLI etc. It takes ~80sec to run the test with all images pull.
@jimthematrix do you mean similar type of integration test module for MongoDB as we have for Kafka?