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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
8e97323d
Commit
8e97323d
authored
Sep 06, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constants in specs
parent
c87540ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/lib/gitlab/workhorse_spec.rb
spec/lib/gitlab/workhorse_spec.rb
+1
-1
spec/requests/ci/api/builds_spec.rb
spec/requests/ci/api/builds_spec.rb
+1
-1
No files found.
spec/lib/gitlab/workhorse_spec.rb
View file @
8e97323d
...
...
@@ -63,7 +63,7 @@ describe Gitlab::Workhorse, lib: true do
end
describe
'#verify_api_request!'
do
let
(
:header_key
)
{
described_class
.
const_get
(
'INTERNAL_API_REQUEST_HEADER'
)
}
let
(
:header_key
)
{
described_class
::
INTERNAL_API_REQUEST_HEADER
}
let
(
:payload
)
{
{
'iss'
=>
'gitlab-workhorse'
}
}
it
'accepts a correct header'
do
...
...
spec/requests/ci/api/builds_spec.rb
View file @
8e97323d
...
...
@@ -253,7 +253,7 @@ describe Ci::API::API do
end
it
"reject requests that did not go through gitlab-workhorse"
do
headers
.
delete
(
'Gitlab-Workhorse-Api-Request'
)
headers
.
delete
(
Gitlab
::
Workhorse
::
INTERNAL_API_REQUEST_HEADER
)
post
authorize_url
,
{
token:
build
.
token
},
headers
expect
(
response
).
to
have_http_status
(
500
)
end
...
...
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