browsertrix/backend/test
Tessa Walsh 9140dd75bc
Add and enforce readOnly field in Organization (#1886)
Fixes https://github.com/webrecorder/browsertrix/issues/1883
Backend work for https://github.com/webrecorder/browsertrix/issues/1876

- If readOnly is set true, disallow crawls and QA analysis runs
- If readOnly is set to true, skip scheduled crawls
- Add endpoint to set `readOnly` with optional `readOnlyReason` (which
is automatically set back to an empty string when `readOnly` is being
set to false), which can be displayed in banner
- Operator: ensures cronjobs that are skipped due to internal logic (eg. readonly mode) simply succeed right away and do not leave a k8s job dangling.

---------
Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2024-06-25 19:30:53 -07:00
..
data
__init__.py
conftest.py feat: User-sort browser profiles list (#1839) 2024-06-04 13:57:03 -04:00
echo_server.py
test_collections.py Fix: Make Collections Public on Creation (#1213) 2023-09-29 12:08:10 -07:00
test_crawl_config_search_values.py
test_crawl_config_tags.py
test_crawlconfigs.py Support multiple crawler versions (#1420) 2024-01-16 15:32:12 -08:00
test_filter_sort_results.py Separate seeds into a new endpoints (#1217) 2023-10-02 10:56:12 -07:00
test_invites.py
test_login.py User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
test_org.py Add and enforce readOnly field in Organization (#1886) 2024-06-25 19:30:53 -07:00
test_permissions.py
test_profiles.py Use standard firstSeed/seedCount fallback for workflows with no name in profile details (#1852) 2024-06-06 14:28:19 -04:00
test_qa.py Show QA meter while analysis is running (#1854) 2024-06-12 12:32:01 -04:00
test_run_crawl.py Backend: Move page file and error counts to crawl replay.json endpoint (#1868) 2024-06-20 19:02:57 -07:00
test_settings.py Add billing enabled and sales email to Helm chart and /settings API endpoint (#1873) 2024-06-25 10:55:29 -04:00
test_stop_cancel_crawl.py Replace partial_complete -> stopped_by_user or stopped_quota_reached + operator edge cases (#1368) 2023-11-14 11:17:16 -08:00
test_uploads.py Support sorting by last QA started time (#1712) 2024-04-22 13:00:52 -07:00
test_users.py Fix regression to changing user roles via PATCH /user-role API (#1824) 2024-05-24 10:41:05 -07:00
test_utils.py Format backend with Black 24 (#1507) 2024-02-07 11:35:34 -08:00
test_webhooks.py Add crawl, upload, and collection delete webhook event notifications (#1363) 2023-11-09 18:19:08 -08:00
test_workflow_auto_add_to_collection.py
utils.py