summaryrefslogtreecommitdiff
path: root/spec/services/ci/pipeline_processing/atomic_processing_service_spec.rb
blob: a10a333b46206e884abbc3c8946bb49d5be38d33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require 'spec_helper'
require_relative 'shared_processing_service.rb'
require_relative 'shared_processing_service_tests_with_yaml.rb'

RSpec.describe Ci::PipelineProcessing::AtomicProcessingService do
  before do
    stub_feature_flags(ci_atomic_processing: true)

    # This feature flag is implicit
    # Atomic Processing does not process statuses differently
    stub_feature_flags(ci_composite_status: true)
  end

  it_behaves_like 'Pipeline Processing Service'
  it_behaves_like 'Pipeline Processing Service Tests With Yaml'

  private

  def process_pipeline(initial_process: false)
    described_class.new(pipeline).execute
  end
end