Set origin on /etc/project-config in rsepc tests

We use zuul cloner + zuul to set up /etc/project-config for integration
testing with rsprec. As of zuulv3 this no longer results in an origin
remote being set which the puppet vcsrepo resource expects.

Address this expectation by manually configuring an origin remote after
we clone the repo.

Change-Id: I83e7088c36b1b57279bb32e44c9f74730da582cf
This commit is contained in:
Clark Boylan 2017-11-29 14:57:00 -08:00
parent 53df8aecdf
commit 7867989dd5
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ EOF
openstack-infra/project-config \
$project_names
# Zuul v3 doesn't add remotes like origin but our use of puppet vcsrepo
# errors if it can't update itself against origin (because vcsrepo manages
# repos that it will initially clone). Address this by adding an origin
# for the vcsrepo managed repo here.
sudo git -C /etc/project-config remote add origin 'https://git.openstack.org/openstack-infra/project-config'
}
install_all() {