use of com.palantir.nexus.db.pool.config.ConnectionConfig in project atlasdb by palantir.
the class DbkvsPostgresTestSuite method getKvsConfig.
public static DbKeyValueServiceConfig getKvsConfig() {
DockerPort port = docker.containers().container("postgres").port(POSTGRES_PORT_NUMBER);
InetSocketAddress postgresAddress = new InetSocketAddress(port.getIp(), port.getExternalPort());
ConnectionConfig connectionConfig = ImmutablePostgresConnectionConfig.builder().dbName("atlas").dbLogin("palantir").dbPassword(ImmutableMaskedValue.of("palantir")).host(postgresAddress.getHostName()).port(postgresAddress.getPort()).build();
return ImmutableDbKeyValueServiceConfig.builder().connection(connectionConfig).ddl(ImmutablePostgresDdlConfig.builder().compactInterval(HumanReadableDuration.days(2)).build()).build();
}
use of com.palantir.nexus.db.pool.config.ConnectionConfig in project atlasdb by palantir.
the class PostgresConfigLoadingTest method testHikariConnectTimeout.
@Test
public void testHikariConnectTimeout() throws IOException {
ConnectionConfig connectionConfig = getConnectionConfig();
verifyHikariProperty(connectionConfig, "connectTimeout", connectionConfig.getConnectionTimeoutSeconds());
}
Aggregations