google / cel-go

Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)
https://cel.dev
Apache License 2.0
2.3k stars 224 forks source link

Policy test case fix for restricted destination, prevent panic when return is missing #965

Closed l46kok closed 5 months ago

l46kok commented 5 months ago

restricted_destination produces a boolean output, but the test wasn't actually validating its result. Includes a minor fix to gracefully error when return type is missing in policy config.