diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-10-04 13:08:38 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-10-04 13:08:38 +0300 |
commit | 8ec0eda9cca95b7a8fd352e9cf38982ab177cfce (patch) | |
tree | b950dadd39c36f902867a08805cbbeefed8b4387 /spec/features/projects/settings/pipelines_settings_spec.rb | |
parent | f3b3ee78df2331aff6e2428476f1f5af36334cb4 (diff) | |
parent | 5a60a54679ecc25c910385947811bcbd0d1b792f (diff) |
Merge branch '41922-simplify-runner-registration-token-resetting' into 'master'
Simplify runner registration token resetting
Closes #41922
See merge request gitlab-org/gitlab-ce!21658
Diffstat (limited to 'spec/features/projects/settings/pipelines_settings_spec.rb')
-rw-r--r-- | spec/features/projects/settings/pipelines_settings_spec.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/features/projects/settings/pipelines_settings_spec.rb b/spec/features/projects/settings/pipelines_settings_spec.rb index 30b0a5578ea..6f8ec0015ad 100644 --- a/spec/features/projects/settings/pipelines_settings_spec.rb +++ b/spec/features/projects/settings/pipelines_settings_spec.rb @@ -137,5 +137,29 @@ describe "Projects > Settings > Pipelines settings" do end end end + + describe 'runners registration token' do + let!(:token) { project.runners_token } + + before do + visit project_settings_ci_cd_path(project) + end + + it 'has a registration token' do + expect(page.find('#registration_token')).to have_content(token) + end + + describe 'reload registration token' do + let(:page_token) { find('#registration_token').text } + + before do + click_button 'Reset runners registration token' + end + + it 'changes registration token' do + expect(page_token).not_to eq token + end + end + end end end |