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
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe Ci::PipelineProcessing::AtomicProcessingService do
|
2020-03-13 15:44:24 +05:30
|
|
|
before do
|
|
|
|
stub_feature_flags(ci_atomic_processing: true)
|
2020-05-24 23:13:21 +05:30
|
|
|
|
|
|
|
# This feature flag is implicit
|
|
|
|
# Atomic Processing does not process statuses differently
|
|
|
|
stub_feature_flags(ci_composite_status: true)
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
it_behaves_like 'Pipeline Processing Service'
|
2020-05-24 23:13:21 +05:30
|
|
|
it_behaves_like 'Pipeline Processing Service Tests With Yaml'
|
2020-03-13 15:44:24 +05:30
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def process_pipeline(initial_process: false)
|
|
|
|
described_class.new(pipeline).execute
|
|
|
|
end
|
|
|
|
end
|