Add test for trying to pull the tags of a repository under a disabled namespace
This commit is contained in:
parent
fdd0db7a7f
commit
2b34ae74fe
2 changed files with 15 additions and 1 deletions
|
@ -779,6 +779,18 @@ def test_tags(username, namespace, repository, page_size, v2_protocol, liveserve
|
|||
assert set([r for r in results]) == set(expected_tags)
|
||||
|
||||
|
||||
def test_tags_disabled_namespace(v2_protocol, basic_images, liveserver_session, app_reloader,
|
||||
liveserver, registry_server_executor):
|
||||
credentials = ('devtable', 'password')
|
||||
|
||||
# Disable the buynlarge namespace.
|
||||
registry_server_executor.on(liveserver).disable_namespace('buynlarge')
|
||||
|
||||
# Try to retrieve the tags and ensure it fails.
|
||||
v2_protocol.tags(liveserver_session, credentials=credentials, namespace='buynlarge',
|
||||
repo_name='orgrepo', expected_failure=Failures.NAMESPACE_DISABLED)
|
||||
|
||||
|
||||
def test_pull_torrent(pusher, basic_images, liveserver_session, liveserver,
|
||||
registry_server_executor, app_reloader):
|
||||
""" Test: Retrieve a torrent for pulling the image via the Quay CLI. """
|
||||
|
|
Reference in a new issue