firefly-fabconnect icon indicating copy to clipboard operation
firefly-fabconnect copied to clipboard

Integration test harness

Open jimthematrix opened this issue 3 years ago • 2 comments

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

jimthematrix avatar Jul 25 '21 21:07 jimthematrix

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

  1. create Kafka (Confluent) standalone server with UI and ecosystem
  2. create topic "ffin"
  3. send test message and compare with expected
  4. 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.

janrockdev avatar Aug 05 '21 22:08 janrockdev

@jimthematrix do you mean similar type of integration test module for MongoDB as we have for Kafka?

janrockdev avatar Sep 02 '21 06:09 janrockdev