summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-19 05:27:23 +0000
committerGerrit Code Review <review@openstack.org>2017-06-19 05:27:24 +0000
commitc0369ce7e171bc98ed428a4c3dd726c89b1a4a8b (patch)
tree03173112d67d492e3583511a62b616a5d22fe659
parentd1fb3e82fd413c1f10b386db0f2a162dbf907395 (diff)
parent00c448720e63d1075cbff2b3f26b810c3cd648af (diff)
Merge "Fix 4 bytes utf8 char test comment for create images"
-rw-r--r--tempest/api/compute/images/test_images_oneserver.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tempest/api/compute/images/test_images_oneserver.py b/tempest/api/compute/images/test_images_oneserver.py
index 83447b6..5987d39 100644
--- a/tempest/api/compute/images/test_images_oneserver.py
+++ b/tempest/api/compute/images/test_images_oneserver.py
@@ -80,11 +80,11 @@ class ImagesOneServerTestJSON(base.BaseV2ComputeTest):
80 @decorators.idempotent_id('3b7c6fe4-dfe7-477c-9243-b06359db51e6') 80 @decorators.idempotent_id('3b7c6fe4-dfe7-477c-9243-b06359db51e6')
81 def test_create_image_specify_multibyte_character_image_name(self): 81 def test_create_image_specify_multibyte_character_image_name(self):
82 # prefix character is: 82 # prefix character is:
83 # http://www.fileformat.info/info/unicode/char/1F4A9/index.htm 83 # http://unicode.org/cldr/utility/character.jsp?a=20A1
84 84
85 # We use a string with 3 byte utf-8 character due to bug 85 # We use a string with 3 byte utf-8 character due to nova/glance which
86 # #1370954 in glance which will 500 if mysql is used as the 86 # will return 400(Bad Request) if we attempt to send a name which has
87 # backend and it attempts to store a 4 byte utf-8 character 87 # 4 byte utf-8 character.
88 utf8_name = data_utils.rand_name(b'\xe2\x82\xa1'.decode('utf-8')) 88 utf8_name = data_utils.rand_name(b'\xe2\x82\xa1'.decode('utf-8'))
89 body = self.client.create_image(self.server_id, name=utf8_name) 89 body = self.client.create_image(self.server_id, name=utf8_name)
90 image_id = data_utils.parse_image_id(body.response['location']) 90 image_id = data_utils.parse_image_id(body.response['location'])