browsertrix/backend/test
Tessa Walsh cd7b695520
Add backend support for custom behaviors + validation endpoint (#2505)
Backend support for #2151 

Adds support for specifying custom behaviors via a list of strings.

When workflows are added or modified, minimal backend validation is done
to ensure that all custom behavior URLs are valid URLs (after removing
the git prefix and custom query arguments).

A separate `POST /crawlconfigs/validate/custom-behavior` endpoint is
also added, which can be used to validate a custom behavior URL. It
performs the same syntax check as above and then:
- For URL directly to behavior file, ensures URL resolves and returns a
2xx/3xx status code
- For Git repositories, uses `git ls-remote` to ensure they exist (and
that branch exists if specified)

---------

Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
2025-04-02 16:20:51 -07:00
..
data Backend work for public collections (#2198) 2025-01-13 15:15:48 -08:00
__init__.py
conftest.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
echo_server.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
test_api.py fixes token lifetime bug / improve security (#2490) 2025-03-19 10:07:09 -07:00
test_collections.py replay api: add downloadUrl to replay endpoints to be used by RWP (#2456) 2025-03-03 14:11:28 -08:00
test_crawl_config_search_values.py Pydantic 2.x update + type fixes + python 3.12 (#1947) 2024-07-22 17:23:03 -07:00
test_crawl_config_tags.py
test_crawlconfigs.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
test_filter_sort_results.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
test_login.py
test_org_subs.py security: tweak get /invite endpoints / InviteOut to: (#2087) 2024-09-20 11:52:56 -07:00
test_org.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
test_permissions.py
test_profiles.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
test_qa.py Calculate total for crawl QA page endpoint (#2435) 2025-02-27 11:46:35 -08:00
test_run_crawl.py crawl replay: remove isSeed=true from initialPages query (#2509) 2025-03-20 15:03:41 -07:00
test_stop_cancel_crawl.py
test_uploads.py Better cacheing of presigned URLs + support for thumbnails (#2446) 2025-03-03 12:05:23 -08:00
test_users.py Fix user emails use userout (#2511) 2025-03-24 12:04:39 -07:00
test_utils.py
test_webhooks.py Better cacheing of presigned URLs + support for thumbnails (#2446) 2025-03-03 12:05:23 -08:00
test_workflow_auto_add_to_collection.py
test_y_org_import_export.py
test_z_delete_org.py Move org storage recalculation into background job (#2138) 2024-11-19 17:32:57 -05:00
utils.py