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