Skip to content

Commit 225a452

Browse files
committed
Update tests for notation 1.2
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 39c0c12 commit 225a452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/ocirepository_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,12 +1746,12 @@ func TestOCIRepository_reconcileSource_verifyOCISourceTrustPolicyNotation(t *tes
17461746
usePolicyJson: true,
17471747
policyJson: "{}",
17481748
wantErr: true,
1749-
wantErrMsg: "trust policy document is missing or has empty version, it must be specified",
1749+
wantErrMsg: "trust policy document has empty version",
17501750
want: sreconcile.ResultEmpty,
17511751
assertConditions: []metav1.Condition{
17521752
*conditions.TrueCondition(meta.ReconcilingCondition, meta.ProgressingReason, "building artifact: new revision '<revision>' for '<url>'"),
17531753
*conditions.UnknownCondition(meta.ReadyCondition, meta.ProgressingReason, "building artifact: new revision '<revision>' for '<url>'"),
1754-
*conditions.FalseCondition(sourcev1.SourceVerifiedCondition, sourcev1.VerificationError, "trust policy document is missing or has empty version, it must be specified"),
1754+
*conditions.FalseCondition(sourcev1.SourceVerifiedCondition, sourcev1.VerificationError, "trust policy document has empty version, version must be specified"),
17551755
},
17561756
},
17571757
{

0 commit comments

Comments
 (0)