Bumping versions
This commit is contained in:
@@ -94,7 +94,7 @@ public class CouchbaseSecretIntegrationTests extends IntegrationTestSupport {
|
||||
public void shouldCreateCredentialsCorrectly() {
|
||||
|
||||
Map<String, Object> secretProperties = this.configOperations.read(forDatabase(this.couchbaseProperties))
|
||||
.getData();
|
||||
.getData();
|
||||
|
||||
assertThat(secretProperties).containsKeys("spring.couchbase.username", "spring.couchbase.password");
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class MongoSecretIntegrationTests extends IntegrationTestSupport {
|
||||
private static final String MONGODB_HOST = "localhost";
|
||||
|
||||
private static final String ROOT_CREDENTIALS = String
|
||||
.format("mongodb://springvault:springvault@%s:%d/admin?ssl=false", MONGODB_HOST, MONGODB_PORT);
|
||||
.format("mongodb://springvault:springvault@%s:%d/admin?ssl=false", MONGODB_HOST, MONGODB_PORT);
|
||||
|
||||
private static final String ROLES = "[ \"readWrite\", { \"role\": \"read\", \"db\": \"admin\" } ]";
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@ public class PostgreSqlSecretIntegrationTests extends IntegrationTestSupport {
|
||||
|
||||
private static final int POSTGRES_PORT = 5432;
|
||||
|
||||
private static final String CONNECTION_URL = String.format(
|
||||
"postgresql://springvault:springvault@%s:%d/postgres?sslmode=disable", POSTGRES_HOST, POSTGRES_PORT);
|
||||
private static final String CONNECTION_URL = String
|
||||
.format("postgresql://springvault:springvault@%s:%d/postgres?sslmode=disable", POSTGRES_HOST, POSTGRES_PORT);
|
||||
|
||||
private static final String CREATE_USER_AND_GRANT_SQL = "CREATE ROLE \"{{name}}\" WITH "
|
||||
+ "LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';\n"
|
||||
|
||||
@@ -113,9 +113,11 @@ public class VaultConfigCassandraTests {
|
||||
@Test
|
||||
public void shouldConnectUsingCassandraClient() {
|
||||
|
||||
try (CqlSession session = CqlSession.builder().withLocalDatacenter("dc1")
|
||||
.addContactPoint(new InetSocketAddress(CASSANDRA_HOST, CASSANDRA_PORT))
|
||||
.withAuthCredentials(this.username, this.password).build()) {
|
||||
try (CqlSession session = CqlSession.builder()
|
||||
.withLocalDatacenter("dc1")
|
||||
.addContactPoint(new InetSocketAddress(CASSANDRA_HOST, CASSANDRA_PORT))
|
||||
.withAuthCredentials(this.username, this.password)
|
||||
.build()) {
|
||||
assertThat(session.getMetadata().getKeyspace("system")).isNotEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class VaultConfigDatabaseBootstrapConfigurationUnitTests {
|
||||
public void shouldConsiderCredentialPath() {
|
||||
|
||||
VaultConfigDatabaseBootstrapConfiguration.DatabaseSecretBackendMetadataFactory factory = new VaultConfigDatabaseBootstrapConfiguration()
|
||||
.databaseSecretBackendMetadataFactory();
|
||||
.databaseSecretBackendMetadataFactory();
|
||||
|
||||
VaultDatabaseProperties properties = new VaultDatabaseProperties();
|
||||
properties.setStaticRole(true);
|
||||
|
||||
@@ -63,7 +63,7 @@ public class VaultConfigMongoTests {
|
||||
private static final String MONGODB_HOST = "localhost";
|
||||
|
||||
private static final String ROOT_CREDENTIALS = String
|
||||
.format("mongodb://springvault:springvault@%s:%d/admin?ssl=false", MONGODB_HOST, MONGODB_PORT);
|
||||
.format("mongodb://springvault:springvault@%s:%d/admin?ssl=false", MONGODB_HOST, MONGODB_PORT);
|
||||
|
||||
private static final String ROLES = "[ \"readWrite\", { \"role\": \"read\", \"db\": \"admin\" } ]";
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@ public class VaultConfigPostgreSqlTests {
|
||||
|
||||
private static final int POSTGRES_PORT = 5432;
|
||||
|
||||
private static final String CONNECTION_URL = String.format(
|
||||
"postgresql://springvault:springvault@%s:%d/postgres?sslmode=disable", POSTGRES_HOST, POSTGRES_PORT);
|
||||
private static final String CONNECTION_URL = String
|
||||
.format("postgresql://springvault:springvault@%s:%d/postgres?sslmode=disable", POSTGRES_HOST, POSTGRES_PORT);
|
||||
|
||||
private static final String CREATE_USER_AND_GRANT_SQL = "CREATE ROLE \"{{name}}\" WITH "
|
||||
+ "LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';\n"
|
||||
|
||||
Reference in New Issue
Block a user