Skip to content
Snippets Groups Projects
Commit 476ce612 authored by Guido Trotter's avatar Guido Trotter
Browse files

TestParameterNames: also check nic parameters


Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 4c14965f
No related merge requests found
......@@ -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" %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment