Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/metrics/dashboard/processor_spec.rb')
-rw-r--r--spec/lib/gitlab/metrics/dashboard/processor_spec.rb38
1 files changed, 0 insertions, 38 deletions
diff --git a/spec/lib/gitlab/metrics/dashboard/processor_spec.rb b/spec/lib/gitlab/metrics/dashboard/processor_spec.rb
index 14a4c01fce3..52908a0b339 100644
--- a/spec/lib/gitlab/metrics/dashboard/processor_spec.rb
+++ b/spec/lib/gitlab/metrics/dashboard/processor_spec.rb
@@ -16,7 +16,6 @@ RSpec.describe Gitlab::Metrics::Dashboard::Processor do
Gitlab::Metrics::Dashboard::Stages::CustomMetricsInserter,
Gitlab::Metrics::Dashboard::Stages::CustomMetricsDetailsInserter,
Gitlab::Metrics::Dashboard::Stages::MetricEndpointInserter,
- Gitlab::Metrics::Dashboard::Stages::AlertsInserter,
Gitlab::Metrics::Dashboard::Stages::PanelIdsInserter,
Gitlab::Metrics::Dashboard::Stages::UrlValidator
]
@@ -118,43 +117,6 @@ RSpec.describe Gitlab::Metrics::Dashboard::Processor do
end
end
- context 'when the dashboard references persisted metrics with alerts' do
- let!(:alert) do
- create(
- :prometheus_alert,
- environment: environment,
- project: project,
- prometheus_metric: persisted_metric
- )
- end
-
- shared_examples_for 'has saved alerts' do
- it 'includes an alert path' do
- target_metric = all_metrics.find { |metric| metric[:metric_id] == persisted_metric.id }
-
- expect(target_metric).to be_a Hash
- expect(target_metric).to include(:alert_path)
- expect(target_metric[:alert_path]).to include(
- project.path,
- persisted_metric.id.to_s,
- environment.id.to_s
- )
- end
- end
-
- context 'that are shared across projects' do
- let!(:persisted_metric) { create(:prometheus_metric, :common, identifier: 'metric_a1') }
-
- it_behaves_like 'has saved alerts'
- end
-
- context 'when the project has associated metrics' do
- let!(:persisted_metric) { create(:prometheus_metric, project: project, group: :business) }
-
- it_behaves_like 'has saved alerts'
- end
- end
-
context 'when there are no alerts' do
let!(:persisted_metric) { create(:prometheus_metric, :common, identifier: 'metric_a1') }