diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-02-27 01:07:17 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-02-27 01:07:17 +0300 |
commit | 3364d5f4082afd243094d6c75ca059ea556e04ff (patch) | |
tree | d424a182c475d5cd63262311553d5c30a780a13d /spec/features/admin | |
parent | cce53020b0c1c06aa9298294aaac01cb35d7c1fc (diff) |
Resolve "Error 500 on route "/admin/application_settings/services/1882/edit" -> edit Prometheus Service Template"
Diffstat (limited to 'spec/features/admin')
-rw-r--r-- | spec/features/admin/services/admin_activates_prometheus_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/admin/services/admin_activates_prometheus_spec.rb b/spec/features/admin/services/admin_activates_prometheus_spec.rb new file mode 100644 index 00000000000..904fe5b406b --- /dev/null +++ b/spec/features/admin/services/admin_activates_prometheus_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' + +describe 'Admin activates Prometheus' do + let(:admin) { create(:user, :admin) } + + before do + sign_in(admin) + + visit(admin_application_settings_services_path) + + click_link('Prometheus') + end + + it 'activates service' do + check('Active') + fill_in('API URL', with: 'http://prometheus.example.com') + click_button('Save') + + expect(page).to have_content('Application settings saved successfully') + end +end |