mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
24 lines
503 B
Go
24 lines
503 B
Go
package policyhandler
|
|
|
|
// func TestGetPoliciesFromBackend(t *testing.T) {
|
|
// notification := opapolicy.PolicyNotification{
|
|
// Rules: []opapolicy.PolicyIdentifier{
|
|
// {
|
|
// Kind: opapolicy.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")
|
|
// }
|
|
// }
|