Skip to content
代码片段 群组 项目
提交 1539ce85 编辑于 作者: Harsha Muralidhar's avatar Harsha Muralidhar 提交者: Chloe Liu
浏览文件

Adds retry to vulnerability create and correctly quarantines

上级 ee88c890
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
module QA
RSpec.describe 'Govern', :runner, product_group: :threat_insights,
quarantine: {
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/407467',
type: :flaky
} do
RSpec.describe 'Govern', :runner, product_group: :threat_insights do
describe 'Vulnerability management in a merge request' do
let(:sast_vuln_count) { 5 }
let(:dependency_scan_vuln_count) { 4 }
......@@ -26,11 +22,13 @@ module QA
end
let!(:vulnerability_report) do
QA::EE::Resource::VulnerabilityItem.fabricate_via_api! do |vulnerability|
vulnerability.id = project.id
vulnerability.severity = :CRITICAL
vulnerability.name = "Bowling vulnerability"
vulnerability.description = "Run in and roll your arms and pitch the ball"
Support::Retrier.retry_on_exception(sleep_interval: 2, message: "Retrying vulnerability create graphql api") do
QA::EE::Resource::VulnerabilityItem.fabricate_via_api! do |vulnerability|
vulnerability.id = project.id
vulnerability.severity = :CRITICAL
vulnerability.name = "Bowling vulnerability"
vulnerability.description = "Run in and roll your arms and pitch the ball"
end
end
end
......@@ -105,7 +103,11 @@ module QA
end
it 'can create an auto-remediation MR from mr security widget',
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/348009' do
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/348009',
quarantine: {
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/407467',
type: :flaky
} do
Page::MergeRequest::Show.perform do |merge_request|
expect(merge_request).to have_vulnerability_report
merge_request.resolve_vulnerability_with_mr(remediable_vuln_name)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册