summaryrefslogtreecommitdiff
path: root/spec/support/shared_contexts/read_ci_configuration_shared_context.rb
blob: 04c5017176627bfbfaea9fc2eef037684ca97974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

RSpec.shared_context 'read ci configuration for sast enabled project' do
  let_it_be(:gitlab_ci_yml_content) do
    File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci_for_sast.yml'))
  end

  let_it_be(:gitlab_ci_yml_default_analyzers_content) do
    File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci_for_sast_default_analyzers.yml'))
  end

  let_it_be(:gitlab_ci_yml_excluded_analyzers_content) do
    File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci_for_sast_excluded_analyzers.yml'))
  end

  let_it_be(:project) { create(:project, :repository) }
end