From 86aac994bb34f956a2cb095481cc57cc4410acc1 Mon Sep 17 00:00:00 2001 From: Balazs Gibizer Date: Tue, 17 Jul 2018 13:24:54 +0200 Subject: [PATCH] Fix a newly introduced UUID warning in the unit test We again have places in our test where an UUID field is initialized to a non UUID value. This patch fixes the remaning places. A subsequent patch will force the UUID warning in our tests to error to ensure no new violations are introduced. Change-Id: I7f66e85453d72b35822ceb84d5dbd25324755476 --- nova/tests/unit/conductor/test_conductor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/tests/unit/conductor/test_conductor.py b/nova/tests/unit/conductor/test_conductor.py index d854529b9d..a9ab3bd998 100644 --- a/nova/tests/unit/conductor/test_conductor.py +++ b/nova/tests/unit/conductor/test_conductor.py @@ -352,8 +352,8 @@ class _BaseTaskTestCase(object): rebuild_args = {'new_pass': 'admin_password', 'injected_files': 'files_to_inject', - 'image_ref': 'image_ref', - 'orig_image_ref': 'orig_image_ref', + 'image_ref': uuids.image_ref, + 'orig_image_ref': uuids.orig_image_ref, 'orig_sys_metadata': 'orig_sys_meta', 'bdms': {}, 'recreate': False,