replace md5 with sha256

This commit is contained in:
Tomas Kopecek 2020-06-23 10:25:01 +02:00
parent a893e8bf2b
commit 50bcb6f3bc
10 changed files with 60 additions and 60 deletions

View file

@ -6,9 +6,9 @@
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "19a674d997af7098a444b60d7b51cee6",
"checksum": "ca9dd08a0b9f81b209c3ac768a7d1ca27973cfd920095e2dc3df5159f752039e",
"filename": "tdl-x86_64.xml",
"checksum_type": 0,
"checksum_type": 2,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1001,
@ -30,9 +30,9 @@
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "a5114a20d790cf17eca1b1115a4546f8",
"checksum": "4083a6838c1b6895df27a69373f4c527a9722c045bccc08efe064f105d566c77",
"filename": "image.ks",
"checksum_type": 0,
"checksum_type": 2,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1002,
@ -54,9 +54,9 @@
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "9828cf75d9d17ac8e79e53ed71c6a71c",
"checksum": "963a4396be7072012370db407b9ea3633b09dbe45926bb2ef912a86baac1d7b7",
"filename": "image-base.ks",
"checksum_type": 0,
"checksum_type": 2,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1003,
@ -78,9 +78,9 @@
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "f601c0f647d7cdd4c92aa511876f8533",
"checksum": "9f4dea3a4b64def36be0119fef4d3f6e62eb6e316bf5749acddb134596faf5e9",
"filename": "foo-x86_64.xml",
"checksum_type": 0,
"checksum_type": 2,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1004,
@ -102,9 +102,9 @@
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "84547200ef5002292ecdd50c62de518e",
"checksum": "e3ff2b57824a7ee9201786a624c54057de1b279fbcf6782fe25898d657ebd354",
"filename": "my-image-7.4.2-2.x86_64.ova",
"checksum_type": 0,
"checksum_type": 2,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1005,

View file

@ -20,3 +20,7 @@ class TestGetVerifyClass(unittest.TestCase):
def test_get_verify_class_is_adler32(self):
kojihub.get_verify_class('adler32') is adler32_constructor
def test_get_verify_class_is_sha256(self):
kojihub.get_verify_class('sha256') is hashlib.sha256