test(release): an SSH-signed pre-flag claim reads the opt-in platform keys as false
_claim_metadata now returns the claim with includeMacosIntel/includeTermux filled in as false when the tag predates them; the signed-claim admission test asserts that normalized shape.
This commit is contained in:
@@ -75,4 +75,6 @@ def test_a_signed_claim_tag_is_read_through_the_jobs_own_git_read(tmp_path, monk
|
||||
assert "-----BEGIN SSH SIGNATURE-----" in raw
|
||||
with pytest.raises(json.JSONDecodeError): # the shape that failed admission
|
||||
json.loads(raw)
|
||||
assert _claim_metadata(raw, version="0.21.5", attempt=19, commit="3" * 40) == record
|
||||
# The record predates the opt-in platform keys, which read as false.
|
||||
assert _claim_metadata(raw, version="0.21.5", attempt=19, commit="3" * 40) == {
|
||||
**record, "includeMacosIntel": False, "includeTermux": False}
|
||||
|
||||
Reference in New Issue
Block a user