From 476ce6122b3436379092122d601b7328703f862c Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Wed, 5 Aug 2009 17:39:41 +0100 Subject: [PATCH] TestParameterNames: also check nic parameters Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- test/ganeti.constants_unittest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/ganeti.constants_unittest.py b/test/ganeti.constants_unittest.py index e5263d43c..af39955e8 100755 --- a/test/ganeti.constants_unittest.py +++ b/test/ganeti.constants_unittest.py @@ -61,7 +61,9 @@ class TestParameterNames(unittest.TestCase): def testNoDashes(self): for kind, source in [('hypervisor', constants.HVS_PARAMETER_TYPES), - ('backend', constants.BES_PARAMETER_TYPES)]: + ('backend', constants.BES_PARAMETER_TYPES), + ('nic', constants.NICS_PARAMETER_TYPES), + ]: for key in source: self.failUnless(self.VALID_NAME.match(key), "The %s parameter '%s' contains invalid characters" % -- GitLab