1
0
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:
Manuel Tiago Pereira 2021-10-30 10:34:38 +01:00
parent 8f174192ea
commit e2cf08aaad
No known key found for this signature in database
GPG Key ID: 0F7AEBEEEEB5DC0C

View File

@ -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: "",