Merge pull request #731 from coreos-inc/unicodetest

Add a unicode test to make sure we don't break
This commit is contained in:
Jimmy Zelinskie 2015-10-27 17:55:46 -04:00
commit b7f8fc86f4

View file

@ -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 = [{