Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.36 KB

consul.md

File metadata and controls

36 lines (25 loc) · 1.36 KB

Hashicorp Consul Module

Testcontainers module for Consul. Consul is a tool for managing key value properties. More information on Consul here.

Usage example

Running Consul in your Junit tests

Why Consul in Junit tests?

With the increasing popularity of Consul and config externalization, applications are now needing to source properties from Consul. This can prove challenging in the development phase without a running Consul instance readily on hand. This library aims to solve your apps integration testing with Consul. You can also use it to test how your application behaves with Consul by writing different test scenarios in Junit.

Adding this module to your project dependencies

Add the following dependency to your pom.xml/build.gradle file:

testImplementation "org.testcontainers:consul:{{latest_version}}"
<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>consul</artifactId>
    <version>{{latest_version}}</version>
    <scope>test</scope>
</dependency>

See AUTHORS for contributors.