8000 feat: Multiple principals and/or resources in a test case by haines · Pull Request #2338 · cerbos/cerbos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Multiple principals and/or resources in a test case #2338

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

Conversation

haines
Copy link
Member
@haines haines commented Oct 14, 2024

Closes #2183

This PR extends the test expectation syntax to accept either principal or principals, and either resource or resources, making it significantly less verbose when testing multiple fixtures that should have identical results.

@haines haines force-pushed the multiple-principals-and-or-resources-in-a-test-case branch from b6e2830 to 72d3746 Compare October 14, 2024 21:18
Signed-off-by: Andrew Haines <haines@cerbos.dev>
@haines haines force-pushed the multiple-principals-and-or-resources-in-a-test-case branch from 72d3746 to cb0bcdc Compare October 14, 2024 21:19
@haines haines enabled auto-merge (squash) October 14, 2024 21:31
@haines haines merged commit 2856d7d into cerbos:main Oct 15, 2024
22 checks passed
@haines haines deleted the multiple-principals-and-or-resources-in-a-test-case branch October 15, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple principals and/or multiple resources in a test case
2 participants
0