GithubHelp home page GithubHelp logo

jung-ho-1231 / testcontainers-redpanda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shelajev/testcontainers-redpanda

0.0 0.0 0.0 309 KB

License: Other

Java 97.58% HTML 1.09% Dockerfile 1.33%

testcontainers-redpanda's Introduction

Introduction

This is a sample application showing how to use Testcontainers and Redpanda for writing integration tests in a Spring Boot Kafka application.

It uses Redpanda Testcontainers module which enables straightforward integration and provides additional developer experience enhancements for better integration tests. For more information please check out the article about this sample application.

Run the tests

Clone the project and run Maven tests:

./mvnw test

A bit more details

The environment for the integration tests is created by Testcontainers, and to create a Redpanda instance for your application to work with all you need is to instantiate and start a Testcontainers Redpanda class:

RedpandaContainer kafka = new RedpandaContainer("docker.redpanda.com/vectorized/redpanda:v22.2.1");
kafka.start();

You can see how it's implemented and how the configuration about Redpanda location (host/port) is passed to the Spring Boot app in the code.

testcontainers-redpanda's People

Contributors

shelajev avatar rnorth avatar kiview avatar bsideup avatar pioorg avatar gannachernyshova avatar kiftio avatar merikan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.