Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hgitaly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
hgitaly
Commits
b8727a86
Commit
b8727a86
authored
2 years ago
by
Georges Racinet
Browse files
Options
Downloads
Patches
Plain Diff
CreateRepositoryFromBundle Gitaly comparison tests: added edge case
parent
832cbfae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!102
RepositoryService.FetchBundle: initial implementation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests_with_gitaly/test_repository_service.py
+8
-0
8 additions, 0 deletions
tests_with_gitaly/test_repository_service.py
with
8 additions
and
0 deletions
tests_with_gitaly/test_repository_service.py
+
8
−
0
View file @
b8727a86
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment