Update nightly test fixtures to use Seed objects (#734)

This commit is contained in:
Tessa Walsh 2023-04-03 16:21:25 -04:00 committed by GitHub
parent e9b61c632d
commit 3b99bdf26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ def crawl_id_wr(admin_auth_headers, default_org_id):
"name": "Webrecorder admin test crawl",
"tags": ["wr", "nightly testing"],
"config": {
"seeds": ["https://webrecorder.net/"],
"seeds": [{"url": "https://webrecorder.net/"}],
"limit": 1,
},
}
@ -83,7 +83,7 @@ def crawl_id_wr_specs(admin_auth_headers, default_org_id):
"name": "Webrecorder Specs admin test crawl",
"tags": ["wr-specs", "nightly testing"],
"config": {
"seeds": ["https://specs.webrecorder.net/"],
"seeds": [{"url": "https://specs.webrecorder.net/"}],
"limit": 1,
},
}
@ -113,7 +113,7 @@ def crawl_config_info(admin_auth_headers, default_org_id):
crawl_data = {
"runNow": True,
"name": "Crawl config test",
"config": {"seeds": ["https://specs.webrecorder.net/"], "limit": 1},
"config": {"seeds": [{"url": "https://specs.webrecorder.net/"}], "limit": 1},
}
r = requests.post(
f"{API_PREFIX}/orgs/{default_org_id}/crawlconfigs/",