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
Léo-Paul Géneau
gitlab-ce
Commits
f8f492e5
Commit
f8f492e5
authored
Feb 17, 2016
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary parameters
parent
a5540b38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/requests/api/runners_spec.rb
spec/requests/api/runners_spec.rb
+5
-5
No files found.
spec/requests/api/runners_spec.rb
View file @
f8f492e5
...
...
@@ -217,7 +217,7 @@ describe API::API, api: true do
context
'authorized user'
do
context
'when runner is shared'
do
it
'should not update runner'
do
put
api
(
"/runners/
#{
shared_runner
.
id
}
"
,
user
)
,
description:
'test'
put
api
(
"/runners/
#{
shared_runner
.
id
}
"
,
user
)
expect
(
response
.
status
).
to
eq
(
403
)
end
...
...
@@ -225,7 +225,7 @@ describe API::API, api: true do
context
'when runner is not shared'
do
it
'should not update runner without access to it'
do
put
api
(
"/runners/
#{
specific_runner
.
id
}
"
,
user2
)
,
description:
'test'
put
api
(
"/runners/
#{
specific_runner
.
id
}
"
,
user2
)
expect
(
response
.
status
).
to
eq
(
403
)
end
...
...
@@ -244,7 +244,7 @@ describe API::API, api: true do
context
'unauthorized user'
do
it
'should not delete runner'
do
put
api
(
"/runners/
#{
specific_runner
.
id
}
"
)
,
description:
'test'
put
api
(
"/runners/
#{
specific_runner
.
id
}
"
)
expect
(
response
.
status
).
to
eq
(
401
)
end
...
...
@@ -405,7 +405,7 @@ describe API::API, api: true do
context
'authorized user without permissions'
do
it
'should not enable runner'
do
post
api
(
"/projects/
#{
project
.
id
}
/runners"
,
user2
)
,
runner_id:
specific_runner2
.
id
post
api
(
"/projects/
#{
project
.
id
}
/runners"
,
user2
)
expect
(
response
.
status
).
to
eq
(
403
)
end
...
...
@@ -413,7 +413,7 @@ describe API::API, api: true do
context
'unauthorized user'
do
it
'should not enable runner'
do
post
api
(
"/projects/
#{
project
.
id
}
/runners"
)
,
runner_id:
specific_runner2
.
id
post
api
(
"/projects/
#{
project
.
id
}
/runners"
)
expect
(
response
.
status
).
to
eq
(
401
)
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