Skip to content

Commit

Permalink
rename datamember for sslcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-patil-hubs committed Feb 26, 2024
1 parent 0052a90 commit 30912d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void setDctUrl(String dctUrl) {
save();
}

public boolean isSslDisabled() {
public boolean getDisableSsl() {
return disableSsl;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jenkins/plugins/util/DctSdkUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public DctSdkUtil(Run<?, ?> run, TaskListener listener, String credId) {
return;
}
this.defaultClient = Configuration.getDefaultApiClient();
this.defaultClient.setVerifyingSsl(!DelphixGlobalConfiguration.get().isSslDisabled());
this.defaultClient.setVerifyingSsl(!DelphixGlobalConfiguration.get().getDisableSsl());
this.defaultClient.setConnectTimeout(Constant.TIMEOUT);
this.defaultClient.setReadTimeout(Constant.TIMEOUT);
this.defaultClient.setWriteTimeout(Constant.TIMEOUT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void GlobalConfigSSLDisable() throws Exception {
DelphixGlobalConfiguration globalConfig1 =
GlobalConfiguration.all().get(DelphixGlobalConfiguration.class);
globalConfig1.setDctUrl("https://self-signed.badssl.com");
globalConfig1.setSslCheck(true); //disable ssl
globalConfig1.setDisableSsl(true); //disable ssl
globalConfig1.save();

StringCredentialsImpl c =
Expand Down

0 comments on commit 30912d4

Please sign in to comment.