From 95b7b47501d552b1e0c79b6856ba7c1ca14cb8f1 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 3 Oct 2016 16:06:49 +0300 Subject: [PATCH] Add a registry tests for numeric tags --- test/registry_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/registry_tests.py b/test/registry_tests.py index 9f53894a0..2892d4f7c 100644 --- a/test/registry_tests.py +++ b/test/registry_tests.py @@ -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',