Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bts/test-kafka
An in-process Kafka and ZooKeeper runner for testing in Clojure
https://github.com/bts/test-kafka
clojure kafka test zookeeper
Last synced: 27 days ago
JSON representation
An in-process Kafka and ZooKeeper runner for testing in Clojure
- Host: GitHub
- URL: https://github.com/bts/test-kafka
- Owner: bts
- License: mit
- Created: 2014-11-19T22:50:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-09T15:38:59.000Z (over 9 years ago)
- Last Synced: 2024-09-13T13:09:30.772Z (about 2 months ago)
- Topics: clojure, kafka, test, zookeeper
- Language: Clojure
- Homepage:
- Size: 180 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-kafka [](https://circleci.com/gh/bts/test-kafka/tree/master)
An in-process Kafka and ZooKeeper runner for testing in Clojure. Adapted from [clj-kafka](https://github.com/pingles/clj-kafka)'s integration tests.
The current version depends on Kafka 0.8.2 or higher. If you require compatibility with Kafka 0.8.0 or 0.8.1, use test-kafka [0.1.0](https://github.com/bts/test-kafka/tree/0.1.0).
## Usage
Install with Leiningen:
```clojure
[test-kafka "0.2.0"]
```Then:
```clojure
(require 'test-kafka)(test-kafka/with-broker [kafka-port zk-port topic-name]
(comment "interact with kafka"))(test-kafka/with-zk [port]
(comment "interact with zookeeper"))
```## License
Copyright © 2014 Brian Schroeder
Distributed under the MIT License.
Copyright © 2013 Paul Ingles
Distributed under the Eclipse Public License, the same as Clojure.