diff options
author | Rémy Coutable <remy@rymai.me> | 2018-01-22 08:31:09 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-01-22 08:31:09 +0000 |
commit | 63dbcd24836b4b1da3f7c1d61851b6603a4c4461 (patch) | |
tree | 81e3ae94e9648cbb791ee584862827b520976c34 /spec | |
parent | 5fb13c8123de12b68a078137c534ea46e0061745 (diff) | |
parent | 6dcba97c83acfde801db0d51a3911d58f8f5e45a (diff) | |
download | gitlab-ce-63dbcd24836b4b1da3f7c1d61851b6603a4c4461.tar.gz |
Merge branch '42206-permit-password-for-git-param' into 'master'
Resolve "Password authentication enabled for Git over HTTP(S) can not be disabled via UI"
Closes #42206
See merge request gitlab-org/gitlab-ce!16577
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/admin/application_settings_controller_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/controllers/admin/application_settings_controller_spec.rb b/spec/controllers/admin/application_settings_controller_spec.rb index 2565622f8df..cc1b1e5039e 100644 --- a/spec/controllers/admin/application_settings_controller_spec.rb +++ b/spec/controllers/admin/application_settings_controller_spec.rb @@ -51,6 +51,13 @@ describe Admin::ApplicationSettingsController do sign_in(admin) end + it 'updates the password_authentication_enabled_for_git setting' do + put :update, application_setting: { password_authentication_enabled_for_git: "0" } + + expect(response).to redirect_to(admin_application_settings_path) + expect(ApplicationSetting.current.password_authentication_enabled_for_git).to eq(false) + end + it 'updates the default_project_visibility for string value' do put :update, application_setting: { default_project_visibility: "20" } |