browsertrix/backend/test
Tessa Walsh 4014d98243
Move pydantic models to separate module + refactor crawl response endpoints to be consistent (#983)
* Move all pydantic models to models.py to avoid circular dependencies
* Include automated crawl details in all-crawls GET endpoints
- ensure /all-crawls endpoint resolves names / firstSeed data same as /crawls endpoint for crawls to ensure consistent frontend display. fields added in get and list all-crawl endpoints for automated
crawls only:
- cid
- name
- description
- firstSeed
- seedCount
- profileName

* Add automated crawl fields to list all-crawls test

* Uncomment mongo readinessProbe

* cleanup CrawlOutWithResources:
- remove 'files' from output model, only resources should be returned
- add _files_to_resources() to simplify computing presigned 'resources' from raw 'files'
- update upload tests to be more consistent, 'files' never present, 'errors' always none

---------

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2023-07-20 13:05:33 +02:00
..
data Uploads API: BaseCrawl refactor + Initial support for /uploads endpoint (#937) 2023-07-07 09:13:26 -07:00
__init__.py Use archive_viewer_dep permissions to GET crawls (#443) 2023-01-09 19:11:53 -08:00
conftest.py Backend API consistency pass (#921) 2023-06-16 18:52:46 -07:00
test_collections.py Uploads API: BaseCrawl refactor + Initial support for /uploads endpoint (#937) 2023-07-07 09:13:26 -07:00
test_crawl_config_search_values.py Backend API consistency pass (#921) 2023-06-16 18:52:46 -07:00
test_crawl_config_tags.py Backend API consistency pass (#921) 2023-06-16 18:52:46 -07:00
test_crawlconfigs.py Backend API consistency pass (#921) 2023-06-16 18:52:46 -07:00
test_filter_sort_results.py Rework collections to track collections in Crawl (#878) 2023-05-25 15:41:50 -04:00
test_invites.py Paginate API list endpoints (#659) 2023-03-06 14:41:25 -05:00
test_login.py Backend lint check (#451) 2023-01-10 16:17:06 -08:00
test_org.py Paginate API list endpoints (#659) 2023-03-06 14:41:25 -05:00
test_permissions.py Paginate API list endpoints (#659) 2023-03-06 14:41:25 -05:00
test_run_crawl.py Backend API consistency pass (#921) 2023-06-16 18:52:46 -07:00
test_settings.py tests: fixes for crawl cancel + crawl stopped (#864) 2023-05-22 20:17:29 -07:00
test_stop_cancel_crawl.py Tests: fix test get crawl loop (#967) 2023-07-08 17:16:11 -07:00
test_uploads.py Move pydantic models to separate module + refactor crawl response endpoints to be consistent (#983) 2023-07-20 13:05:33 +02:00
test_users.py Add org role to /users/me-with-orgs (#536) 2023-01-31 16:27:13 -05:00
test_workflow_auto_add_to_collection.py Fix post-crawl collection stats update and add test (#918) 2023-06-10 19:06:25 -07:00
utils.py Uploads API: BaseCrawl refactor + Initial support for /uploads endpoint (#937) 2023-07-07 09:13:26 -07:00