You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/vault.md
+1-16Lines changed: 1 addition & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Testcontainers module for [Vault](https://github.com/hashicorp/vault). Vault is
4
4
5
5
## Usage example
6
6
7
-
Start Vault container as a `@ClassRule`:
7
+
You can start a Vault container instance from any Java application by using:
8
8
9
9
<!--codeinclude-->
10
10
[Starting a Vault container](../../modules/vault/src/test/java/org/testcontainers/vault/VaultContainerTest.java) inside_block:vaultContainer
@@ -22,21 +22,6 @@ Use Http API to read data from Vault container:
22
22
[Use Http API to read data](../../modules/vault/src/test/java/org/testcontainers/vault/VaultContainerTest.java) inside_block:readFirstSecretPathOverHttpApi
23
23
<!--/codeinclude-->
24
24
25
-
Use client library to read data from Vault container:
26
-
27
-
<!--codeinclude-->
28
-
[Use library to read data](../../modules/vault/src/test/java/org/testcontainers/vault/VaultContainerTest.java) inside_block:readWithLibrary
29
-
<!--/codeinclude-->
30
-
31
-
[See full example.](https://github.com/testcontainers/testcontainers-java/blob/master/modules/vault/src/test/java/org/testcontainers/vault/VaultContainerTest.java)
32
-
33
-
## Why Vault in Junit tests?
34
-
35
-
With the increasing popularity of Vault and secret management, applications are now needing to source secrets from Vault.
36
-
This can prove challenging in the development phase without a running Vault instance readily on hand. This library
37
-
aims to solve your apps integration testing with Vault. You can also use it to
38
-
test how your application behaves with Vault by writing different test scenarios in Junit.
39
-
40
25
## Adding this module to your project dependencies
41
26
42
27
Add the following dependency to your `pom.xml`/`build.gradle` file:
0 commit comments