Skip to content

Commit

Permalink
feat: k8s intrusive flag support
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 Apr 26, 2024
1 parent f8b7001 commit 224322f
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions pkg/k8s/report/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ func Test_separateMisconfigReports(t *testing.T) {
scanners types.Scanners
expectedReports []Report
}{
/*{
{
name: "Config, Rbac, and Infra Reports",
k8sReport: k8sReport,
scanners: types.Scanners{
Expand Down Expand Up @@ -558,7 +558,7 @@ func Test_separateMisconfigReports(t *testing.T) {
expectedReports: []Report{
{Resources: []Resource{{Kind: "Role"}}},
},
},*/
},
{
name: "Config Report Only",
k8sReport: k8sReport,
Expand All @@ -577,14 +577,24 @@ func Test_separateMisconfigReports(t *testing.T) {
},
},
},
/* {
name: "Infra Report Only",
k8sReport: k8sReport,
scanners: types.Scanners{types.MisconfigScanner},
{
name: "Infra Report Only",
k8sReport: k8sReport,
scanners: types.Scanners{types.MisconfigScanner},
expectedReports: []Report{
{Resources: []Resource{{Kind: "Pod"}}},
{
Resources: []Resource{
{Kind: "Deployment"},
{Kind: "StatefulSet"},
},
},
{
Resources: []Resource{
{Kind: "Pod"},
},
},
},
},*/
},

// TODO: add vuln only
// TODO: add secret only
Expand Down

0 comments on commit 224322f

Please sign in to comment.