We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 914cdf6 commit 21029e0Copy full SHA for 21029e0
1 file changed
src/test-integration/java/com/bettercloud/vault/util/VaultContainer.java
@@ -226,6 +226,22 @@ public Vault getVault() throws VaultException {
226
return getVault(config, MAX_RETRIES, RETRY_MILLIS);
227
}
228
229
+ /**
230
+ * Constructs a VaultConfig that can be used to congiure your own tests
231
+ *
232
+ * @return
233
+ * @throws VaultException
234
+ */
235
+
236
+ public VaultConfig getVaultConfig() throws VaultException {
237
+ return new VaultConfig()
238
+ .address(getAddress())
239
+ .openTimeout(5)
240
+ .readTimeout(30)
241
+ .sslConfig(new SslConfig().pemFile(new File(CERT_PEMFILE)).build())
242
+ .build();
243
+ }
244
245
/**
246
* Constructs an instance of the Vault driver with sensible defaults, configured to use the supplied token
247
* for authentication.
0 commit comments