mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-02 04:48:14 +00:00
Add test for --status FAIL
This commit is contained in:
parent
8f174192ea
commit
e2cf08aaad
@ -768,6 +768,11 @@ func TestWriteStdoutOutputStatusList(t *testing.T) {
|
|||||||
statusList: "PASS,INFO",
|
statusList: "PASS,INFO",
|
||||||
notContains: []string{"WARN", "FAIL"},
|
notContains: []string{"WARN", "FAIL"},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "statusList FAIL",
|
||||||
|
statusList: "FAIL",
|
||||||
|
notContains: []string{"INFO", "WARN", "PASS"},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "statusList empty",
|
name: "statusList empty",
|
||||||
statusList: "",
|
statusList: "",
|
||||||
|
Loading…
Reference in New Issue
Block a user