Skip to content

Commit

Permalink
feat: kubernetes bill of materials
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan committed Jun 11, 2023
1 parent 7740190 commit 52be4a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/sbom/cyclonedx/marshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ func TestMarshaler_Marshal(t *testing.T) {
}

func TestMarshaler_Kbom(t *testing.T) {
var directDepRefs []string
noDepRefs := []string{}
tests := []struct {
name string
inputReport k8s.Report
Expand Down Expand Up @@ -1574,7 +1574,7 @@ func TestMarshaler_Kbom(t *testing.T) {
},
{
Ref: "3ff14136-e09f-4df9-80ea-000000000005",
Dependencies: &directDepRefs,
Dependencies: &noDepRefs,
},
{
Ref: "3ff14136-e09f-4df9-80ea-000000000006",
Expand All @@ -1585,15 +1585,15 @@ func TestMarshaler_Kbom(t *testing.T) {
},
{
Ref: "pkg:golang/containerd@1.5.2",
Dependencies: &directDepRefs,
Dependencies: &noDepRefs,
},
{
Ref: "pkg:golang/kubelet@1.21.1",
Dependencies: &directDepRefs,
Dependencies: &noDepRefs,
},
{
Ref: "pkg:oci/kube-apiserver@sha256:18e61c783b41758dd391ab901366ec3546b26fae00eef7e223d1f94da808e02f?repository_url=k8s.gcr.io%2Fkube-apiserver&arch=",
Dependencies: &directDepRefs,
Dependencies: &noDepRefs,
},
},
},
Expand Down

0 comments on commit 52be4a9

Please sign in to comment.