Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
change test
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Osborn <osbornjd@ornl.gov>
  • Loading branch information
Joe Osborn committed Feb 7, 2020
1 parent 79b7fd9 commit 525e9e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -178,11 +178,11 @@ public void testMultiHopRemoteCommand() {
ConnectionAuthorizationHandlerFactory authFactory = new ConnectionAuthorizationHandlerFactory();
// Request a ConnectionAuthorization of type text file which contains the
// credentials
String keyPath = System.getProperty("user.home") + "/.ssh/denisovankey";
String keyPath = System.getProperty("user.home") + "/.ssh/somekey";
ConnectionAuthorizationHandler auth = authFactory.getConnectionAuthorizationHandler("keypath",
keyPath);
auth.setHostname("denisovan");
auth.setUsername("4jo");
auth.setHostname("hostname");
auth.setUsername("password");
// Set it
ConnectionConfiguration firstConn = new ConnectionConfiguration();
firstConn.setAuthorization(auth);
Expand Down
Expand Up @@ -327,11 +327,11 @@ public void testForwardConnection() throws IOException {
ConnectionAuthorizationHandlerFactory authFactory = new ConnectionAuthorizationHandlerFactory();
// Request a ConnectionAuthorization of type text file which contains the
// credentials
String keyPath = System.getProperty("user.home") + "/.ssh/denisovankey";
String keyPath = System.getProperty("user.home") + "/.ssh/somekey";
ConnectionAuthorizationHandler auth = authFactory.getConnectionAuthorizationHandler("keypath",
keyPath);
auth.setHostname("denisovan");
auth.setUsername("4jo");
auth.setHostname("hostname");
auth.setUsername("password");
ConnectionConfiguration config = new ConnectionConfiguration();
config.setAuthorization(auth);
config.setName("forwardConnection");
Expand Down

0 comments on commit 525e9e5

Please sign in to comment.