Remove migration (temporarily), fix a broken test, and make the aggregate size calculation use the entire image ancestry (for now).
This commit is contained in:
parent
b8d88c0f4e
commit
44ff85d044
3 changed files with 9 additions and 26 deletions
|
@ -58,7 +58,7 @@ class TestImageTree(unittest.TestCase):
|
|||
|
||||
result = tree.find_longest_path(base_image.id, checker)
|
||||
self.assertEquals(4, len(result))
|
||||
self.assertEquals('v2.0', tree.tag_containing_image(result[-1]))
|
||||
self.assertEquals('prod', tree.tag_containing_image(result[-1]))
|
||||
|
||||
def test_filtering(self):
|
||||
all_images = list(model.get_repository_images(NAMESPACE, COMPLEX_REPO))
|
||||
|
@ -88,7 +88,7 @@ class TestImageTree(unittest.TestCase):
|
|||
|
||||
# Only use the first two images. They don't have tags, but the method should
|
||||
# still return the tag that contains them.
|
||||
self.assertEquals('v2.0', tree.tag_containing_image(result[0]))
|
||||
self.assertEquals('staging', tree.tag_containing_image(result[0]))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Reference in a new issue