Upgrade to Spring Vault 2.1 snapshots, Reactor Californium, Spring Boot 2.1.
Fix bean overrides caused by the reactive health indicator. Disable TlsCert authentication tests because of Reactor's HttpClient interference with SSL configurations. See gh-235.
This commit is contained in:
@@ -52,7 +52,7 @@ import static org.junit.Assume.*;
|
||||
@SpringBootTest(classes = VaultConfigMySqlDatabaseTests.TestApplication.class, properties = {
|
||||
"spring.cloud.vault.database.enabled=true",
|
||||
"spring.cloud.vault.database.role=readonly",
|
||||
"spring.datasource.url=jdbc:mysql://localhost:3306/mysql?useSSL=false" })
|
||||
"spring.datasource.url=jdbc:mysql://localhost:3306/mysql?useSSL=false&serverTimezone=UTC" })
|
||||
public class VaultConfigMySqlDatabaseTests {
|
||||
|
||||
private final static int MYSQL_PORT = 3306;
|
||||
@@ -113,7 +113,7 @@ public class VaultConfigMySqlDatabaseTests {
|
||||
@Test
|
||||
public void shouldConnectUsingJdbcUrlConnection() throws SQLException {
|
||||
|
||||
String url = String.format("jdbc:mysql://%s?useSSL=false", MYSQL_HOST);
|
||||
String url = String.format("jdbc:mysql://%s?useSSL=false&serverTimezone=UTC", MYSQL_HOST);
|
||||
DriverManager.getConnection(url, username, password).close();
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ import static org.junit.Assume.*;
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@SpringBootTest(classes = VaultConfigMySqlTests.TestApplication.class, properties = {
|
||||
"spring.cloud.vault.mysql.enabled=true", "spring.cloud.vault.mysql.role=readonly",
|
||||
"spring.datasource.url=jdbc:mysql://localhost:3306/mysql?useSSL=false" })
|
||||
"spring.datasource.url=jdbc:mysql://localhost:3306/mysql?useSSL=false&serverTimezone=UTC" })
|
||||
public class VaultConfigMySqlTests {
|
||||
|
||||
private final static int MYSQL_PORT = 3306;
|
||||
@@ -101,7 +101,7 @@ public class VaultConfigMySqlTests {
|
||||
@Test
|
||||
public void shouldConnectUsingJdbcUrlConnection() throws SQLException {
|
||||
|
||||
String url = String.format("jdbc:mysql://%s?useSSL=false", MYSQL_HOST);
|
||||
String url = String.format("jdbc:mysql://%s?useSSL=false&serverTimezone=UTC", MYSQL_HOST);
|
||||
DriverManager.getConnection(url, username, password).close();
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,8 @@ import static org.junit.Assume.*;
|
||||
@SpringBootTest(classes = VaultConfigPostgreSqlTests.TestApplication.class, properties = {
|
||||
"spring.cloud.vault.postgresql.enabled=true",
|
||||
"spring.cloud.vault.postgresql.role=readonly",
|
||||
"spring.datasource.url=jdbc:postgresql://localhost:5432/postgres?ssl=false" })
|
||||
"spring.datasource.url=jdbc:postgresql://localhost:5432/postgres?ssl=false",
|
||||
"spring.main.allow-bean-definition-overriding=true" })
|
||||
public class VaultConfigPostgreSqlTests {
|
||||
|
||||
private final static String POSTGRES_HOST = "localhost";
|
||||
|
||||
Reference in New Issue
Block a user