-
Notifications
You must be signed in to change notification settings - Fork 93
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
refactoring in integration tests #632
Conversation
Starting a draft so I don't lose my train of thought. I expect to get this ready for review tomorrow. |
Marking this as ready for review now that 1) I have a PR up to fix the One question I'd like reviewer opinions on: as indicated by the semver check in CI, this PR is actually a breaking change since it affects the "public" APIs in |
It feel strange that the testing are exported from the cedar-policy crate directly. If we want to call this a breaking change, then I propose making the larger braking change, and ripping these functions out into a new crates, then that crate can follow semver without caring about cedar's version. |
Yeah, I agree that it makes sense to have this testing code in a separate crate. Do you think I could get away with moving it to a separate crate before the next major version? I'd like to get this refactoring integrated sooner rather than later to prevent annoying merge issues later. |
Update: I'll be closing this PR to avoid breaking the public interface for the integration tests. I've made an issue to move the integration testing code to its own module (#644). In the meantime, I'll move the refactoring I made in |
Description of changes
cedar_test_impl.rs
file (with some renaming and other additions) fromcedar-spec
so we can use the same trait for both integration testing & DRT.integration_testing.rs
to make it easier to reuse the parsing code for the integration test file format.Issue #, if available
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy-core
,cedar-validator
, etc.)I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):cedar-spec
, and how you have tested that your updates are correct.)Disclaimer
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.