Add ability to tag images from the UI, including moving existing tags to different images
This commit is contained in:
parent
9371c70941
commit
20ad666308
11 changed files with 581 additions and 200 deletions
|
@ -68,6 +68,9 @@ UPDATE_REPO_DETAILS = {
|
|||
'description': 'A new description',
|
||||
}
|
||||
|
||||
CHANGE_TAG_IMAGE_DETAILS = {
|
||||
'image': FAKE_IMAGE_ID
|
||||
}
|
||||
|
||||
class TestSpec(object):
|
||||
def __init__(self, url, anon_code=401, no_access_code=403, read_code=403,
|
||||
|
@ -425,6 +428,12 @@ def build_specs():
|
|||
TestSpec(url_for('api.list_repo_logs', repository=PRIVATE_REPO)),
|
||||
|
||||
TestSpec(url_for('api.list_org_logs', orgname=ORG)),
|
||||
|
||||
TestSpec(url_for('api.delete_full_tag', repository=PRIVATE_REPO, tag='latest'), 403, 403, 403, 204)
|
||||
.set_method('DELETE'),
|
||||
|
||||
TestSpec(url_for('api.change_tag_image', repository=PRIVATE_REPO, tag='latest'), 403, 403, 403, 404)
|
||||
.set_method('PUT').set_data_from_obj(CHANGE_TAG_IMAGE_DETAILS),
|
||||
]
|
||||
|
||||
|
||||
|
|
Reference in a new issue