-
Notifications
You must be signed in to change notification settings - Fork 127
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
enhancement: Add support for test fixtures #294
Conversation
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
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.
Looking good 👍🏽 I didn't dive too deep because it's still a draft but I pointed out some of the things that stood out to me.
One thing I am wondering is whether we should support inline principal and resource definitions as well. Otherwise, in order to get a test suite up, the user needs to create three files and a directory -- which is a lot of ceremony. I think we should make it very easy to get started writing tests and then refactor them as they get complicated. WDYT?
Finally, once the implementation is done, let's remember to update the testing documentation and the photo-share tutorial to reflect the changes made here.
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
I have implemented the changes you have proposed including the embedded principals and resources option. TODO:
|
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
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.
Almost there. Just a few small things to address.
Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com>
Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com>
Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
Signed-off-by: Dennis Buduev <dennis@cerbos.dev>
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.
LGTM. Nice job 👍🏽
I'll do a sudo merge to override the protobuf check. |
Description
Adds support for test fixtures.
Discussion: #285
Fixes #14
Checklist
git commit -s ...
) to provide the DCO