Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/storage_data.py
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | cont3 = { | ||||
"status": "visible", | "status": "visible", | ||||
"ctime": "2019-12-01 00:00:00Z", | "ctime": "2019-12-01 00:00:00Z", | ||||
} | } | ||||
contents = (cont, cont2, cont3) | contents = (cont, cont2, cont3) | ||||
missing_cont = { | missing_cont = { | ||||
"data": b"missing\n", | |||||
"length": 8, | "length": 8, | ||||
"sha1": hash_to_bytes("f9c24e2abb82063a3ba2c44efd2d3c797f28ac90"), | "sha1": hash_to_bytes("f9c24e2abb82063a3ba2c44efd2d3c797f28ac90"), | ||||
"sha1_git": hash_to_bytes("33e45d56f88993aae6a0198013efa80716fd8919"), | "sha1_git": hash_to_bytes("33e45d56f88993aae6a0198013efa80716fd8919"), | ||||
"sha256": hash_to_bytes( | "sha256": hash_to_bytes( | ||||
"6bbd052ab054ef222c1c87be60cd191addedd24cc882d1f5f7f7be61dc61bb3a" | "6bbd052ab054ef222c1c87be60cd191addedd24cc882d1f5f7f7be61dc61bb3a" | ||||
), | ), | ||||
"blake2s256": hash_to_bytes( | "blake2s256": hash_to_bytes( | ||||
"306856b8fd879edb7b6f1aeaaf8db9bbecc993cd7f776c333ac3a782fa5c6eba" | "306856b8fd879edb7b6f1aeaaf8db9bbecc993cd7f776c333ac3a782fa5c6eba" | ||||
), | ), | ||||
"reason": "Content too long", | |||||
"status": "absent", | "status": "absent", | ||||
} | } | ||||
skipped_cont = { | skipped_cont = { | ||||
"length": 1024 * 1024 * 200, | "length": 1024 * 1024 * 200, | ||||
"sha1_git": hash_to_bytes("33e45d56f88993aae6a0198013efa80716fd8920"), | "sha1_git": hash_to_bytes("33e45d56f88993aae6a0198013efa80716fd8920"), | ||||
"sha1": hash_to_bytes("43e45d56f88993aae6a0198013efa80716fd8920"), | "sha1": hash_to_bytes("43e45d56f88993aae6a0198013efa80716fd8920"), | ||||
"sha256": hash_to_bytes( | "sha256": hash_to_bytes( | ||||
▲ Show 20 Lines • Show All 497 Lines • Show Last 20 Lines |