Test all nodepool files

We now have nl03, loop over all nodepool files so that new files get
automatically tested.

Change-Id: Iddd4afda10a6cb95b7783ab0454c805d8df7313e
This commit is contained in:
Andreas Jaeger 2018-01-19 19:32:05 +01:00
parent 8c3d8a93cc
commit 60128af709
2 changed files with 6 additions and 3 deletions

5
tools/nodepool-validate.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash -xe
for n in nodepool/n*.yaml ; do
nodepool -c $n config-validate
done

View File

@ -102,9 +102,7 @@ commands = env ELEMENTS_DIR=elements dib-lint
[testenv:nodepool] [testenv:nodepool]
commands = commands =
nodepool -c {toxinidir}/nodepool/nodepool.yaml config-validate {toxinidir}/tools/nodepool-validate.sh
nodepool -c {toxinidir}/nodepool/nl01.openstack.org.yaml config-validate
nodepool -c {toxinidir}/nodepool/nl02.openstack.org.yaml config-validate
[testenv:add-projects-to-main] [testenv:add-projects-to-main]
basepython = python3 basepython = python3