Merge pull request #731 from coreos-inc/unicodetest
Add a unicode test to make sure we don't break
This commit is contained in:
commit
b7f8fc86f4
1 changed files with 13 additions and 0 deletions
|
@ -440,6 +440,19 @@ class RegistryTests(RegistryTestCase):
|
|||
# org.
|
||||
self.do_pull('buynlarge', 'newrepo', 'devtable', 'password')
|
||||
|
||||
|
||||
def test_push_unicode_metadata(self):
|
||||
self.conduct_api_login('devtable', 'password')
|
||||
|
||||
images = [{
|
||||
'id': 'onlyimagehere',
|
||||
'comment': 'Pawe\xc5\x82 Kami\xc5\x84ski <pawel.kaminski@codewise.com>'.decode('utf-8')
|
||||
}]
|
||||
|
||||
self.do_push('devtable', 'unicodetest', 'devtable', 'password', images)
|
||||
self.do_pull('devtable', 'unicodetest', 'devtable', 'password')
|
||||
|
||||
|
||||
def test_tag_validation(self):
|
||||
image_id = 'onlyimagehere'
|
||||
images = [{
|
||||
|
|
Reference in a new issue