Fix uuid to UUID in expected error messages

This commit c5a738524264f76266fe9435856e425f8a5ece72 into Ironic
changed lower case uuid to upper case UUID in the error messages. Some
tests in ironicclient relied on matching a error message output and were
broken by this change.

Change-Id: Ib0364d41773042f2953652c56dded5e1bb9844e6
This commit is contained in:
Sam Betts 2016-08-03 12:09:02 +01:00
parent d39cc9846b
commit 87f1a69251
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class NegativeChassisCreateTestsIronicClient(base.FunctionalTestBase):
4) check that command using --uuid argument triggers an exception
"""
invalid_uuid = data_utils.rand_uuid()[:-1]
ex_text = r'Expected a uuid but received {0}'.format(invalid_uuid)
ex_text = r'Expected a UUID but received {0}'.format(invalid_uuid)
six.assertRaisesRegex(self, exceptions.CommandFailed, ex_text,
self.create_chassis,
params='-u {0}'.format(invalid_uuid))