Missing repository argument: proper error codes.
As it was uncovered by experimental implementation in RHGitaly of `RepositoryExists`, it's possible that the `repository` argument is entirely missing. In that case, we are now raising `ValueError` internally, and convert it to the gRPC code `HGitalyServicer.STATUS_CODE_STORAGE_NOT_FOUND`.
parent
215369c1
No related branches found
No related tags found
Showing
- hgitaly/service/repository.py 5 additions, 5 deletionshgitaly/service/repository.py
- hgitaly/service/tests/test_repository_service.py 18 additions, 0 deletionshgitaly/service/tests/test_repository_service.py
- hgitaly/servicer.py 13 additions, 0 deletionshgitaly/servicer.py
- hgitaly/tests/test_servicer.py 6 additions, 0 deletionshgitaly/tests/test_servicer.py
- tests_with_gitaly/test_repository_service.py 53 additions, 0 deletionstests_with_gitaly/test_repository_service.py
Please register or sign in to comment