Skip to content

Commit

Permalink
Testcase changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-vb committed Dec 17, 2024
1 parent 4d66099 commit 1967502
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/test/java/net/snowflake/client/jdbc/ConnectionIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -1055,24 +1055,9 @@ public void testFailOverOrgAccount() throws SQLException {
/** Test production connectivity with disableOCSPChecksMode enabled. */
@Test
public void testDisableOCSPChecksMode() throws SQLException {
String deploymentUrl = "jdbc:snowflake://sfcsupport.snowflakecomputing.com";

String deploymentUrl = "jdbc:snowflake://sfcsupport.snowflakecomputing.com?disableOCSPChecks=true";
Properties properties = new Properties();

properties.put("user", "fakeuser");
properties.put("password", "fakepwd");
properties.put("account", "fakeaccount");
properties.put("disableOCSPChecks", true);
try {
DriverManager.getConnection(deploymentUrl, properties);
fail();
} catch (SQLException e) {
assertThat(
e.getErrorCode(), anyOf(is(INVALID_CONNECTION_INFO_CODE), is(BAD_REQUEST_GS_CODE)));
}

deploymentUrl = "jdbc:snowflake://sfcsupport.snowflakecomputing.com?disableOCSPChecks=true";

properties = new Properties();

properties.put("user", "fakeuser");
Expand Down

0 comments on commit 1967502

Please sign in to comment.