Fix 4 bytes utf8 char test comment for create images

This commit fixes the 4 bytes utf8 char test comment. Because the bug
1370954 was already fixed. However, nova and glance don't accept a 4
bytes utf8 char, yet. And also, the URL[1] in the comment isn't correct,
either, anymore. So this commit also fixes the URL, too.

[1] http://www.fileformat.info/info/unicode/char/1F4A9/index.htm

Related-Bug: #1370954
Change-Id: I19bba38e11a3ab9d97a0caa0f73c14772e01c1bf
This commit is contained in:
Masayuki Igawa 2017-05-02 17:48:00 +09:00 committed by Masayuki Igawa
parent a863236795
commit 00c448720e
No known key found for this signature in database
GPG Key ID: 290F53EDC899BF89
1 changed files with 4 additions and 4 deletions

View File

@ -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'])