Skip to content

Commit

Permalink
One more round
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed May 8, 2024
1 parent cba7961 commit 8e31c7f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/seeds.test.js
Expand Up @@ -20,7 +20,20 @@ test("ensure one invalid seed fails crawl if failOnFailedSeed is set", async ()
let passed = true;
try {
await exec(
"docker run -v $PWD/test-crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://www.iana.org/ --url https://example.invalid --generateWACZ --limit 1 --failOnFailedSeed --collection failseed",
"docker run -v $PWD/test-crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://www.iana.org/ --url example.invalid --generateWACZ --limit 1 --failOnFailedSeed --collection failseed",
);
} catch (error) {
console.log(error);
passed = false;
}
expect(passed).toBe(false);
});

test("ensure seed with 4xx/5xx response fails crawl if failOnFailedSeed and failOnInvalidStatus is set", async () => {
let passed = true;
try {
await exec(
"docker run -v $PWD/test-crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://www.iana.org/ --url https://example.invalid --generateWACZ --limit 1 --failOnFailedSeed --failOnInvalidStatus --collection failseedstatus",
);
} catch (error) {
console.log(error);
Expand Down

0 comments on commit 8e31c7f

Please sign in to comment.