mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
Previously when there was a typo in a test file name, we silently failed. This commit makes the test explicitly fail if a test data file was not found. Signed-off-by: Vlad Klokun <vklokun@protonmail.ch>
Kubescape core package
// initialize kubescape
ks := core.NewKubescape()
// scan cluster
results, err := ks.Scan(&cautils.ScanInfo{})
// convert scan results to json
jsonRes, err := results.ToJson()