diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-15 15:08:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-15 15:08:44 +0300 |
commit | 67441623767b3084d594288408bb078b2eb9f83e (patch) | |
tree | 0593430be110f1cbf67531081b0b8e5784efa6e4 /spec/workers | |
parent | b109901317f810e6708d4165e52b334b70297beb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/incident_management/process_alert_worker_spec.rb | 1 | ||||
-rw-r--r-- | spec/workers/incident_management/process_prometheus_alert_worker_spec.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/workers/incident_management/process_alert_worker_spec.rb b/spec/workers/incident_management/process_alert_worker_spec.rb index 81e55083629..0470552d933 100644 --- a/spec/workers/incident_management/process_alert_worker_spec.rb +++ b/spec/workers/incident_management/process_alert_worker_spec.rb @@ -4,6 +4,7 @@ require 'spec_helper' describe IncidentManagement::ProcessAlertWorker do let_it_be(:project) { create(:project) } + let_it_be(:settings) { create(:project_incident_management_setting, project: project, create_issue: true) } describe '#perform' do let(:alert_management_alert_id) { nil } diff --git a/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb b/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb index d80365cfba4..c9ea96df5c2 100644 --- a/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb +++ b/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb @@ -8,6 +8,7 @@ describe IncidentManagement::ProcessPrometheusAlertWorker do let_it_be(:prometheus_alert) { create(:prometheus_alert, project: project) } let(:payload_key) { Gitlab::Alerting::Alert.new(project: project, payload: alert_params).gitlab_fingerprint } let!(:prometheus_alert_event) { create(:prometheus_alert_event, prometheus_alert: prometheus_alert, payload_key: payload_key) } + let!(:settings) { create(:project_incident_management_setting, project: project, create_issue: true) } let(:alert_params) do { |