It uses the docker-compose-runner crate to spin up a kafka instance. This makes the test very easy to run both in CI and locally.
It then opens a socket to it and sends a single ApiVersions request, parses and response and does a few basic assertions on it.
At the moment it is essentially a smoke test. But it could be extended in the future to provide strong coverage across different APIs and versions.
This PR introduces a very basic integration test.
It uses the docker-compose-runner crate to spin up a kafka instance. This makes the test very easy to run both in CI and locally. It then opens a socket to it and sends a single ApiVersions request, parses and response and does a few basic assertions on it.
At the moment it is essentially a smoke test. But it could be extended in the future to provide strong coverage across different APIs and versions.
I think this is a useful step towards being able to test the correctness of https://github.com/tychedelia/kafka-protocol-rs/pull/62