Skip to content

Commit

Permalink
Fix SSH tests
Browse files Browse the repository at this point in the history
SSH tests are not working in 2.0.0 (well as they are marked as `@Ignored` they are not run).

Closes dadoonet#124.
  • Loading branch information
dadoonet committed Oct 30, 2015
1 parent 6ce279e commit d559e1c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public void test_ssh() throws Exception {
String password = "PASSWORD";
String hostname = "localhost";

Fs fs = startCrawlerDefinition("testsubdir").build();
Fs fs = startCrawlerDefinition().build();
Server server = Server.builder()
.setHostname(hostname)
.setUsername(username)
Expand All @@ -702,7 +702,7 @@ public void test_ssh_with_key() throws Exception {
String path_to_pem_file = "/path/to/private_key.pem";
String hostname = "localhost";

Fs fs = startCrawlerDefinition("testsubdir").build();
Fs fs = startCrawlerDefinition().build();
Server server = Server.builder()
.setHostname(hostname)
.setUsername(username)
Expand All @@ -711,7 +711,7 @@ public void test_ssh_with_key() throws Exception {
.build();
startCrawler(getCrawlerName(), fs, endCrawlerDefinition(getCrawlerName()), server);

countTestHelper(getCrawlerName(), null, 2);
countTestHelper(getCrawlerName(), null, 1);
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/samples/test_ssh/roottxtfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file contains some words.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file contains some words. This testcase is used in multi feed crawlers !
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file contains some words.

0 comments on commit d559e1c

Please sign in to comment.