diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/workers/incident_management/process_prometheus_alert_worker_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/workers/incident_management/process_prometheus_alert_worker_spec.rb')
-rw-r--r-- | spec/workers/incident_management/process_prometheus_alert_worker_spec.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb b/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb deleted file mode 100644 index 56f07459a15..00000000000 --- a/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe IncidentManagement::ProcessPrometheusAlertWorker do - describe '#perform' do - let_it_be(:project) { create(:project) } - let_it_be(:prometheus_alert) { create(:prometheus_alert, project: project) } - - let(:payload_key) { Gitlab::AlertManagement::Payload::Prometheus.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 - { - startsAt: prometheus_alert.created_at.rfc3339, - labels: { - gitlab_alert_id: prometheus_alert.prometheus_metric_id - } - }.with_indifferent_access - end - - it 'does nothing' do - expect { subject.perform(project.id, alert_params) } - .not_to change(Issue, :count) - end - end -end |