Skip to content

Commit

Permalink
temporari delete test
Browse files Browse the repository at this point in the history
  • Loading branch information
anh-bolt committed Aug 10, 2024
1 parent bdb31c7 commit a52e8d6
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,28 +129,4 @@ public void callDownloadFile(BpmClient bpmClient) {
assertThat(downloadedFile.length()).isEqualTo(TEST_FILE_SIZE);
assertThat(downloadedFile.getName()).isEqualTo(TEST_FILE_NAME);
}

@Test
@Order(6)
public void callOpenConnectionWithSSHKey(BpmClient bpmClient) throws Exception {
String prefix = "com_axonivy_connector_sftp_server_";
Ivy.var().set(prefix+"auth", "ssh");
Ivy.var().set(prefix+"password", "");

ContentObjectValue rsafile = Ivy.cm().findValue("/Files/rsa4096").resolve(Locale.ENGLISH).orElse(null);
String keyString = rsafile.read().string();
Ivy.var().set(prefix+"secret_sshkey", keyString);
Ivy.var().set(prefix+"secret_sshpassphrase", "123456");

BpmElement startable = TEST_HELPER_PROCESS.elementName("openConnection()");

SubProcessCallResult result = bpmClient.start()
.subProcess(startable)
.execute() // Callable sub process input arguments
.subResult();

SftpClientService sftpClient = result.param("sftpClient", SftpClientService.class);
assertThat(sftpClient).isNotNull();
sftpClient.close();
}
}

0 comments on commit a52e8d6

Please sign in to comment.