One to One (Single Client with Single Server) Smoke Tests
Use Case
Given I send the simple-sample-test.dat data file to producer Kafka
When that file contains 40 records of test data and the following filters are applied:
- Nationality:
GBR - Clearance:
O - Organisation Type:
NON-GOV
Then I should see 23 records in the consumer IA Node data store, and those records should contain the same attributes listed above (Nationality, Clearance, Organisation Type)
Running the tests
To run the tests you'll need to spin up the following docker compose file:
Changing the test parameters
Changing the test data file
To change the test data file that is sent via kafka, you must modify the KNOWLEDGE_DATA environment variable in the
docker/.env to the filename of your desired file, ensuring that the file is in the docker/input/knowledge directory.
Changing the filters
Changing the data filters can be done by modifiying the attributes in docker/docker-grpc-resources/access.json
Viewing the test outcome
The test outcome can be viewed by checking the logs of kafka-message-counter, which will check the message count in the Kafka topic against the expected number of messages:
There may be cases where the message counter needs more time to pick up the federated messages. To resolve any test
failures related to this, you can restart the kafka-message-counter container
and then rerun the logs command above.
Clean up
When finished with the smoke tests you can take down the containers to save resources: