Skip to content

Commit

Permalink
Modified test to assume domains file is already present locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
csrster committed Nov 8, 2017
1 parent 33102f4 commit 3a4b8af
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -45,10 +45,11 @@ public IngestDomainJob(AbstractStressTest stressTest, WebDriver webDriver, Long
} catch (IOException e) {
throw new RuntimeException(e);
}
/**
stressTest.addStep("Getting domain file", "The file should be downloaded");
int returnCode = 0;
final String command = "scp test@kb-prod-udv-001.kb.dk:" + backupEnv + "-backup/domain.*.txt " + domainsFile
//final String command = "scp test@kb-prod-udv-001.kb.dk:" + backupEnv + "-backup/domain.*.txt " + domainsFile
// .getAbsolutePath();
final String command = "cp devel@kb-prod-udv-001.kb.dk:prod-backup/domain.*.txt " + domainsFile
.getAbsolutePath();
try {
Process p = Runtime.getRuntime().exec(
Expand All @@ -58,7 +59,6 @@ public IngestDomainJob(AbstractStressTest stressTest, WebDriver webDriver, Long
throw new RuntimeException(e);
}
assertEquals(returnCode, 0, "Return code from scp command " + command + " is " + returnCode);
**/
stressTest.addStep("Checking for existence of domains file", "The file should exist.");
assertThat("Domain file " + domainsFile.getAbsolutePath() + " is too short", domainsFile.length(), greaterThan(10000L));
stressTest.addStep("Ingesting domains from " + domainsFile.getAbsolutePath(),
Expand Down

0 comments on commit 3a4b8af

Please sign in to comment.