1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-19 21:28:07 +00:00
kube-bench/cfg
Simarpreet Singh d12a45bba9 Properly initialize viper library when checking for master components (#434)
* common_test: Add a failing test to show the SISEGV

Signed-off-by: Simarpreet Singh <simar@linux.com>

* common: Go green by fixing isMaster() to instantiate viper

Signed-off-by: Simarpreet Singh <simar@linux.com>

* common: Inject a seam for getBinariesFunc to be patched-in.

Also adds additional tests to showcase unhappy behaviors.

Signed-off-by: Simarpreet Singh <simar@linux.com>

* common_test: Rename TestIsMaster()

Signed-off-by: Simarpreet Singh <simar@linux.com>

* common: init viper with master config

Signed-off-by: Simarpreet Singh <simar@linux.com>

* common: Add a pre-check if valid yaml is passed but doesn't include master.

Also adds additional tests to showcase unhappy behaviors.

Signed-off-by: Simarpreet Singh <simar@linux.com>

* mod: Upgrade viper to v1.4.0

Signed-off-by: Simarpreet Singh <simar@linux.com>

* common: Refactor node only yaml to a file

Signed-off-by: Simarpreet Singh <simar@linux.com>

* common: Log  when master components are not found

Signed-off-by: Simarpreet Singh <simar@linux.com>

* common_test: Refactor subtests into a table

Signed-off-by: Simarpreet Singh <simar@linux.com>
2019-10-14 11:15:08 -04:00
..
1.11 Issue #353: Merges JSON and Exec Params files (#426) 2019-10-14 10:37:10 -04:00
1.13 Issue #353: Merges JSON and Exec Params files (#426) 2019-10-14 10:37:10 -04:00
ocp-3.10 Add [Manual test] to remediation in all the manual tests (#435) 2019-10-09 16:26:02 +01:00
ocp-3.11 Add [Manual test] to remediation in all the manual tests (#435) 2019-10-09 16:26:02 +01:00
config.yaml Issue #353: Merges JSON and Exec Params files (#426) 2019-10-14 10:37:10 -04:00
node_only.yaml Properly initialize viper library when checking for master components (#434) 2019-10-14 11:15:08 -04:00