Change tags API endpoint to use new registry model interface

This commit is contained in:
Joseph Schorr 2018-08-22 18:03:26 -04:00
parent 8225c61a1f
commit bc99dd7963
7 changed files with 148 additions and 841 deletions

View file

@ -2738,14 +2738,14 @@ class TestRestoreTag(ApiTestCase):
self.postResponse(RestoreTag,
params=dict(repository=ADMIN_ACCESS_USER + '/history', tag='invalidtag'),
data=dict(image='invalid_image'), expected_code=400)
data=dict(image='invalid_image'), expected_code=404)
def test_restoretag_invalidimage(self):
self.login(ADMIN_ACCESS_USER)
self.postResponse(RestoreTag,
params=dict(repository=ADMIN_ACCESS_USER + '/history', tag='latest'),
data=dict(image='invalid_image'), expected_code=400)
data=dict(image='invalid_image'), expected_code=404)
def test_restoretag_invalidmanifest(self):
self.login(ADMIN_ACCESS_USER)