Skip to content

Commit

Permalink
Switch unit+integration tests from RepoDigests to UserInput
Browse files Browse the repository at this point in the history
As we now delegate the generation of identifiers to the openvex libraries,
we pass the user input string verbatim instead of using the stereoscope
reference in the tests.

Signed-off-by: Adolfo Garcia Veytia (puerco) <[email protected]>
  • Loading branch information
puerco authored and wagoodman committed Jun 11, 2024
1 parent 01b6623 commit 9f91ffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions grype/vex/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ func TestProcessor_ApplyVEX(t *testing.T) {
Name: "alpine",
Version: "3.17",
Metadata: source.ImageMetadata{
RepoDigests: []string{
"alpine@sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126",
},
UserInput: "alpine@sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126",
},
},
Distro: nil,
Expand Down
4 changes: 1 addition & 3 deletions test/integration/match_by_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,7 @@ func vexMatches(t *testing.T, ignoredMatches []match.IgnoredMatch, vexStatus vex
pctx := &pkg.Context{
Source: &source.Description{
Metadata: source.ImageMetadata{
RepoDigests: []string{
"alpine@sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
},
UserInput: "alpine@sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
},
},
Distro: &linux.Release{},
Expand Down

0 comments on commit 9f91ffd

Please sign in to comment.