{"id":13783461,"url":"https://github.com/lensesio/kafka-testing","last_synced_at":"2025-05-11T19:30:57.022Z","repository":{"id":57726077,"uuid":"87921617","full_name":"lensesio/kafka-testing","owner":"lensesio","description":"Repository for advanced unit-testing with embedded kafka services","archived":true,"fork":false,"pushed_at":"2018-12-03T15:02:30.000Z","size":33,"stargazers_count":25,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-18T22:21:21.389Z","etag":null,"topics":["kafka","testing"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lensesio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-11T10:32:34.000Z","updated_at":"2023-01-28T08:57:55.000Z","dependencies_parsed_at":"2022-08-30T06:10:58.524Z","dependency_job_id":null,"html_url":"https://github.com/lensesio/kafka-testing","commit_stats":null,"previous_names":["landoop/kafka-testing"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lensesio%2Fkafka-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lensesio%2Fkafka-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lensesio%2Fkafka-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lensesio%2Fkafka-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lensesio","download_url":"https://codeload.github.com/lensesio/kafka-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213844430,"owners_count":15646639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kafka","testing"],"created_at":"2024-08-03T19:00:21.903Z","updated_at":"2024-08-03T19:01:23.214Z","avatar_url":"https://github.com/lensesio.png","language":"Scala","funding_links":[],"categories":["Development"],"sub_categories":["Testing"],"readme":"[![Build Status](https://travis-ci.org/Landoop/kafka-testing.svg?branch=master)](https://travis-ci.org/Landoop/kafka-testing) \n\n[\u003cimg src=\"https://img.shields.io/maven-central/v/com.landoop/kafka-testing_2.11.svg?label=latest%20release%20for%20Scala%202.11\"/\u003e](http://search.maven.org/#search%7Cga%7C1%7Ckafka-testing_2.11)\n[\u003cimg src=\"https://img.shields.io/maven-central/v/com.landoop/kafka-testing_2.12.svg?label=latest%20release%20for%20Scala%202.12\"/\u003e](http://search.maven.org/#search%7Cga%7C1%7Ckafka-testing_2.12)\n\n# Kafka Unit Testing\n\nAllows you to start and stop for unit testing applications that communicate with Kafka `one or more Kafka brokers + a ZooKeeper instance + a Schema Registry instance + a Kafka Connect instance`\n\n## Versions\n\n| kafka-testing | Kafka broker              | Zookeeper | Schema Registry | Kafka Connect |\n|---------------|---------------------------|-----------| ----------------| --------------|\n| 0.1           | kafka_2.11 : 0.10.2.0     | 3.4.6     |           3.2.0 |         3.2.0 |\n| 0.2           | kafka_2.11 : 0.10.2.1-cp2 | 3.4.6     |           3.2.2 |         3.2.2 |\n| 0.2           | kafka_2.12 : 0.10.2.1     | 3.4.6     |           3.2.2 |         3.2.2 |\n| 2.1           | 1.1                       | 3.4.6     |           4.1.0 |         1.1.0 |\n\n## Maven central\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.landoop\u003c/groupId\u003e\n  \u003cartifactId\u003ekafka-testing_2.11\u003c/artifactId\u003e\n  \u003cversion\u003e2.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```gradle\ncompile 'com.landoop:kafka-testing_2.11:2.1\n\n```\n\n```sbt\nlibraryDependencies += \"com.landoop\" %% \"kafka-testing\" % \"2.1\"\n```\n\n### Required additional dependencies\nThis library requires Apache Kafka test-jars within the scope (requirement of KCluster)\n```sbt\nlibraryDependencies ++= Seq(\n  \"org.apache.kafka\" %% \"kafka\" % \"1.1.0\" % Compile classifier \"test\",\n  \"org.apache.kafka\" %% \"kafka\" % \"1.1.0\" % Compile,\n  \"org.apache.kafka\" % \"kafka-clients\" % \"1.1.0\" % Compile classifier \"test\",\n  \"org.apache.kafka\" % \"kafka-clients\" % \"1.1.0\" % Compile\n)```\n\n## Using it\n\n```scala\n val kafkaCluster: KCluster = new KCluster()\n \n //get kafka brokers\n val brokers = kafkaCluster.BrokersList\n \n //get schema registry client\n val schemaRegistryClient = kafkaCluster.SchemaRegistryService.get.restClient\n \n \n //get schema registry endpoint\n val schemaRegistryEndpoint = kafkaCluster.SchemaRegistryService.get.Endpoint\n \n //get Zookeeper Client\n val zkClient = kafkaCluster.ZKClient\n \n //start connect\n kafkaCluster.startEmbeddedConnect(...)\n```\n\n## License\n\n```\nCopyright 2017 Landoop\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flensesio%2Fkafka-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flensesio%2Fkafka-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flensesio%2Fkafka-testing/lists"}