From 3dc9ddc6b3c7301ee8c2b9c5fbc0a474e0033b32 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 24 Sep 2018 10:53:24 -0400 Subject: [PATCH] Add an additional multilayer push/pull test --- test/registry/registry_tests.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/registry/registry_tests.py b/test/registry/registry_tests.py index d6fdd8017..a7d178239 100644 --- a/test/registry/registry_tests.py +++ b/test/registry/registry_tests.py @@ -37,6 +37,21 @@ def test_basic_push_pull(pusher, puller, basic_images, liveserver_session, app_r credentials=credentials) +def test_multi_layer_images_push_pull(pusher, puller, multi_layer_images, liveserver_session, + app_reloader): + """ Test: Basic push and pull of a multi-layered image to a new repository. """ + credentials = ('devtable', 'password') + + # Push a new repository. + pusher.push(liveserver_session, 'devtable', 'newrepo', 'latest', multi_layer_images, + credentials=credentials) + + # Pull the repository to verify. + puller.pull(liveserver_session, 'devtable', 'newrepo', 'latest', multi_layer_images, + credentials=credentials) + + + def test_no_tag_manifests(pusher, puller, basic_images, liveserver_session, app_reloader, liveserver, registry_server_executor): """ Test: Basic pull without manifests. """