Skip to content

Commit 6d4f62d

Browse files
committed
PLUGIN-1823: Revert changes done to FailedConnectionTest.java
1 parent 61232a4 commit 6d4f62d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

amazon-redshift-plugin/src/test/java/io/cdap/plugin/amazon/redshift/RedshiftFailedConnectionTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public void test() throws ClassNotFoundException, IOException {
3232

3333
super.test(JDBC_DRIVER_CLASS_NAME, connector, "Failed to create connection to database via connection string: " +
3434
"jdbc:redshift://localhost:5432/db and arguments: " +
35-
"{user=username}. Error: SQLException: The server does not support SSL..");
35+
"{user=username}. Error: ConnectException: Connection refused " +
36+
"(Connection refused).");
3637
}
3738
}

mysql-plugin/src/test/java/io/cdap/plugin/mysql/MysqlFailedConnectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void test() throws ClassNotFoundException, IOException {
3535
"rewriteBatchedStatements=true, " +
3636
"connectTimeout=20000, tinyInt1isBit=false, " +
3737
"socketTimeout=20000}. Error: " +
38-
"SQLException: Access denied for user 'username'@'localhost' (using password: YES).");
38+
"ConnectException: Connection refused (Connection refused).");
3939
}
4040

4141
@Test
@@ -50,7 +50,7 @@ public void testWithUpdatedConnectionArguments() throws ClassNotFoundException,
5050
"rewriteBatchedStatements=true, " +
5151
"connectTimeout=30000, tinyInt1isBit=false, " +
5252
"socketTimeout=30000}. Error: " +
53-
"SQLException: Access denied for user 'username'@'localhost' (using password: YES).");
53+
"ConnectException: Connection refused (Connection refused).");
5454
}
5555

5656
}

postgresql-plugin/src/test/java/io/cdap/plugin/postgres/PostgresFailedConnectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void test() throws ClassNotFoundException, IOException {
3232

3333
super.test(JDBC_DRIVER_CLASS_NAME, connector, "Failed to create connection to database via connection string: " +
3434
"jdbc:postgresql://localhost:5432/null and arguments: " +
35-
"{user=username}. Error: PSQLException: FATAL: " +
36-
"password authentication failed for user \"username\".");
35+
"{user=username}. Error: ConnectException: Connection refused " +
36+
"(Connection refused).");
3737
}
3838
}

0 commit comments

Comments
 (0)