Fix tests - Add bindep.txt tec

Our tests need to compile some packages, add binary dependencies.
The list is the same as used for openstack-zuul-jobs.

Add tests files to pass the syntax checks.

Adjust test invocation to pass fake values to variables.

Change-Id: I7368990628086a03501c432b86ace48fb7a50ba5
This commit is contained in:
Andreas Jaeger 2019-02-11 20:34:54 +01:00
parent fb1ea3ed8f
commit 08f547be5c
4 changed files with 22 additions and 1 deletions

16
bindep.txt Normal file
View File

@ -0,0 +1,16 @@
# This is a cross-platform list tracking distribution packages needed by tests;
# see http://docs.openstack.org/infra/bindep/ for additional information.
libffi-devel [test platform:rpm]
libffi-dev [test platform:dpkg]
libssl-dev [platform:dpkg]
openssl-devel [platform:rpm]
python3-dev [compile test platform:dpkg platform:apk]
python3-devel [compile test platform:rpm]
libre2-dev [compile test platform:dpkg]
libre2-4 [platform:ubuntu-bionic]
libre2-3 [platform:debian-stretch]
libre2-1v5 [platform:ubuntu-xenial]
re2-devel [compile test platform:rpm]
re2-dev [platform:apk]
re2 [platform:rpm platform:apk]

2
tests/inventory Normal file
View File

@ -0,0 +1,2 @@
[all]
localhost

2
tests/vars.yaml Normal file
View File

@ -0,0 +1,2 @@
site_logs:
fqdn: fake

View File

@ -37,7 +37,8 @@ commands =
xargs -t -n1 ansible-lint -xANSIBLE0012'
# Ansible Syntax Check
bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \
-e @tests/vars.yaml \{\} + > /dev/null"
[testenv:venv]
commands = {posargs}