1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2025-02-07 13:12:56 +00:00

Complete merge where test numbers changes

This commit is contained in:
Liz Rice 2019-04-11 10:21:19 +01:00
parent c887794807
commit 9b034024a7
No known key found for this signature in database
GPG Key ID: 837476CA214296CB

View File

@ -119,8 +119,8 @@ func TestTestExecute(t *testing.T) {
// check for ':' as argument-value separator, with no space between arg and val // check for ':' as argument-value separator, with no space between arg and val
controls.Groups[0].Checks[14], controls.Groups[0].Checks[14],
"2:45 kube-apiserver some-arg:some-val --admission-control=Something ---audit-log-maxage=40", "2:45 kube-apiserver some-arg:some-val --admission-control=Something ---audit-log-maxage=40",
}, },
{ {
controls.Groups[0].Checks[15], controls.Groups[0].Checks[15],
"{\"readOnlyPort\": 15000}", "{\"readOnlyPort\": 15000}",
}, },
@ -169,15 +169,15 @@ func TestTestExecuteExceptions(t *testing.T) {
str string str string
}{ }{
{ {
controls.Groups[0].Checks[22], controls.Groups[0].Checks[23],
"this is not valid json {} at all", "this is not valid json {} at all",
}, },
{ {
controls.Groups[0].Checks[23], controls.Groups[0].Checks[24],
"{\"key\": \"value\"}", "{\"key\": \"value\"}",
}, },
{ {
controls.Groups[0].Checks[24], controls.Groups[0].Checks[25],
"broken } yaml\nenabled: true", "broken } yaml\nenabled: true",
}, },
} }