Add a registry tests for numeric tags

This commit is contained in:
Joseph Schorr 2016-10-03 16:06:49 +03:00
parent 218962e480
commit 95b7b47501

View file

@ -1143,6 +1143,13 @@ class V1RegistryTests(V1RegistryPullMixin, V1RegistryPushMixin, RegistryTestsMix
class V2RegistryTests(V2RegistryPullMixin, V2RegistryPushMixin, RegistryTestsMixin,
RegistryTestCaseMixin, LiveServerTestCase):
""" Tests for V2 registry. """
def test_numeric_tag(self):
# Push a new repository.
self.do_push('public', 'newrepo', 'public', 'password', tag_name='1234')
# Pull the repository.
self.do_pull('public', 'newrepo', 'public', 'password', manifest_id='1234')
def test_label_invalid_manifest(self):
images = [{
'id': 'someid',