-
Notifications
You must be signed in to change notification settings - Fork 103
Refactor entity conformance checking #1604
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
Conversation
This commit also fixes a bug where Cedar doesn't performance checks on tags. Signed-off-by: Shaobo He <shaobohe@amazon.com>
Coverage ReportHead Commit: Base Commit: Download the full coverage report. Coverage of Added or Modified Lines of Rust CodeRequired coverage: 80.00% Actual coverage: 82.99% Status: PASSED ✅ Details
Coverage of All Lines of Rust CodeRequired coverage: 80.00% Actual coverage: 81.76% Status: PASSED ✅ Details
|
@@ -2189,6 +2190,57 @@ action "g" appliesTo { | |||
"#; | |||
assert_matches!(Entity::from_json_str(entity_str, Some(&schema)), Ok(_)); | |||
} | |||
|
|||
#[test] | |||
fn from_entities_tags() { |
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.
Should probably include a test that conformance check succeeds if the correct type of tag is provided.
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.
Will do it in another PR so that I can use the APIs now.
Signed-off-by: Shaobo He <shaobohe@amazon.com>
This commit also added a couple of positive test cases. Signed-off-by: Shaobo He <shaobohe@amazon.com>
This commit also fixes a bug where Cedar doesn't performance checks on tags.
Description of changes
Issue #, if available
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy
.I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):I confirm that
docs.cedarpolicy.com
(choose one, and delete the other options):