Skip to content

Commit

Permalink
Fix tests for testing encrypt options (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilgreenbird authored Sep 12, 2023
1 parent 145c10e commit adb2cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static void setAEConnectionString(String serverName, String url, String protocol
}

// TODO: update AE test servers to support
AETestConnectionString += ";trustServerCertificate=true;";
AETestConnectionString += ";encrypt=false;trustServerCertificate=true;";
}

@BeforeAll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void fipsPropertyTest() throws Exception {
props.remove(Constants.ENCRYPT);
props.remove(Constants.TRUST_SERVER_CERTIFICATE);

try (Connection con = PrepUtil.getConnection(connectionString, props)) {
try (Connection con = PrepUtil.getConnection(connectionString + ";encrypt=false", props)) {
Assertions.assertTrue(!StringUtils.isEmpty(con.getSchema()));
} catch (Exception e) {
fail(TestResource.getResource("R_unexpectedErrorMessage") + e.getMessage());
Expand Down

0 comments on commit adb2cdf

Please sign in to comment.