Skip to content

Commit

Permalink
fmt
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 Nov 14, 2024
1 parent 8bc8d5b commit f1ce537
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cedar-drt/fuzz/fuzz_targets/entity-slicing-drt-type-directed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,15 @@ fuzz_target!(|input: FuzzTargetInput| {
for abac_request in input.requests.into_iter() {
let request = ast::Request::from(abac_request);
debug!("Request: {request}");
let entity_slice = manifest.slice_entities(&entities, &request).expect("failed to slice entities");
let entity_slice = manifest
.slice_entities(&entities, &request)
.expect("failed to slice entities");
debug!("Entity slice: {entity_slice}");
let ans_original = authorizer.is_authorized(request.clone(), &policyset, &entities);
let ans_original =
authorizer.is_authorized(request.clone(), &policyset, &entities);
let ans_slice = authorizer.is_authorized(request, &policyset, &entity_slice);
assert_eq!(
ans_original.decision,
ans_slice.decision,
ans_original.decision, ans_slice.decision,
"Authorization decision differed with and without entity slicing!"
);
}
Expand Down

0 comments on commit f1ce537

Please sign in to comment.