BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
188c2313
Commit
188c2313
authored
Feb 13, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test to make sure the queue ticks when updating runners
parent
c1a37c60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
runners_spec.rb
spec/requests/api/runners_spec.rb
+7
-0
No files found.
spec/requests/api/runners_spec.rb
View file @
188c2313
...
...
@@ -183,6 +183,7 @@ describe API::Runners, api: true do
it
'updates runner'
do
description
=
shared_runner
.
description
active
=
shared_runner
.
active
runner_queue_value
=
shared_runner
.
ensure_runner_queue_value
update_runner
(
shared_runner
.
id
,
admin
,
description:
"
#{
description
}
_updated"
,
active:
!
active
,
...
...
@@ -197,18 +198,24 @@ describe API::Runners, api: true do
expect
(
shared_runner
.
tag_list
).
to
include
(
'ruby2.1'
,
'pgsql'
,
'mysql'
)
expect
(
shared_runner
.
run_untagged?
).
to
be
(
false
)
expect
(
shared_runner
.
locked?
).
to
be
(
true
)
expect
(
shared_runner
.
ensure_runner_queue_value
)
.
not_to
eq
(
runner_queue_value
)
end
end
context
'when runner is not shared'
do
it
'updates runner'
do
description
=
specific_runner
.
description
runner_queue_value
=
specific_runner
.
ensure_runner_queue_value
update_runner
(
specific_runner
.
id
,
admin
,
description:
'test'
)
specific_runner
.
reload
expect
(
response
).
to
have_http_status
(
200
)
expect
(
specific_runner
.
description
).
to
eq
(
'test'
)
expect
(
specific_runner
.
description
).
not_to
eq
(
description
)
expect
(
specific_runner
.
ensure_runner_queue_value
)
.
not_to
eq
(
runner_queue_value
)
end
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