mirror of
https://github.com/kubescape/kubescape.git
synced 2026-03-05 19:20:52 +00:00
24 lines
518 B
Go
24 lines
518 B
Go
package policyhandler
|
|
|
|
// func TestGetPoliciesFromBackend(t *testing.T) {
|
|
// notification := reporthandling.PolicyNotification{
|
|
// Rules: []reporthandling.PolicyIdentifier{
|
|
// {
|
|
// Kind: reporthandling.KindFramework,
|
|
// Name: "mitretest",
|
|
// },
|
|
// },
|
|
// }
|
|
// // os.Setenv(cacli., "")
|
|
// ph := PolicyHandler{
|
|
// cacli: &cacli.Cacli{},
|
|
// }
|
|
// f, err := ph.GetPoliciesFromBackend(¬ification)
|
|
// if err != nil {
|
|
// t.Error(err)
|
|
// }
|
|
// if len(f) == 0 {
|
|
// t.Errorf("empty")
|
|
// }
|
|
// }
|