Skip to content

Commit

Permalink
add test with real relevant sbom
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
  • Loading branch information
matthyx committed Mar 30, 2023
1 parent 2c40e73 commit 784249a
Show file tree
Hide file tree
Showing 6 changed files with 87,559 additions and 173 deletions.
4 changes: 2 additions & 2 deletions adapters/v1/grype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ func Test_grypeAdapter_ScanSBOM(t *testing.T) {
sbom: domain.SBOM{
ID: "927669769708707a6ec583b2f4f93eeb4d5b59e27d793a6e99134e505dac6c3c",
SBOMCreatorVersion: "TODO",
Content: fileToSBOM("testdata/filtered-sbom.json"),
Content: fileToSBOM("testdata/nginx-filtered-sbom.json"),
},
format: string(fileContent("testdata/filtered-cve.format.json")),
format: string(fileContent("testdata/nginx-filtered-cve.format.json")),
},
}
go http.ListenAndServe(":8000", http.FileServer(http.Dir("testdata")))
Expand Down
166 changes: 0 additions & 166 deletions adapters/v1/testdata/filtered-sbom.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
}
},
"distro": {
"name": "",
"version": "",
"idLike": null
"name": "debian",
"version": "9",
"idLike": [
"debian"
]
},
"descriptor": {
"name": "grype",
Expand All @@ -34,4 +36,4 @@
"error": null
}
}
}
}
Loading

0 comments on commit 784249a

Please sign in to comment.