Skip to content
Snippets Groups Projects
Commit b8727a86 authored by Georges Racinet's avatar Georges Racinet
Browse files

CreateRepositoryFromBundle Gitaly comparison tests: added edge case

parent 832cbfae
No related branches found
No related tags found
1 merge request!102RepositoryService.FetchBundle: initial implementation
......@@ -333,6 +333,14 @@
assert exc_info_hg.value.code() == exc_info_git.value.code()
assert exc_info_hg.value.details() == exc_info_git.value.details()
# edge case: empty request
with pytest.raises(grpc.RpcError) as exc_info_git:
repo_stub['git'].CreateRepositoryFromBundle(())
with pytest.raises(grpc.RpcError) as exc_info_hg:
repo_stub['hg'].CreateRepositoryFromBundle(())
assert exc_info_hg.value.code() == exc_info_git.value.code()
assert exc_info_hg.value.details() == exc_info_git.value.details()
def test_create_bundle_from_ref_list(
gitaly_comparison, tmpdir, server_repos_root):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment