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:
parent
7aaad2f963
commit
01762e2249
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user