api/vault: Fix 404 handling and improve error messages
Vault 404 error handling needed to be updated since changes related to exception handling server side. Also improve returned error messages, add missing test and slightly refactor tests implementation (use hypothesis instead of harcoded data). Closes T2388
Showing
- requirements-swh.txt 1 addition, 1 deletionrequirements-swh.txt
- swh/web/api/views/vault.py 8 additions, 6 deletionsswh/web/api/views/vault.py
- swh/web/common/service.py 12 additions, 6 deletionsswh/web/common/service.py
- swh/web/tests/api/views/test_vault.py 75 additions, 32 deletionsswh/web/tests/api/views/test_vault.py
Loading
-
Some references in the commit message have been migrated:
- T2388 is now swh/meta#2388 (closed)
Please register or sign in to comment