Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add SPDX JSON format object #584

Merged
merged 10 commits into from
Oct 29, 2021
Prev Previous commit
use explicit golden snapshot
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
  • Loading branch information
wagoodman committed Oct 29, 2021
commit a5223b33d8b1430156d08c5c87308dbf06919b5e
2 changes: 1 addition & 1 deletion internal/formats/spdx22json/encoder_test.go
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ func TestSPDXJSONDirectoryPresenter(t *testing.T) {

func TestSPDXJSONImagePresenter(t *testing.T) {
testImage := "image-simple"
catalog, metadata, distro := testutils.ImageInput(t, testImage)
catalog, metadata, distro := testutils.ImageInput(t, testImage, testutils.FromSnapshot())
testutils.AssertPresenterAgainstGoldenImageSnapshot(t,
format.NewPresenter(encoder, catalog, &metadata, distro, source.SquashedScope),
testImage,