diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-02-26 22:07:17 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-02-26 22:07:17 +0000 |
commit | 3364d5f4082afd243094d6c75ca059ea556e04ff (patch) | |
tree | d424a182c475d5cd63262311553d5c30a780a13d /spec/features/projects/services | |
parent | cce53020b0c1c06aa9298294aaac01cb35d7c1fc (diff) | |
download | gitlab-ce-3364d5f4082afd243094d6c75ca059ea556e04ff.tar.gz |
Resolve "Error 500 on route "/admin/application_settings/services/1882/edit" -> edit Prometheus Service Template"
Diffstat (limited to 'spec/features/projects/services')
-rw-r--r-- | spec/features/projects/services/user_activates_prometheus_spec.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/features/projects/services/user_activates_prometheus_spec.rb b/spec/features/projects/services/user_activates_prometheus_spec.rb new file mode 100644 index 00000000000..33f884eb148 --- /dev/null +++ b/spec/features/projects/services/user_activates_prometheus_spec.rb @@ -0,0 +1,23 @@ +require 'spec_helper' + +describe 'User activates Prometheus' do + let(:project) { create(:project) } + let(:user) { create(:user) } + + before do + project.add_master(user) + sign_in(user) + + visit(project_settings_integrations_path(project)) + + click_link('Prometheus') + end + + it 'activates service' do + check('Active') + fill_in('API URL', with: 'http://prometheus.example.com') + click_button('Save changes') + + expect(page).to have_content('Prometheus activated.') + end +end |