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
af91f2ca
Commit
af91f2ca
authored
May 14, 2021
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that CiCdController correctly paginates runners
parent
6e340bb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/controllers/groups/settings/ci_cd_controller_spec.rb
spec/controllers/groups/settings/ci_cd_controller_spec.rb
+11
-0
No files found.
spec/controllers/groups/settings/ci_cd_controller_spec.rb
View file @
af91f2ca
...
...
@@ -32,6 +32,17 @@ RSpec.describe Groups::Settings::CiCdController do
expect
(
response
).
to
render_template
(
:show
)
expect
(
assigns
(
:group_runners
)).
to
match_array
([
runner_group
,
runner_project_1
,
runner_project_2
,
runner_project_3
])
end
it
'paginates runners'
do
stub_const
(
"Groups::Settings::CiCdController::NUMBER_OF_RUNNERS_PER_PAGE"
,
1
)
create
(
:ci_runner
)
get
:show
,
params:
{
group_id:
group
}
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
expect
(
assigns
(
:group_runners
).
count
).
to
be
(
1
)
end
end
context
'when user is not owner'
do
...
...
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