Commit 346d3da2 authored by Marius Bobin's avatar Marius Bobin Committed by Mark Lapierre

Check feature flag status before asserting the job state

parent 0f35a570
...@@ -22,16 +22,13 @@ module QA ...@@ -22,16 +22,13 @@ module QA
end end
end end
before do
Runtime::Feature.enable(feature_flag, project: project)
end
after do after do
runner.remove_via_api! runner.remove_via_api!
Runtime::Feature.disable(feature_flag, project: project)
end end
it 'users creates a pipeline which gets processed', :smoke, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1849' do it 'users creates a pipeline which gets processed', :smoke, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1849' do
tags_mismatch_status = Runtime::Feature.enabled?(feature_flag, project: project) ? :failed : :pending
Flow::Login.sign_in Flow::Login.sign_in
Resource::Repository::Commit.fabricate_via_api! do |commit| Resource::Repository::Commit.fabricate_via_api! do |commit|
...@@ -77,7 +74,7 @@ module QA ...@@ -77,7 +74,7 @@ module QA
{ {
'test-success': :passed, 'test-success': :passed,
'test-failure': :failed, 'test-failure': :failed,
'test-tags-mismatch': :failed, 'test-tags-mismatch': tags_mismatch_status,
'test-artifacts': :passed 'test-artifacts': :passed
}.each do |job, status| }.each do |job, status|
Page::Project::Pipeline::Show.perform do |pipeline| Page::Project::Pipeline::Show.perform do |pipeline|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment