Skip to content

Commit 8b7a575

Browse files
committed
fix postgres server requirements
1 parent e9b5b97 commit 8b7a575

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/smoke/testApps/Jdbc/src/main/java/com/microsoft/applicationinsights/smoketestapp/JdbcTestServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private static Connection getMysqlConnection() throws Exception {
268268

269269
private static Connection getPostgresConnection() throws Exception {
270270
String hostname = System.getenv("POSTGRES");
271-
return DriverManager.getConnection("jdbc:postgresql://" + hostname + "/postgres", "postgres", "");
271+
return DriverManager.getConnection("jdbc:postgresql://" + hostname + "/postgres", "postgres", "passw0rd2");
272272
}
273273

274274
private static Connection getSqlServerConnection() throws Exception {

test/smoke/testApps/Jdbc/src/smokeTest/java/com/microsoft/applicationinsights/smoketestapp/JdbcSmokeTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
@DependencyContainer(
2929
value = "postgres:11",
3030
portMapping = "5432",
31+
environmentVariables = {"POSTGRES_PASSWORD=passw0rd2"},
3132
hostnameEnvironmentVariable = "POSTGRES"),
3233
@DependencyContainer(
3334
value = "mcr.microsoft.com/mssql/server:2017-latest",

0 commit comments

Comments
 (0)