From 2f9cf6fd5b9707ee3205ccce1468f2754910b3d4 Mon Sep 17 00:00:00 2001 From: hectorj2f Date: Wed, 20 Apr 2022 16:16:34 +0200 Subject: [PATCH] fix: mismatched types int and string in cue policy Signed-off-by: hectorj2f --- ...p-requires-two-signatures-and-two-attestations.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/testdata/cosigned/e2e/cip-requires-two-signatures-and-two-attestations.yaml b/test/testdata/cosigned/e2e/cip-requires-two-signatures-and-two-attestations.yaml index a9c6be67d02..4a497fd5eb1 100644 --- a/test/testdata/cosigned/e2e/cip-requires-two-signatures-and-two-attestations.yaml +++ b/test/testdata/cosigned/e2e/cip-requires-two-signatures-and-two-attestations.yaml @@ -111,20 +111,20 @@ spec: type: cue data: | if len(authorityMatches."keyless-att".attestations) < 2 { - keylessAttestationsErr: "error" - keylessAttestationsErr: "Did not get both keyless attestations" + keylessAttestationsErr: 1 + keylessAttestationsErrMsg: "Did not get both keyless attestations" } if len(authorityMatches."key-att".attestations) < 1 { keyAttestationsErr: 1 - keyAttestationsErr: "Did not get key attestation" + keyAttestationsErrMsg: "Did not get key attestation" } if len(authorityMatches."keyless-signature".signatures) < 1 { keylessSignatureErr: 1 - keylessSignatureErr: "Did not get keyless signature" + keylessSignatureErrMsg: "Did not get keyless signature" } if len(authorityMatches."key-signature".signatures) < 1 { keySignatureErr: 1 - keySignatureErr: "Did not get key signature" + keySignatureErrMsg: "Did not get key signature" } authorityMatches: { "key-att": {