Test coverage to exclude pipeline with untrusted project
This is to confirm our syntax is correct when excluding pipelines from an untrusted project. Change-Id: Ieb6e714c9d9030aa1342de8d791d17130a2993c5 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
dab4c38d14
commit
f2ad0b38a4
|
@ -0,0 +1,6 @@
|
|||
- pipeline:
|
||||
name: check
|
||||
description: Example check pipeline
|
||||
manager: independent
|
||||
precedence: low
|
||||
trigger: {}
|
|
@ -9,3 +9,5 @@
|
|||
exclude: project
|
||||
- org/project2:
|
||||
include: job
|
||||
- org/project4:
|
||||
exclude: pipeline
|
||||
|
|
|
@ -80,7 +80,7 @@ class TestTenantOverride(TenantParserTestCase):
|
|||
tenant = self.sched.abide.tenants.get('tenant-one')
|
||||
self.assertEqual(['common-config'],
|
||||
[x.name for x in tenant.config_projects])
|
||||
self.assertEqual(['org/project1', 'org/project2'],
|
||||
self.assertEqual(['org/project1', 'org/project2', 'org/project4'],
|
||||
[x.name for x in tenant.untrusted_projects])
|
||||
project = tenant.config_projects[0]
|
||||
tpc = tenant.project_configs[project.canonical_name]
|
||||
|
|
Loading…
Reference in New Issue