From 6892b116035f1dd506bb75750f359f11e5513dbd Mon Sep 17 00:00:00 2001
From: Ian Wienand <iwienand@redhat.com>
Date: Tue, 17 Mar 2015 11:06:23 +1100
Subject: [PATCH] Add nodepool config-validation environment

Add validation test for the nodepool configuration.  We get nodepool
directly from git so we can always handle the latest syntax changes
automatically.

Change-Id: I5d58648bca160d8afc81aae3d8daf0c7bd01c976
Depends-On: I250ea4959740cfc4650e9057caba09ae7bc25768
---
 test-requirements.txt | 1 +
 tox.ini               | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/test-requirements.txt b/test-requirements.txt
index 4d785cf785..1c3ec263f6 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -2,3 +2,4 @@ hacking>=0.5.6,<0.8
 Sphinx>=1.1.2,<1.2
 oslosphinx
 bashate>=0.2
+-e git://git.openstack.org/openstack-infra/nodepool#egg=nodepool
diff --git a/tox.ini b/tox.ini
index ec345b00a4..b311b321fd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,3 +25,6 @@ select = H231
 
 [testenv:bashate]
 commands = {toxinidir}/tools/run-bashate.sh
+
+[testenv:nodepool]
+commands = nodepool -c {toxinidir}/modules/openstack_project/templates/nodepool/nodepool.yaml.erb config-validate
\ No newline at end of file