-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
D&O merged policies / sectionName tests #608
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Martin Hesko <[email protected]>
Signed-off-by: Martin Hesko <[email protected]>
Signed-off-by: Martin Hesko <[email protected]>
Allow adding strategy field to policies. Signed-off-by: Jim Fitzpatrick <[email protected]>
Signed-off-by: Martin Hesko <[email protected]>
This adds test that make use of the merge strategy on defaults that are targeting the same resource. Signed-off-by: Jim Fitzpatrick <[email protected]>
This adds test that make use of the merge strategy on overrides that are targeting the same resource. Signed-off-by: Jim Fitzpatrick <[email protected]>
Add missing doc string to conftest.py Signed-off-by: Jim Fitzpatrick <[email protected]>
CelPredicate("request.path == '/anything'"), | ||
] | ||
policy.overrides.add_limit("basic", [OVERRIDE_LIMIT], when=basic_when) | ||
policy.overrides.add_limit("override", [OVERRIDE_LIMIT], when=override_when) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Boomatang in this case there is functionally no difference between the two related tests, I would suggest reworking this with 2 normal limits and 1 override in this policy to apply the partial override in one case, similar to how it works in overrides/merge/test_gateway_override_merge.py
Merge #600 first as the section_names commits are present in both