feat: send digest and honor existing CID on global stamp
This commit is contained in:
parent
a6a1a70ee4
commit
a1cd93e2ce
1 changed files with 24 additions and 3 deletions
|
|
@ -60,7 +60,10 @@ async def test_global_stamp_posts_hash_sync_and_maps_receipt():
|
|||
method, url, payload, headers = http.calls[0]
|
||||
assert method == "POST"
|
||||
assert url == "https://api.veraetime.net/api/timestamp"
|
||||
assert payload == {"data": SHA256_EMPTY, "hashAlg": "SHA256"}
|
||||
assert payload["data"] == SHA256_EMPTY
|
||||
assert payload["digest"] == SHA256_EMPTY
|
||||
assert payload["hashAlg"] == "SHA256"
|
||||
assert payload["restamp"] is False
|
||||
assert headers["Authorization"] == "Bearer secret"
|
||||
assert rec.scope == "global"
|
||||
assert rec.receipt_id == "job-1"
|
||||
|
|
|
|||
Loading…
Reference in a new issue