Make the IDs in the test DB the proper length.

This commit is contained in:
yackob03 2013-10-18 20:35:14 -04:00
parent dc557b9153
commit 3ea0d5cf20
67 changed files with 2 additions and 2 deletions

View file

@ -26,14 +26,14 @@ REFERENCE_DATE = datetime(2013, 6, 23)
def __gen_checksum(image_id):
h = hashlib.md5(image_id)
return 'tarsum+sha256:' + h.hexdigest()
return 'tarsum+sha256:' + h.hexdigest() + h.hexdigest()
def __gen_image_id(repo, image_num):
str_to_hash = "%s/%s/%s" % (repo.namespace, repo.name, image_num)
h = hashlib.md5(str_to_hash)
return h.hexdigest()
return h.hexdigest() + h.hexdigest()
global_image_num = [0]

Binary file not shown.