Fix project-config testing

This is a combination of 2 commits:

Fix the renaming of ansible-role-refstack-client

In [0] that project was moved from x/ to openinfra/, but the patch
missed that at the same time refstack was also moved, changing the
path for the ACL.[1]

[0] https://review.opendev.org/c/openstack/project-config/+/765787
[1] https://review.opendev.org/c/openstack/project-config/+/808479

Fix use of yaml.load()

The use of this function has been deprecated for a long time[2]. With
PyYAML==6.0 the call is now failing, so replace it with the safe
version.

[2] https://msg.pyyaml.org/load

Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I439d1f167b5893a134a5b628ebc00fd6617e0cbd
This commit is contained in:
Dr. Jens Harbott 2021-10-18 13:05:07 +02:00
parent 611a5e0f66
commit 6ca813f6c8
No known key found for this signature in database
GPG Key ID: E7862B245C3596B1
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@
- project: openinfra/ansible-role-refstack-client
description: Ansible role to manage refstack-client
use-storyboard: true
acl-config: /home/gerrit2/acls/osf/refstack.config
acl-config: /home/gerrit2/acls/openinfra/refstack.config
- project: openinfra/edge-computing-group
description: General repository for the OpenInfra Edge Computing Group
use-storyboard: true

View File

@ -49,7 +49,7 @@ commands =
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \
-e @tests/vars.yaml \{\} + > /dev/null"
# Make sure site-variables at least parses
python -c 'import yaml ; yaml.load(open("zuul/site-variables.yaml", "r"))'
python -c 'import yaml ; yaml.safe_load(open("zuul/site-variables.yaml", "r"))'
[testenv:gerrit]
deps =