Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ysebyy committed Aug 21, 2024
1 parent 55c53e1 commit fde8cd6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/dtrack/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ func executeSBOMsUpload(t *testing.T, endpoint, apiKey string) error {
t.Fatalf("can't create dependency track client: %s", err)
}

bom := &cdx.BOM{ // Address the error in the new() call.
BOMFormat: "CycloneDX",
Version: 1,
SpecVersion: cdx.SpecVersion(5),
}

payload := updateSBOMsPayload{
Sboms: new(cdx.BOM),
Sboms: bom,
ProjectName: "some-random-project-name",
Tags: []string{"some-random-project-tag"},
}
Expand Down

0 comments on commit fde8cd6

Please sign in to comment.