hi! During development of cerbos policies on my ma...
# help
s
hi! During development of cerbos policies on my machine, I test using this command before pushing to the policy repo:
Copy code
docker run -it -v .:/policies ghcr.io/cerbos/cerbos:0.40.0 compile /policies
I'm now testing with scopeing and for my policies to work I need the a config option for lientscopesearch. How can I map a custom config, or just the flag I need, to make my tests pass? Also, how will these flags be passed in Cerbus Hub, to pass the tests there as well?
a
You can enable the lientscopesearch as an option in the test file itself in the options block at the top https://docs.cerbos.dev/cerbos/latest/policies/compile#testing
This will then be used locally and by Hub
s
You guys really thought this through, works like a charm
👍 1
a
You guys really thought this through
I'm going to get that put on coffee cups for our team
🙌 1