debian-mirror-gitlab/spec/services/ci/pipeline_processing/legacy_processing_service_spec.rb

36 lines
941 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
require 'spec_helper'
require_relative 'shared_processing_service.rb'
2020-05-24 23:13:21 +05:30
require_relative 'shared_processing_service_tests_with_yaml.rb'
2020-03-13 15:44:24 +05:30
describe Ci::PipelineProcessing::LegacyProcessingService do
before do
stub_feature_flags(ci_atomic_processing: false)
end
2020-05-24 23:13:21 +05:30
context 'when ci_composite_status is enabled' do
before do
stub_feature_flags(ci_composite_status: true)
end
it_behaves_like 'Pipeline Processing Service'
it_behaves_like 'Pipeline Processing Service Tests With Yaml'
end
context 'when ci_composite_status is disabled' do
before do
stub_feature_flags(ci_composite_status: false)
end
it_behaves_like 'Pipeline Processing Service'
it_behaves_like 'Pipeline Processing Service Tests With Yaml'
end
2020-03-13 15:44:24 +05:30
private
def process_pipeline(initial_process: false)
described_class.new(pipeline).execute(initial_process: initial_process)
end
end