@@ -19,7 +19,7 @@ func TestRenderConstraint(t *testing.T) {
19
19
t .Errorf ("Error getting violations: %v" , err )
20
20
}
21
21
22
- expected , err := os .ReadFile ("../../test/constraint_Test .yaml" )
22
+ expected , err := os .ReadFile ("../../test/output/standard/constraint_FullMetadata .yaml" )
23
23
if err != nil {
24
24
t .Errorf ("Error reading expected file: %v" , err )
25
25
}
@@ -48,7 +48,7 @@ func TestRenderConstraintWithCustomTemplate(t *testing.T) {
48
48
t .Errorf ("Error getting violations: %v" , err )
49
49
}
50
50
51
- expected , err := os .ReadFile ("../../test/custom/constraint_Test .yaml" )
51
+ expected , err := os .ReadFile ("../../test/output/ custom/constraint_FullMetadata .yaml" )
52
52
if err != nil {
53
53
t .Errorf ("Error reading expected file: %v" , err )
54
54
}
@@ -77,7 +77,7 @@ func TestRenderConstraintTemplate(t *testing.T) {
77
77
t .Errorf ("Error getting violations: %v" , err )
78
78
}
79
79
80
- expected , err := os .ReadFile ("../../test/template_Test .yaml" )
80
+ expected , err := os .ReadFile ("../../test/output/standard/template_FullMetadata .yaml" )
81
81
if err != nil {
82
82
t .Errorf ("Error reading expected file: %v" , err )
83
83
}
@@ -106,7 +106,7 @@ func TestRenderConstraintTemplateWithCustomTemplate(t *testing.T) {
106
106
t .Errorf ("Error getting violations: %v" , err )
107
107
}
108
108
109
- expected , err := os .ReadFile ("../../test/custom/template_Test .yaml" )
109
+ expected , err := os .ReadFile ("../../test/output/ custom/template_FullMetadata .yaml" )
110
110
if err != nil {
111
111
t .Errorf ("Error reading expected file: %v" , err )
112
112
}
@@ -129,7 +129,7 @@ func TestRenderConstraintTemplateWithCustomTemplate(t *testing.T) {
129
129
}
130
130
131
131
func GetViolations () ([]rego.Rego , error ) {
132
- violations , err := rego .GetViolations ("../../test" )
132
+ violations , err := rego .GetViolations ("../../test/policies/ " )
133
133
if err != nil {
134
134
return nil , err
135
135
}
0 commit comments