blob: d0fee23b57c43467b9be0c4b4b3acbdbd233f813 (
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
25
26
27
|
# frozen_string_literal: true
RSpec.shared_context 'with a project in each allowlist' do
let_it_be(:outbound_allowlist_project) { create_project_in_allowlist(source_project, direction: :outbound) }
include_context 'with inaccessible projects'
end
RSpec.shared_context 'with accessible and inaccessible projects' do
let_it_be(:outbound_allowlist_project) { create_project_in_allowlist(source_project, direction: :outbound) }
let_it_be(:inbound_accessible_project) { create_inbound_accessible_project(source_project) }
let_it_be(:fully_accessible_project) { create_inbound_and_outbound_accessible_project(source_project) }
include_context 'with inaccessible projects'
end
RSpec.shared_context 'with inaccessible projects' do
let_it_be(:inbound_allowlist_project) { create_project_in_allowlist(source_project, direction: :inbound) }
include_context 'with unscoped projects'
end
RSpec.shared_context 'with unscoped projects' do
let_it_be(:unscoped_project1) { create(:project) }
let_it_be(:unscoped_project2) { create(:project) }
let_it_be(:link_out_of_scope) { create(:ci_job_token_project_scope_link, target_project: unscoped_project1) }
end
|