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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:10:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:10:16 +0300
commit694555850c08df0e98209b49b9c26d4c0428ad31 (patch)
tree1e69bb796398f055a8b2e1823a78d4a4ae879930 /spec/presenters/alert_management
parent520f3178665de5e7d313d332989cd445da83817b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/presenters/alert_management')
-rw-r--r--spec/presenters/alert_management/alert_presenter_spec.rb12
-rw-r--r--spec/presenters/alert_management/prometheus_alert_presenter_spec.rb13
2 files changed, 2 insertions, 23 deletions
diff --git a/spec/presenters/alert_management/alert_presenter_spec.rb b/spec/presenters/alert_management/alert_presenter_spec.rb
index 394007a802f..6cd363193ab 100644
--- a/spec/presenters/alert_management/alert_presenter_spec.rb
+++ b/spec/presenters/alert_management/alert_presenter_spec.rb
@@ -9,8 +9,7 @@ RSpec.describe AlertManagement::AlertPresenter do
{
'title' => 'Alert title',
'start_time' => '2020-04-27T10:10:22.265949279Z',
- 'custom' => { 'param' => 73 },
- 'runbook' => 'https://runbook.com'
+ 'custom' => { 'param' => 73 }
}
end
@@ -40,8 +39,7 @@ RSpec.describe AlertManagement::AlertPresenter do
#### Alert Details
- **custom.param:** 73#{markdown_line_break}
- **runbook:** https://runbook.com
+ **custom.param:** 73
MARKDOWN
)
end
@@ -53,12 +51,6 @@ RSpec.describe AlertManagement::AlertPresenter do
end
end
- describe '#runbook' do
- it 'shows the runbook from the payload' do
- expect(presenter.runbook).to eq('https://runbook.com')
- end
- end
-
describe '#details_url' do
it 'returns the details URL' do
expect(presenter.details_url).to match(%r{#{project.web_url}/-/alert_management/#{alert.iid}/details})
diff --git a/spec/presenters/alert_management/prometheus_alert_presenter_spec.rb b/spec/presenters/alert_management/prometheus_alert_presenter_spec.rb
index 3cfff3c1b2f..e4bfda12af9 100644
--- a/spec/presenters/alert_management/prometheus_alert_presenter_spec.rb
+++ b/spec/presenters/alert_management/prometheus_alert_presenter_spec.rb
@@ -69,17 +69,4 @@ RSpec.describe AlertManagement::PrometheusAlertPresenter do
it { is_expected.to eq(dashboard_url_for_alert) }
end
end
-
- describe '#runbook' do
- subject { presenter.runbook }
-
- it { is_expected.to be_nil }
-
- context 'with runbook in payload' do
- let(:expected_runbook) { 'https://awesome-runbook.com' }
- let(:payload) { { 'annotations' => { 'runbook' => expected_runbook } } }
-
- it { is_expected.to eq(expected_runbook) }
- end
- end
end