google / cel-go

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

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

Closed l46kok closed 4 months ago

l46kok commented 4 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.