Apply other "get" rule of GET to image v2 client
[GET /resources] methods should be "list_<resource name>s" or
"show_<resource name>", so this patch applies the part of the
rule to image client.
NOTE: This patch renames get_image_file to load_image_file
because the method gets the content of file. So show_image_file
didn't fit to its meaning. In addition, this renames store_image
to store_image_file for consistency.
Partially implements blueprint consistent-service-method-names
Change-Id: I2b354ff7192bea20339c61bedcd2f11eee455381
diff --git a/tempest/api/image/admin/v2/test_images.py b/tempest/api/image/admin/v2/test_images.py
index 83efc7d..1608b76 100644
--- a/tempest/api/image/admin/v2/test_images.py
+++ b/tempest/api/image/admin/v2/test_images.py
@@ -44,7 +44,7 @@
self.addCleanup(self.client.delete_image, image_id)
# upload an image file
image_file = moves.cStringIO(data_utils.random_bytes())
- self.client.store_image(image_id, image_file)
+ self.client.store_image_file(image_id, image_file)
# deactivate image
self.admin_client.deactivate_image(image_id)
body = self.client.show_image(image_id)