From 60128af70971dd61a532b518d1dee3a3a5cb8ac4 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 19 Jan 2018 19:32:05 +0100 Subject: [PATCH] Test all nodepool files We now have nl03, loop over all nodepool files so that new files get automatically tested. Change-Id: Iddd4afda10a6cb95b7783ab0454c805d8df7313e --- tools/nodepool-validate.sh | 5 +++++ tox.ini | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100755 tools/nodepool-validate.sh diff --git a/tools/nodepool-validate.sh b/tools/nodepool-validate.sh new file mode 100755 index 0000000000..ea38c7da84 --- /dev/null +++ b/tools/nodepool-validate.sh @@ -0,0 +1,5 @@ +#!/bin/bash -xe + +for n in nodepool/n*.yaml ; do + nodepool -c $n config-validate +done diff --git a/tox.ini b/tox.ini index 08d040c813..964f3dd53e 100644 --- a/tox.ini +++ b/tox.ini @@ -102,9 +102,7 @@ commands = env ELEMENTS_DIR=elements dib-lint [testenv:nodepool] commands = - nodepool -c {toxinidir}/nodepool/nodepool.yaml config-validate - nodepool -c {toxinidir}/nodepool/nl01.openstack.org.yaml config-validate - nodepool -c {toxinidir}/nodepool/nl02.openstack.org.yaml config-validate + {toxinidir}/tools/nodepool-validate.sh [testenv:add-projects-to-main] basepython = python3