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) <puerco@chainguard.dev>
  • Loading branch information
puerco committed Dec 1, 2023
1 parent e9fbb8e commit 8436b9b
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
Expand Up @@ -19,9 +19,7 @@ func TestProcessor_ApplyVEX(t *testing.T) {
Name: "alpine",
Version: "3.17",
Metadata: source.StereoscopeImageSourceMetadata{
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
Expand Up @@ -836,9 +836,7 @@ func vexMatches(t *testing.T, ignoredMatches []match.IgnoredMatch, vexStatus vex
pctx := &pkg.Context{
Source: &source.Description{
Metadata: source.StereoscopeImageSourceMetadata{
RepoDigests: []string{
"alpine@sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
},
UserInput: "alpine@sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
},
},
Distro: &linux.Release{},
Expand Down

0 comments on commit 8436b9b

Please sign in to comment.