Change V1 to use the manifest builder and new registry data model
This commit is contained in:
parent
65d5be23c7
commit
4520f9e842
12 changed files with 291 additions and 689 deletions
|
@ -137,11 +137,11 @@ def build_v1_index_specs():
|
|||
IndexV1TestSpec(url_for('v1.put_image_layer', image_id=FAKE_IMAGE_ID),
|
||||
PUBLIC_REPO, 403, 403, 403, 403, 403).set_method('PUT'),
|
||||
IndexV1TestSpec(url_for('v1.put_image_layer', image_id=FAKE_IMAGE_ID),
|
||||
PRIVATE_REPO, 403, 403, 403, 403, 404).set_method('PUT'),
|
||||
PRIVATE_REPO, 403, 403, 403, 403, 400).set_method('PUT'),
|
||||
IndexV1TestSpec(url_for('v1.put_image_layer', image_id=FAKE_IMAGE_ID),
|
||||
ORG_REPO, 403, 403, 403, 403, 404).set_method('PUT'),
|
||||
ORG_REPO, 403, 403, 403, 403, 400).set_method('PUT'),
|
||||
IndexV1TestSpec(url_for('v1.put_image_layer', image_id=FAKE_IMAGE_ID),
|
||||
ANOTHER_ORG_REPO, 403, 403, 403, 403, 404).set_method('PUT'),
|
||||
ANOTHER_ORG_REPO, 403, 403, 403, 403, 400).set_method('PUT'),
|
||||
|
||||
IndexV1TestSpec(url_for('v1.put_image_checksum',
|
||||
image_id=FAKE_IMAGE_ID),
|
||||
|
@ -205,11 +205,11 @@ def build_v1_index_specs():
|
|||
IndexV1TestSpec(url_for('v1.update_images', repository=PUBLIC_REPO),
|
||||
NO_REPO, 403, 403, 403, 403, 403).set_method('PUT'),
|
||||
IndexV1TestSpec(url_for('v1.update_images', repository=PRIVATE_REPO),
|
||||
NO_REPO, 403, 403, 403, 403, 204).set_method('PUT'),
|
||||
NO_REPO, 403, 403, 403, 403, 400).set_method('PUT'),
|
||||
IndexV1TestSpec(url_for('v1.update_images', repository=ORG_REPO), NO_REPO,
|
||||
403, 403, 403, 403, 204).set_method('PUT'),
|
||||
403, 403, 403, 403, 400).set_method('PUT'),
|
||||
IndexV1TestSpec(url_for('v1.update_images', repository=ANOTHER_ORG_REPO), NO_REPO,
|
||||
403, 403, 403, 403, 204).set_method('PUT'),
|
||||
403, 403, 403, 403, 400).set_method('PUT'),
|
||||
|
||||
IndexV1TestSpec(url_for('v1.get_repository_images',
|
||||
repository=PUBLIC_REPO),
|
||||
|
|
Reference in a new issue