terascope / teraslice

Scalable data processing pipelines in JavaScript
https://terascope.github.io/teraslice/
Apache License 2.0
50 stars 13 forks source link

Add a proper check to ts-scripts that ensures Kafka is running #3534

Closed sotojn closed 9 months ago

sotojn commented 9 months ago

As of right now when you run ts-scripts test with kafka enabled, it will not verify that Kafka is actually running before executing tests.

Right now the checkKafka function doesn't do anything

https://github.com/terascope/teraslice/blob/c1358e8770561b97fc08bbf95b6e0ee9f0d4c428/packages/scripts/src/helpers/test-runner/services.ts#L712-L715

We should implement a check by importing a Kafka client that can connect to the brokers to verify that kafka is up and running.