Migrate data back to Image in preparation for v2
This commit is contained in:
parent
abb1486a96
commit
b56de3355c
7 changed files with 72 additions and 6 deletions
|
@ -68,8 +68,14 @@ class TestGarbageCollection(unittest.TestCase):
|
|||
if not image_id in image_map:
|
||||
image_map[image_id] = self.createImage(image_id, repo, namespace)
|
||||
|
||||
v1_metadata = {
|
||||
'id': image_id,
|
||||
}
|
||||
if parent is not None:
|
||||
v1_metadata['parent'] = parent.docker_image_id
|
||||
|
||||
# Set the ancestors for the image.
|
||||
parent = model.image.set_image_metadata(image_id, namespace, name, '', '', '',
|
||||
parent = model.image.set_image_metadata(image_id, namespace, name, '', '', '', v1_metadata,
|
||||
parent=parent)
|
||||
|
||||
# Set the tag for the image.
|
||||
|
|
Reference in a new issue