Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
Signed-off-by: Shaobo He <[email protected]>
  • Loading branch information
shaobo-he-aws committed Dec 31, 2024
1 parent b3a02d5 commit 5eb2a23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cedar-policy/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ impl SchemaFragment {
/// Get annotations of an action declaration
/// Returns `None` if `namespace` is not found in the [`SchemaFragment`] or
/// `id` is not found in the corresponding namespace definition
pub fn action_type_annotations(
pub fn action_annotations(
&self,
namespace: Option<EntityNamespace>,
id: EntityId,
Expand Down
8 changes: 4 additions & 4 deletions cedar-policy/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6658,23 +6658,23 @@ mod schema_annotations {
annotations,
BTreeMap::from_iter(
schema
.action_type_annotations(None, "a1".parse().unwrap(),)
.action_annotations(None, "a1".parse().unwrap(),)
.expect("should get annotations")
)
);
assert_eq!(
annotations,
BTreeMap::from_iter(
schema
.action_type_annotations(None, "a2".parse().unwrap(),)
.action_annotations(None, "a2".parse().unwrap(),)
.expect("should get annotations")
)
);
assert_eq!(
annotations,
BTreeMap::from_iter(
schema
.action_type_annotations(
.action_annotations(
Some("N".parse().expect("should be a valid name")),
"a1".parse().unwrap(),
)
Expand All @@ -6685,7 +6685,7 @@ mod schema_annotations {
annotations,
BTreeMap::from_iter(
schema
.action_type_annotations(
.action_annotations(
Some("N".parse().expect("should be a valid name")),
"a2".parse().unwrap(),
)
Expand Down

0 comments on commit 5eb2a23

Please sign in to comment.