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>2023-06-08 18:08:30 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-08 18:08:30 +0300
commitec9dd96cd876d8778bb757a1e1e0252a58fdcbbb (patch)
tree434606041cb42bcc922a02efe52a156b792e123b /spec/services
parent473b876fe3d7e0b36eb6268cc44a4fe0d94f4422 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/ci/pipeline_creation/cancel_redundant_pipelines_service_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/services/ci/pipeline_creation/cancel_redundant_pipelines_service_spec.rb b/spec/services/ci/pipeline_creation/cancel_redundant_pipelines_service_spec.rb
index 304db3acfa3..905ccf164ca 100644
--- a/spec/services/ci/pipeline_creation/cancel_redundant_pipelines_service_spec.rb
+++ b/spec/services/ci/pipeline_creation/cancel_redundant_pipelines_service_spec.rb
@@ -232,6 +232,19 @@ RSpec.describe Ci::PipelineCreation::CancelRedundantPipelinesService, feature_ca
expect(build_statuses(pipeline)).to contain_exactly('pending')
end
end
+
+ context 'when enable_cancel_redundant_pipelines_service FF is enabled' do
+ before do
+ stub_feature_flags(disable_cancel_redundant_pipelines_service: true)
+ end
+
+ it 'does not cancel any build' do
+ subject
+
+ expect(build_statuses(prev_pipeline)).to contain_exactly('running', 'success', 'created')
+ expect(build_statuses(pipeline)).to contain_exactly('pending')
+ end
+ end
end
context 'when the use_offset_pagination_for_canceling_redundant_pipelines FF is off' do