Browse Source

Merge "Test coverage to exclude pipeline with untrusted project"

tags/3.6.0
Zuul 5 months ago
parent
commit
7fc7fdc9c8

+ 6
- 0
tests/fixtures/config/tenant-parser/git/org_project4/.zuul.yaml View File

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

+ 2
- 0
tests/fixtures/config/tenant-parser/override.yaml View File

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

+ 1
- 1
tests/unit/test_configloader.py View File

@@ -80,7 +80,7 @@ class TestTenantOverride(TenantParserTestCase):
80 80
         tenant = self.sched.abide.tenants.get('tenant-one')
81 81
         self.assertEqual(['common-config'],
82 82
                          [x.name for x in tenant.config_projects])
83
-        self.assertEqual(['org/project1', 'org/project2'],
83
+        self.assertEqual(['org/project1', 'org/project2', 'org/project4'],
84 84
                          [x.name for x in tenant.untrusted_projects])
85 85
         project = tenant.config_projects[0]
86 86
         tpc = tenant.project_configs[project.canonical_name]

Loading…
Cancel
Save