Add test for trying to pull the catalog under a disabled namespace
This commit is contained in:
parent
892cc82b6a
commit
fdd0db7a7f
2 changed files with 18 additions and 1 deletions
|
@ -16,6 +16,7 @@ class V2ProtocolSteps(Enum):
|
|||
GET_MANIFEST = 'get-manifest'
|
||||
PUT_MANIFEST = 'put-manifest'
|
||||
MOUNT_BLOB = 'mount-blob'
|
||||
CATALOG = 'catalog'
|
||||
|
||||
|
||||
class V2Protocol(RegistryProtocol):
|
||||
|
@ -421,7 +422,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.CATALOG))
|
||||
data = response.json()
|
||||
|
||||
assert len(data['repositories']) <= page_size
|
||||
|
|
Reference in a new issue