commit | 0ffa010656c8909f76302e91ba063bf83a55ed9e | [log] [tgz] |
---|---|---|
author | James E. Blair <jeblair@redhat.com> | Thu Mar 30 13:11:33 2017 -0700 |
committer | James E. Blair <jeblair@redhat.com> | Tue Apr 18 15:51:50 2017 -0700 |
tree | cab4ceb0d06f0a5b132d84141a3b9bd0baa0cf5f | |
parent | 6f284b451f5ec97dc811c79ab4848b6d8e3d011d [diff] |
Fully qualify project configuration names The layout stores the configuration of a project in the ProjectConfig class (not the Project class -- that represents the abstract idea of a project independent of Zuul, the ProjectConfig represents a particular Zuul configuration operating on that project). Therefore, in the continuing effort to fully qualify project names, index ProjectConfig objects by their canonical project name. Use that name when looking for a ProjectConfig to find the jobs to run for a given change. Story: 2000953 Change-Id: I733a66369c969770e57c2fa8b30822bd15e1aca7
diff --git a/tests/fixtures/config/zuul-connections-multiple-gerrits/git/common-config/zuul.yaml b/tests/fixtures/config/zuul-connections-multiple-gerrits/git/common-config/zuul.yaml index 302dfcf..8353732 100644 --- a/tests/fixtures/config/zuul-connections-multiple-gerrits/git/common-config/zuul.yaml +++ b/tests/fixtures/config/zuul-connections-multiple-gerrits/git/common-config/zuul.yaml
@@ -33,10 +33,13 @@ name: project-test2 - project: - name: org/project1 + name: review.example.com/org/project1 review_check: jobs: - project-test1 + +- project: + name: another.example.com/org/project1 another_check: jobs: - project-test2
diff --git a/tests/fixtures/config/zuul-connections-multiple-gerrits/main.yaml b/tests/fixtures/config/zuul-connections-multiple-gerrits/main.yaml index 730cc7e..72e43f5 100644 --- a/tests/fixtures/config/zuul-connections-multiple-gerrits/main.yaml +++ b/tests/fixtures/config/zuul-connections-multiple-gerrits/main.yaml
@@ -4,3 +4,8 @@ review_gerrit: config-repos: - common-config + project-repos: + - org/project1 + another_gerrit: + project-repos: + - org/project1