New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/Landoop/kafka-testing

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Landoop/kafka-testing

  • v0.0.0-20181203150229-2b54999c6c77
  • Source
  • Go
  • Socket score

Version published
Created
Source

Build Status

Kafka Unit Testing

Allows 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

Versions

kafka-testingKafka brokerZookeeperSchema RegistryKafka Connect
0.1kafka_2.11 : 0.10.2.03.4.63.2.03.2.0
0.2kafka_2.11 : 0.10.2.1-cp23.4.63.2.23.2.2
0.2kafka_2.12 : 0.10.2.13.4.63.2.23.2.2
2.11.13.4.64.1.01.1.0

Maven central

<dependency>
  <groupId>com.landoop</groupId>
  <artifactId>kafka-testing_2.11</artifactId>
  <version>2.1</version>
</dependency>
compile 'com.landoop:kafka-testing_2.11:2.1

libraryDependencies += "com.landoop" %% "kafka-testing" % "2.1"

Required additional dependencies

This library requires Apache Kafka test-jars within the scope (requirement of KCluster)

libraryDependencies ++= Seq(
  "org.apache.kafka" %% "kafka" % "1.1.0" % Compile classifier "test",
  "org.apache.kafka" %% "kafka" % "1.1.0" % Compile,
  "org.apache.kafka" % "kafka-clients" % "1.1.0" % Compile classifier "test",
  "org.apache.kafka" % "kafka-clients" % "1.1.0" % Compile
)```

## Using it

```scala
 val kafkaCluster: KCluster = new KCluster()
 
 //get kafka brokers
 val brokers = kafkaCluster.BrokersList
 
 //get schema registry client
 val schemaRegistryClient = kafkaCluster.SchemaRegistryService.get.restClient
 
 
 //get schema registry endpoint
 val schemaRegistryEndpoint = kafkaCluster.SchemaRegistryService.get.Endpoint
 
 //get Zookeeper Client
 val zkClient = kafkaCluster.ZKClient
 
 //start connect
 kafkaCluster.startEmbeddedConnect(...)

License

Copyright 2017 Landoop

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

FAQs

Package last updated on 03 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc