Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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-ce
Commits
6441d896
Commit
6441d896
authored
Apr 19, 2021
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use X-Gitlab-Correlation-Id header name for PVS
instead of X-Request-ID
parent
44fb7c26
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/ci/pipeline/chain/validate/external.rb
lib/gitlab/ci/pipeline/chain/validate/external.rb
+1
-1
spec/lib/gitlab/ci/pipeline/chain/validate/external_spec.rb
spec/lib/gitlab/ci/pipeline/chain/validate/external_spec.rb
+1
-1
No files found.
lib/gitlab/ci/pipeline/chain/validate/external.rb
View file @
6441d896
...
...
@@ -70,7 +70,7 @@ module Gitlab
def
validate_service_request
headers
=
{
'X-
Request-ID
'
=>
Labkit
::
Correlation
::
CorrelationId
.
current_id
,
'X-
Gitlab-Correlation-id
'
=>
Labkit
::
Correlation
::
CorrelationId
.
current_id
,
'X-Gitlab-Token'
=>
validation_service_token
}.
compact
...
...
spec/lib/gitlab/ci/pipeline/chain/validate/external_spec.rb
View file @
6441d896
...
...
@@ -88,7 +88,7 @@ RSpec.describe Gitlab::Ci::Pipeline::Chain::Validate::External do
expect
(
::
Gitlab
::
HTTP
).
to
receive
(
:post
)
do
|
_url
,
params
|
expect
(
params
[
:body
]).
to
match_schema
(
'/external_validation'
)
expect
(
params
[
:timeout
]).
to
eq
(
described_class
::
DEFAULT_VALIDATION_REQUEST_TIMEOUT
)
expect
(
params
[
:headers
]).
to
eq
({
'X-
Request-ID
'
=>
'correlation-id'
})
expect
(
params
[
:headers
]).
to
eq
({
'X-
Gitlab-Correlation-id
'
=>
'correlation-id'
})
end
perform!
...
...
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