Skip to content

Commit

Permalink
Fix cyclonedx marshal test from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Octogonapus committed Feb 28, 2024
1 parent 7cd5eeb commit f7be231
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pkg/sbom/cyclonedx/marshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package cyclonedx_test

import (
"context"
"github.com/package-url/packageurl-go"
"testing"
"time"

"github.com/package-url/packageurl-go"

cdx "github.com/CycloneDX/cyclonedx-go"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/vulnerability"
v1 "github.com/google/go-containerregistry/pkg/v1"
Expand Down Expand Up @@ -2151,11 +2152,14 @@ func TestMarshaler_Marshal(t *testing.T) {
Version: 1,
Metadata: &cdx.Metadata{
Timestamp: "2021-08-25T12:20:30+00:00",
Tools: &[]cdx.Tool{
{
Name: "trivy",
Vendor: "aquasecurity",
Version: "dev",
Tools: &cdx.ToolsChoice{
Components: &[]cdx.Component{
{
Type: cdx.ComponentTypeApplication,
Name: "trivy",
Group: "aquasecurity",
Version: "dev",
},
},
},
Component: &cdx.Component{
Expand Down

0 comments on commit f7be231

Please sign in to comment.