Commit 28ec1471 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Add pagerduty_active to permitted params

parent cec750cb
...@@ -32,6 +32,9 @@ module Gitlab ...@@ -32,6 +32,9 @@ module Gitlab
}, },
send_email: { send_email: {
name: 'sending_emails' name: 'sending_emails'
},
pagerduty_active: {
name: 'pagerduty_webhook'
} }
}.with_indifferent_access.freeze }.with_indifferent_access.freeze
end end
......
...@@ -151,7 +151,8 @@ RSpec.describe Projects::Settings::OperationsController do ...@@ -151,7 +151,8 @@ RSpec.describe Projects::Settings::OperationsController do
incident_management_setting_attributes: { incident_management_setting_attributes: {
create_issue: 'false', create_issue: 'false',
send_email: 'false', send_email: 'false',
issue_template_key: 'some-other-template' issue_template_key: 'some-other-template',
pagerduty_active: 'true'
} }
} }
end end
...@@ -184,6 +185,8 @@ RSpec.describe Projects::Settings::OperationsController do ...@@ -184,6 +185,8 @@ RSpec.describe Projects::Settings::OperationsController do
it_behaves_like 'a gitlab tracking event', { issue_template_key: nil }, 'disabled_issue_template_on_alerts' it_behaves_like 'a gitlab tracking event', { issue_template_key: nil }, 'disabled_issue_template_on_alerts'
it_behaves_like 'a gitlab tracking event', { send_email: '1' }, 'enabled_sending_emails' it_behaves_like 'a gitlab tracking event', { send_email: '1' }, 'enabled_sending_emails'
it_behaves_like 'a gitlab tracking event', { send_email: '0' }, 'disabled_sending_emails' it_behaves_like 'a gitlab tracking event', { send_email: '0' }, 'disabled_sending_emails'
it_behaves_like 'a gitlab tracking event', { pagerduty_active: '1' }, 'enabled_pagerduty_webhook'
it_behaves_like 'a gitlab tracking event', { pagerduty_active: '0' }, 'disabled_pagerduty_webhook'
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment