Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-workhorse
Commits
687e6a84
Commit
687e6a84
authored
Aug 03, 2018
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use assert instead of require in order to see all errors at once
parent
5058a8f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gitaly_test.go
gitaly_test.go
+6
-6
No files found.
gitaly_test.go
View file @
687e6a84
...
@@ -166,12 +166,12 @@ func TestPostReceivePackProxiedToGitalySuccessfully(t *testing.T) {
...
@@ -166,12 +166,12 @@ func TestPostReceivePackProxiedToGitalySuccessfully(t *testing.T) {
gitalyRequest
:=
&
pb
.
PostReceivePackRequest
{}
gitalyRequest
:=
&
pb
.
PostReceivePackRequest
{}
require
.
NoError
(
t
,
jsonpb
.
UnmarshalString
(
split
[
0
],
gitalyRequest
))
require
.
NoError
(
t
,
jsonpb
.
UnmarshalString
(
split
[
0
],
gitalyRequest
))
require
.
Equal
(
t
,
apiResponse
.
Repository
.
StorageName
,
gitalyRequest
.
Repository
.
StorageName
)
assert
.
Equal
(
t
,
apiResponse
.
Repository
.
StorageName
,
gitalyRequest
.
Repository
.
StorageName
)
require
.
Equal
(
t
,
apiResponse
.
Repository
.
RelativePath
,
gitalyRequest
.
Repository
.
RelativePath
)
assert
.
Equal
(
t
,
apiResponse
.
Repository
.
RelativePath
,
gitalyRequest
.
Repository
.
RelativePath
)
require
.
Equal
(
t
,
apiResponse
.
GL_ID
,
gitalyRequest
.
GlId
)
assert
.
Equal
(
t
,
apiResponse
.
GL_ID
,
gitalyRequest
.
GlId
)
require
.
Equal
(
t
,
apiResponse
.
GL_USERNAME
,
gitalyRequest
.
GlUsername
)
assert
.
Equal
(
t
,
apiResponse
.
GL_USERNAME
,
gitalyRequest
.
GlUsername
)
require
.
Equal
(
t
,
apiResponse
.
GitConfigOptions
,
gitalyRequest
.
GitConfigOptions
)
assert
.
Equal
(
t
,
apiResponse
.
GitConfigOptions
,
gitalyRequest
.
GitConfigOptions
)
require
.
Equal
(
t
,
gitProtocol
,
gitalyRequest
.
GitProtocol
)
assert
.
Equal
(
t
,
gitProtocol
,
gitalyRequest
.
GitProtocol
)
assert
.
Equal
(
t
,
200
,
resp
.
StatusCode
,
"POST %q"
,
resource
)
assert
.
Equal
(
t
,
200
,
resp
.
StatusCode
,
"POST %q"
,
resource
)
require
.
Equal
(
t
,
string
(
testhelper
.
GitalyReceivePackResponseMock
),
split
[
1
])
require
.
Equal
(
t
,
string
(
testhelper
.
GitalyReceivePackResponseMock
),
split
[
1
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment