Fix issue accessing a null tagmanifest under a tag in a repository

This commit is contained in:
Joseph Schorr 2018-07-25 15:26:48 -04:00
parent cf8e71f1e8
commit c34eacb4fa
4 changed files with 41 additions and 2 deletions

View file

@ -34,6 +34,23 @@ def test_basic_push_pull(pusher, puller, basic_images, liveserver_session, app_r
credentials=credentials)
def test_no_tag_manifests(pusher, puller, basic_images, liveserver_session, app_reloader,
liveserver, registry_server_executor):
""" Test: Basic pull without manifests. """
credentials = ('devtable', 'password')
# Push a new repository.
pusher.push(liveserver_session, 'devtable', 'newrepo', 'latest', basic_images,
credentials=credentials)
# Delete all tag manifests.
registry_server_executor.on(liveserver).delete_manifests()
# Ensure we can still pull.
puller.pull(liveserver_session, 'devtable', 'newrepo', 'latest', basic_images,
credentials=credentials)
def test_basic_push_pull_by_manifest(manifest_protocol, basic_images, liveserver_session,
app_reloader):
""" Test: Basic push and pull-by-manifest of an image to a new repository. """