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:
parent
fb1ea3ed8f
commit
08f547be5c
16
bindep.txt
Normal file
16
bindep.txt
Normal 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
2
tests/inventory
Normal file
@ -0,0 +1,2 @@
|
||||
[all]
|
||||
localhost
|
2
tests/vars.yaml
Normal file
2
tests/vars.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
site_logs:
|
||||
fqdn: fake
|
3
tox.ini
3
tox.ini
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user