Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman
2023-11-21 10:18:47 -05:00
parent 9d766c0325
commit 8c1f087fd7
6 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func TestJavaPURLs(t *testing.T) {
// syft anchore/test_images:java-56d52bc -o template -t /tmp/test.templ | grep 'pkg:maven' | sort | uniq >> test/integration/java_purl_test.go
// where the template is:
/*
{{ range .Artifacts}}"{{.Name}}@{{.Version}}":"{{.PURL}}",
{{ range .Packages}}"{{.Name}}@{{.Version}}":"{{.PURL}}",
{{ end }}
*/
// The map was then hand-edited for correctness by comparing to Maven Central.
@@ -37,7 +37,7 @@ func TestPackageOwnershipRelationships(t *testing.T) {
t.Fatalf("unable to decode json doc: %+v", err)
}
if len(doc.ArtifactRelationships) == 0 {
if len(doc.Relationships) == 0 {
t.Errorf("expected to find relationships between packages but found none")
}