Fixing of creating of images for rally verify

We incorrectly pass data to the method.
Closes-bug: #1682346

Change-Id: I63c2c61d44d8eb94f74591f5b464ae25a13b041d
This commit is contained in:
Evgeny Sikachev 2017-04-13 10:10:28 +04:00
parent 7aaad2f963
commit 01762e2249
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ class TempestContext(context.VerifierContext):
}
LOG.debug("Creating image '%s'." % params["image_name"])
image_service = image.Image(self.clients)
image_obj = image_service.create_image(params)
image_obj = image_service.create_image(**params)
LOG.debug("Image '%s' (ID = %s) has been "
"successfully created!" % (image_obj.name, image_obj.id))
self._created_images.append(image_obj)

View File

@ -229,7 +229,7 @@ class TempestContextTestCase(test.TestCase):
"disk_format": CONF.tempest.img_disk_format,
"image_name": mock.ANY,
"visibility": "public"}
client.create_image.assert_called_once_with(params)
client.create_image.assert_called_once_with(**params)
def test__discover_or_create_flavor_when_flavor_exists(self):
client = self.context.clients.nova()