Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: laurentsimon <laurentsimon@google.com>
  • Loading branch information
laurentsimon committed Apr 19, 2023
1 parent c25767a commit 4ce0614
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cli/slsa-verifier/main_regression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func Test_runVerifyGHAArtifactPath(t *testing.T) {

// Validate against test's expected builderID, if provided.
if tt.outBuilderID != "" {
if err := outBuilderID.Matches(tt.outBuilderID, false); err != nil {
if err := outBuilderID.MatchesLoose(tt.outBuilderID, false); err != nil {
t.Errorf(fmt.Sprintf("matches failed (1): %v", err))
}
}
Expand Down Expand Up @@ -655,7 +655,7 @@ func Test_runVerifyGHAArtifactPath(t *testing.T) {
// resulting builderID returned by the provenance check.
// Since this a GHA and the certificate ID is in long form,
// we pass `allowRef = true`.
if err := outBuilderID.Matches(*bid, true); err != nil {
if err := outBuilderID.MatchesLoose(*bid, true); err != nil {
t.Errorf(fmt.Sprintf("matches failed (2): %v", err))
}
}
Expand Down Expand Up @@ -814,7 +814,7 @@ func Test_runVerifyGHAArtifactImage(t *testing.T) {

// Validate against test's expected builderID, if provided.
if tt.outBuilderID != "" {
if err := outBuilderID.Matches(tt.outBuilderID, false); err != nil {
if err := outBuilderID.MatchesLoose(tt.outBuilderID, false); err != nil {
t.Errorf(fmt.Sprintf("matches failed: %v", err))
}
}
Expand All @@ -827,7 +827,7 @@ func Test_runVerifyGHAArtifactImage(t *testing.T) {
// resulting builderID returned by the provenance check.
// Since this a GHA and the certificate ID is in long form,
// we pass `allowRef = true`.
if err := outBuilderID.Matches(*bid, true); err != nil {
if err := outBuilderID.MatchesLoose(*bid, true); err != nil {
t.Errorf(fmt.Sprintf("matches failed: %v", err))
}
}
Expand Down Expand Up @@ -1283,13 +1283,13 @@ func Test_runVerifyGCBArtifactImage(t *testing.T) {

// Validate against test's expected builderID, if provided.
if tt.outBuilderID != "" {
if err := outBuilderID.Matches(tt.outBuilderID, false); err != nil {
if err := outBuilderID.MatchesLoose(tt.outBuilderID, false); err != nil {
t.Errorf(fmt.Sprintf("matches failed: %v", err))
}
}

// Validate against builderID we generated automatically.
if err := outBuilderID.Matches(bid, false); err != nil {
if err := outBuilderID.MatchesLoose(bid, false); err != nil {
t.Errorf(fmt.Sprintf("matches failed: %v", err))
}
}
Expand Down

0 comments on commit 4ce0614

Please sign in to comment.