@@ -19,7 +19,7 @@ func TestRenderConstraint(t *testing.T) {
1919 t .Errorf ("Error getting violations: %v" , err )
2020 }
2121
22- expected , err := os .ReadFile ("../../test/constraint_Test .yaml" )
22+ expected , err := os .ReadFile ("../../test/output/standard/constraint_FullMetadata .yaml" )
2323 if err != nil {
2424 t .Errorf ("Error reading expected file: %v" , err )
2525 }
@@ -48,7 +48,7 @@ func TestRenderConstraintWithCustomTemplate(t *testing.T) {
4848 t .Errorf ("Error getting violations: %v" , err )
4949 }
5050
51- expected , err := os .ReadFile ("../../test/custom/constraint_Test .yaml" )
51+ expected , err := os .ReadFile ("../../test/output/ custom/constraint_FullMetadata .yaml" )
5252 if err != nil {
5353 t .Errorf ("Error reading expected file: %v" , err )
5454 }
@@ -77,7 +77,7 @@ func TestRenderConstraintTemplate(t *testing.T) {
7777 t .Errorf ("Error getting violations: %v" , err )
7878 }
7979
80- expected , err := os .ReadFile ("../../test/template_Test .yaml" )
80+ expected , err := os .ReadFile ("../../test/output/standard/template_FullMetadata .yaml" )
8181 if err != nil {
8282 t .Errorf ("Error reading expected file: %v" , err )
8383 }
@@ -106,7 +106,7 @@ func TestRenderConstraintTemplateWithCustomTemplate(t *testing.T) {
106106 t .Errorf ("Error getting violations: %v" , err )
107107 }
108108
109- expected , err := os .ReadFile ("../../test/custom/template_Test .yaml" )
109+ expected , err := os .ReadFile ("../../test/output/ custom/template_FullMetadata .yaml" )
110110 if err != nil {
111111 t .Errorf ("Error reading expected file: %v" , err )
112112 }
@@ -129,7 +129,7 @@ func TestRenderConstraintTemplateWithCustomTemplate(t *testing.T) {
129129}
130130
131131func GetViolations () ([]rego.Rego , error ) {
132- violations , err := rego .GetViolations ("../../test" )
132+ violations , err := rego .GetViolations ("../../test/policies/ " )
133133 if err != nil {
134134 return nil , err
135135 }
0 commit comments