Merge "Fix 4 bytes utf8 char test comment for create images"
This commit is contained in:
commit
c0369ce7e1
|
@ -80,11 +80,11 @@ class ImagesOneServerTestJSON(base.BaseV2ComputeTest):
|
|||
@decorators.idempotent_id('3b7c6fe4-dfe7-477c-9243-b06359db51e6')
|
||||
def test_create_image_specify_multibyte_character_image_name(self):
|
||||
# prefix character is:
|
||||
# http://www.fileformat.info/info/unicode/char/1F4A9/index.htm
|
||||
# http://unicode.org/cldr/utility/character.jsp?a=20A1
|
||||
|
||||
# We use a string with 3 byte utf-8 character due to bug
|
||||
# #1370954 in glance which will 500 if mysql is used as the
|
||||
# backend and it attempts to store a 4 byte utf-8 character
|
||||
# We use a string with 3 byte utf-8 character due to nova/glance which
|
||||
# will return 400(Bad Request) if we attempt to send a name which has
|
||||
# 4 byte utf-8 character.
|
||||
utf8_name = data_utils.rand_name(b'\xe2\x82\xa1'.decode('utf-8'))
|
||||
body = self.client.create_image(self.server_id, name=utf8_name)
|
||||
image_id = data_utils.parse_image_id(body.response['location'])
|
||||
|
|
Loading…
Reference in New Issue