@@ -243,7 +243,7 @@ data:
243243 Name : "policy-app-config" ,
244244 }
245245
246- policyTemplates , err := getPolicyTemplates (& policyConf , "default" )
246+ policyTemplates , err := getPolicyTemplates (& policyConf )
247247 if err != nil {
248248 t .Fatalf ("Failed to get the policy templates: %v" , err )
249249 }
@@ -405,7 +405,7 @@ resources:
405405 Name : "policy-kustomize" ,
406406 }
407407
408- policyTemplates , err := getPolicyTemplates (& policyConf , "default" )
408+ policyTemplates , err := getPolicyTemplates (& policyConf )
409409 if err != nil {
410410 if test .ErrMsg != "" {
411411 assertEqual (t , err .Error (), test .ErrMsg )
@@ -544,7 +544,7 @@ data:
544544 Name : "policy-app-config" ,
545545 }
546546
547- policyTemplates , err := getPolicyTemplates (& policyConf , "default" )
547+ policyTemplates , err := getPolicyTemplates (& policyConf )
548548 if err != nil {
549549 t .Fatalf ("Failed to get the policy templates: %v" , err )
550550 }
@@ -745,7 +745,7 @@ func TestGetPolicyTemplateFromPolicyTypeManifest(t *testing.T) {
745745 },
746746 }
747747
748- policyTemplates , err := getPolicyTemplates (& policyConf , "default" )
748+ policyTemplates , err := getPolicyTemplates (& policyConf )
749749 if err != nil {
750750 t .Fatalf ("Failed to get the policy templates: %v" , err )
751751 }
@@ -818,7 +818,7 @@ data:
818818 Name : "policy-app-config" ,
819819 }
820820
821- policyTemplates , err := getPolicyTemplates (& policyConf , "default" )
821+ policyTemplates , err := getPolicyTemplates (& policyConf )
822822 if err != nil {
823823 t .Fatalf ("Failed to get the policy templates: %v" , err )
824824 }
@@ -906,7 +906,7 @@ data:
906906 Name : "policy-app-config" ,
907907 }
908908
909- policyTemplates , err := getPolicyTemplates (& policyConf , "default" )
909+ policyTemplates , err := getPolicyTemplates (& policyConf )
910910 if err != nil {
911911 t .Fatalf ("Failed to get the policy templates: %v " , err )
912912 }
@@ -1015,7 +1015,7 @@ data:
10151015 Name : "policy-app-config" ,
10161016 }
10171017
1018- _ , err = getPolicyTemplates (& policyConf , "default" )
1018+ _ , err = getPolicyTemplates (& policyConf )
10191019 assertEqual (t , err != nil , true )
10201020}
10211021
@@ -1047,7 +1047,7 @@ metadata:
10471047 Name : "policy-kyverno-config" ,
10481048 }
10491049
1050- policyTemplates , err := getPolicyTemplates (& policyConf , "default" )
1050+ policyTemplates , err := getPolicyTemplates (& policyConf )
10511051 if err != nil {
10521052 t .Fatalf ("Failed to get the policy templates: %v" , err )
10531053 }
@@ -1104,7 +1104,7 @@ func TestGetPolicyTemplateNoManifests(t *testing.T) {
11041104 Name : "policy-app-config" ,
11051105 }
11061106
1107- _ , err := getPolicyTemplates (& policyConf , "default" )
1107+ _ , err := getPolicyTemplates (& policyConf )
11081108 if err == nil {
11091109 t .Fatal ("Expected an error but did not get one" )
11101110 }
@@ -1132,7 +1132,7 @@ func TestGetPolicyTemplateInvalidPath(t *testing.T) {
11321132 Name : "policy-app-config" ,
11331133 }
11341134
1135- _ , err := getPolicyTemplates (& policyConf , "default" )
1135+ _ , err := getPolicyTemplates (& policyConf )
11361136 if err == nil {
11371137 t .Fatal ("Expected an error but did not get one" )
11381138 }
@@ -1161,7 +1161,7 @@ func TestGetPolicyTemplateInvalidManifest(t *testing.T) {
11611161 Name : "policy-app-config" ,
11621162 }
11631163
1164- _ , err = getPolicyTemplates (& policyConf , "default" )
1164+ _ , err = getPolicyTemplates (& policyConf )
11651165 if err == nil {
11661166 t .Fatal ("Expected an error but did not get one" )
11671167 }
0 commit comments