mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-14 12:22:51 -06:00
a4f3e6a592
Before, the consequence of a non-halt host-builtin error was that the entire eval result was undefined. Now, only the result of evaluating the builtin itself is undefined. Fixes #3320. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
12 lines
239 B
YAML
12 lines
239 B
YAML
cases:
|
|
- data:
|
|
modules:
|
|
- |
|
|
package test
|
|
foo = units.parse_bytes("1KB")
|
|
bar = units.parse_bytes("foo") # undefined
|
|
note: functionerrors/undefined builtin result
|
|
query: data.test = x
|
|
want_result:
|
|
- x:
|
|
foo: 1000 |