8000 chore: Add tests for resource policy with REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS by dbuduev · Pull Request #2466 · cerbos/cerbos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: Add tests for resource policy with REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS #2466

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

Merged
merged 14 commits into from
Feb 19, 2025

Conversation

dbuduev
Copy link
Contributor
@dbuduev dbuduev commented Feb 5, 2025

A few test cases for resource policies having "REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS" scope permissions:

  • case 29 mirrors case 26, which covers principal policies.
  • case 30 shows that if a principal has multiple roles, a policy without reference to a role can be ignored.

Both test cases are supported by new policies: "policy_17.acme.yaml" and "policy_17.acme.sales.yaml".

Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
@dbuduev dbuduev marked this pull request as ready for review February 5, 2025 04:15
@dbuduev dbuduev requested a review from Sambigeara February 5, 2025 04:16
dbuduev and others added 2 commits February 18, 2025 07:01
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
@dbuduev dbuduev enabled auto-merge (squash) February 18, 2025 08:45
dbuduev and others added 4 commits February 19, 2025 10:55
Co-authored-by: Sam Lock <sam@swlock.co.uk>
Signed-off-by: dbuduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
@dbuduev dbuduev merged commit ba523cd into main Feb 19, 2025
22 checks passed
@dbuduev dbuduev deleted the chore/new-tests-for-resource-policies branch February 19, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0