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
|
@ -17,6 +17,7 @@ class V2ProtocolSteps(Enum):
|
|||
PUT_MANIFEST = 'put-manifest'
|
||||
MOUNT_BLOB = 'mount-blob'
|
||||
CATALOG = 'catalog'
|
||||
LIST_TAGS = 'list-tags'
|
||||
|
||||
|
||||
class V2Protocol(RegistryProtocol):
|
||||
|
@ -375,7 +376,8 @@ class V2Protocol(RegistryProtocol):
|
|||
params['n'] = page_size
|
||||
|
||||
while True:
|
||||
response = self.conduct(session, 'GET', url, headers=headers, params=params)
|
||||
response = self.conduct(session, 'GET', url, headers=headers, params=params,
|
||||
expected_status=(200, expected_failure, V2ProtocolSteps.LIST_TAGS))
|
||||
data = response.json()
|
||||
|
||||
assert len(data['tags']) <= page_size
|
||||
|
|
Reference in a new issue