Commit 8d72653a authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'ci-update-smoke-tests-for-pipeline-processing' into 'master'

Update test expectation when job tags don't match

See merge request gitlab-org/gitlab!62567
parents 3a645cc8 3f5f84e9
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
RSpec.describe 'Verify', :runner do # TODO: Remove `:requires_admin` meta when the feature flag is removed
RSpec.describe 'Verify', :runner, :requires_admin do
describe 'Pipeline creation and processing' do describe 'Pipeline creation and processing' do
let(:executor) { "qa-runner-#{Time.now.to_i}" } let(:executor) { "qa-runner-#{Time.now.to_i}" }
let(:max_wait) { 30 } let(:max_wait) { 30 }
let(:feature_flag) { :ci_drop_new_builds_when_ci_quota_exceeded }
let(:project) do let(:project) do
Resource::Project.fabricate_via_api! do |project| Resource::Project.fabricate_via_api! do |project|
...@@ -20,8 +22,13 @@ module QA ...@@ -20,8 +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
...@@ -47,7 +54,7 @@ module QA ...@@ -47,7 +54,7 @@ module QA
- echo 'FAILURE' - echo 'FAILURE'
- exit 1 - exit 1
test-tags: test-tags-mismatch:
tags: tags:
- invalid - invalid
script: echo 'NOOP' script: echo 'NOOP'
...@@ -70,7 +77,7 @@ module QA ...@@ -70,7 +77,7 @@ module QA
{ {
'test-success': :passed, 'test-success': :passed,
'test-failure': :failed, 'test-failure': :failed,
'test-tags': :pending, 'test-tags-mismatch': :failed,
'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