Skip to content
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

Support generating corpus tests for more targets #428

Open
2 tasks
khieta opened this issue Aug 29, 2024 · 0 comments
Open
2 tasks

Support generating corpus tests for more targets #428

khieta opened this issue Aug 29, 2024 · 0 comments
Labels
feature-request Request for a new feature

Comments

@khieta
Copy link
Contributor

khieta commented Aug 29, 2024

Category

DRT infrastructure

Describe the feature you'd like to request

Currently, corpus tests (stored in https://github.com/cedar-policy/cedar-integration-tests) can only be generated for the abac and abac-type-directed targets. The tests currently stored in the integration tests repo come from the abac target. (There is no particular reason we aren't using the type-directed corpus instead, we just don't have evidence for which is more useful. We could also just use both corpuses for integration testing.)

Both the abac and abac-type-directed targets generate a single static policy per test. Our integration tests would be more complete if we instead generated multiple policies, including policy templates/links. Currently, only one of our targets (rbac) generates multiple policies & policy templates. We should set up corpus test generation for this target (as well as other targets that seem useful) and include these test cases in the corpus.

Describe alternatives you've considered

No response

Additional context

The code that supports generating corpus tests from fuzz inputs is mostly in https://github.com/cedar-policy/cedar-spec/blob/main/cedar-drt/fuzz/src/dump.rs

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@khieta khieta added feature-request Request for a new feature backlog labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants