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
iv
gitlab-ce
Commits
28ad40d9
Commit
28ad40d9
authored
Dec 11, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for feature that regenerates runners token
parent
2da3cf31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
spec/features/ci/admin/runners_spec.rb
spec/features/ci/admin/runners_spec.rb
+22
-0
No files found.
spec/features/ci/admin/runners_spec.rb
View file @
28ad40d9
...
...
@@ -61,4 +61,26 @@ describe "Admin Runners" do
it
{
expect
(
page
).
not_to
have_content
(
@project2
.
name_with_namespace
)
}
end
end
describe
'runners registration token'
do
let!
(
:token
)
{
current_application_settings
.
runners_registration_token
}
before
{
visit
ci_admin_runners_path
}
it
'has a registration token'
do
expect
(
page
).
to
have_content
(
"Registration token is
#{
token
}
"
)
expect
(
page
).
to
have_selector
(
'#runners-token'
,
text:
token
)
end
describe
'reload registration token'
do
let
(
:page_token
)
{
find
(
'#runners-token'
).
text
}
before
do
click_button
'Reset runners registration token'
end
it
'changes registration token'
do
expect
(
page_token
).
to_not
eq
token
end
end
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