Merge "Test coverage to exclude pipeline with untrusted project"

This commit is contained in:
Zuul 2019-02-04 20:38:00 +00:00 committed by Gerrit Code Review
commit 7fc7fdc9c8
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,6 @@
- pipeline:
name: check
description: Example check pipeline
manager: independent
precedence: low
trigger: {}

View File

@ -9,3 +9,5 @@
exclude: project
- org/project2:
include: job
- org/project4:
exclude: pipeline

View File

@ -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]