-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: backend tests for project endpoints (#900)
* feat: Implement comprehensive test coverage for the Create Project API and related functions * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * feat: added used dataset for test cases in test_data * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: removed the larger geojson file with compressed zip in test_data * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: pydantic & sqlalchemy deprecation warnings * fix: pytest sqlalchemy logs, additional deprecation warns * test: fix user + org creation prior to project creation * test: move test_data dir under tests * test: use relative test_data_path over abs paths * ci: pytest workflow expose central-proxy & loopback * ci: use docker-compose stack for pytest workflow * ci: pyest workflow set env prior to .env copy * ci: pytest workflow only set essential vars * build(ci): compose mount pyproject.toml in ci container * ci: add DEBUG and LOG_LEVEL to pytest workflow * build(ci): ci add tag override for migrations too * refactor(backend): default to LOG_LEVEL=INFO in backend config * ci: add FRONTEND_MAIN_URL to pytest workflow env * build: set backend ci img entrypoint to sleep infinity * ci: run pytest via docker compose run (capture stdout) * build(dockerfile): add wait-for-it to backend runtime stage * ci: add wait-for-it for db prior to pytest run * test: fix project_route tests (remaining appuser files) * test: create odkcentral project with fmtm project * fix: handle qrcodes entirely in memory (no png files) * test: fix generate_appuser_files, pass xlsform path * ci(pytest): wait for odk central to start before run * ci(pytest): missed end of command for chaining * build: ci image from debug-with-odk (bundle cert) * ci(pytest): timeout 30s for central wait-for-it * ci(pytest): further increase central startup timeout * ci(pytest): add -strict to fail if wait-for-it false * ci(pytest): --use-aliases flag for docker compose run * build: add central as depends_on svc for api * ci(pytest): use docker network names over dc svc names * docs: for act gh workflow testing * ci(pytest): remove long timeout for cental_api wait-for-it * ci(pytest): debugging for central_api * ci(pytest): add sleep infinity entrypoint to api * ci(pytest): further debug, sleep 20 prior to cental logs * ci(pytest): update default CENTRAL_DB_HOST=central-db * ci(pytest): debug docker-compose content * ci(pytest): further debug docker-compose config * ci(pytest): finalise pytest workflow * ci(pytest): revert sleep infinity entrypoint * ci(pytest): check .env vars * ci(pytest): access secreys directly from env * ci: pytest comment out image cache for now * ci(pytest): secrets to env first, before dotenv * ci(pytest): specify secrets: inherit to pytest * ci(pytest): cache container images on pytest * ci(pytest): reorder image caching in workflow * ci(pytest): run cache steps as distinct jobs * ci(pytest): rename odk cache jobs * ci(pytest): set needs for image caches * ci: pytest update img cache to not use slashes * ci(pytest): cache directly in the workflow (no reusable) * ci(docs): fix doxygen openapi file caching * ci(pytest): simultaneous image caching for workflow * ci: use reusable image_cache workflow * ci(pytest): fix dependent job naming --------- Co-authored-by: sujanadh <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: spwoodcock <[email protected]>
- Loading branch information
1 parent
52bebb9
commit 5036c10
Showing
21 changed files
with
452 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.