tychedelia / kafka-protocol-rs

Rust Kafka protocol
Apache License 2.0
63 stars 23 forks source link

Add basic integration test #63

Closed rukai closed 4 months ago

rukai commented 4 months ago

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