Skip to content

Commit

Permalink
added go mod updates
Browse files Browse the repository at this point in the history
  • Loading branch information
henderiw committed Aug 9, 2024
1 parent ed4b03a commit 48d6559
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pkg/render2/celrenderer/renderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,33 @@ metadata:
kform.dev/default: true
data:
test: a
strings:
- item1
- item2
- item3
`

var celoutput = `apiVersion: v1
kind: ConfigMap
metadata:
name: example
namespace: default
annotations:
"kform.dev/for-each": "input.context[0].data.strings"
data:
test: "['input','context1'].concat('.')" # cel fn w/o cell variables
celnovar: "['input','context1'].concat('.')" # cel fn w/o cell variables
strings: "input.context[0].data.strings"
`

func TestValidate(t *testing.T) {
cases := map[string]struct {
input string
output string
}{
"Basic": {
input: input,
output: output,
},
//"Basic": {
// input: input,
// output: output,
//},
"CellFunctions": {
input: celinput,
output: celoutput,
Expand Down

0 comments on commit 48d6559

Please sign in to comment.