File tree Expand file tree Collapse file tree 3 files changed +2
-28
lines changed
app/cli/internal/policydevel Expand file tree Collapse file tree 3 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -107,32 +107,6 @@ func TestInitialize(t *testing.T) {
107107 })
108108}
109109
110- func TestLoadAndProcessTemplates (t * testing.T ) {
111- t .Run ("embedded rego" , func (t * testing.T ) {
112- opts := & InitOptions {
113- Embedded : true ,
114- Name : "embedded-test" ,
115- }
116-
117- content , err := loadAndProcessTemplates (opts )
118- require .NoError (t , err )
119- assert .NotEmpty (t , content .YAML )
120- assert .Empty (t , content .Rego ) // Rego file should be empty for embedded
121- })
122-
123- t .Run ("separate rego file" , func (t * testing.T ) {
124- opts := & InitOptions {
125- Embedded : false ,
126- Name : "separate-rego-test" ,
127- }
128-
129- content , err := loadAndProcessTemplates (opts )
130- require .NoError (t , err )
131- assert .NotEmpty (t , content .YAML )
132- assert .NotEmpty (t , content .Rego )
133- })
134- }
135-
136110func TestExecuteTemplate (t * testing.T ) {
137111 testCases := []struct {
138112 name string
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ module {{.Name | sanitize}}
22
33go 1.25
44
5- require github.com/chainloop-dev/chainloop/sdks /go v1.61.0
5+ require github.com/chainloop-dev/chainloop/policies /go v1.61.0
66
77require github.com/extism/go-pdk v1.1.3 // indirect
Original file line number Diff line number Diff line change 2323package main
2424
2525import (
26- chainlooppolicy "github.com/chainloop-dev/chainloop/sdks /go"
26+ chainlooppolicy "github.com/chainloop-dev/chainloop/policies /go"
2727)
2828
2929// Input represents the expected input structure
You can’t perform that action at this time.
0 commit comments