Skip to content

Commit

Permalink
eval: expand coverage (#69)
Browse files Browse the repository at this point in the history
- Cover a number of additional error cases
- Cover must-escape keys
  • Loading branch information
pgavlin authored Oct 9, 2023
1 parent 67b5aa2 commit 83835e9
Show file tree
Hide file tree
Showing 13 changed files with 7,372 additions and 112 deletions.
10 changes: 10 additions & 0 deletions eval/testdata/eval/builtin-combine/env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
values:
open:
fn::open::test:
foo: bar
password: { fn::secret: hunter2 }
builtins:
- { fn::join: [",", [ "${password}", "${open.foo}" ] ] }
- { fn::toBase64: "${password} ${open.foo}" }
- { fn::toJSON: "${password} ${open.foo}" }
- { fn::toString: "${password} ${open.foo}" }
854 changes: 854 additions & 0 deletions eval/testdata/eval/builtin-combine/expected.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions eval/testdata/eval/builtin-errs/env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
values:
number: 42
builtins:
- { fn::open::test: "${missing}" }
- { fn::join: [",", "${missing}" ] }
- { fn::join: [",", [ "${number}" ] ] }
- { fn::toBase64: "${missing}" }
- { fn::toBase64: "${number}" }
- { fn::toJSON: "${missing}" }
- { fn::toString: "${missing}" }
Loading

0 comments on commit 83835e9

Please sign in to comment.