Files
kubescape/policyhandler/handlepullpolicies_test.go
Ben Hirschberg 70955537c8 initial commit
2021-08-12 16:01:26 +03:00

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(&notification)
// if err != nil {
// t.Error(err)
// }
// if len(f) == 0 {
// t.Errorf("empty")
// }
// }