Skip to content

Commit 995c68c

Browse files
committed
Fix too long of endorsements test to ensure it fails when endorsements are too long.
1 parent 83c92d9 commit 995c68c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/npm_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,11 +848,12 @@ def corrupt_value(value: str):
848848
)
849849

850850
# Test too long an endorsement
851+
b64_pem_separator = "LS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ"
851852
r = c.post(
852853
"/app/verifySnpAttestation",
853854
{
854855
"evidence": primary_quote_info["raw"],
855-
"endorsements": primary_quote_info["endorsements"] + "1",
856+
"endorsements": primary_quote_info["endorsements"] + b64_pem_separator,
856857
"uvm_endorsements": primary_quote_info["uvm_endorsements"],
857858
},
858859
)

0 commit comments

Comments
 (0)