From 04670ecf10906f90cd50c7ff5d6cdc3e6f1f777e Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 10 Jul 2025 14:29:45 -0600 Subject: test: print failure details for table test --- tests/authorization/cedar_authorizer_test.rs | 8 +++++++- tests/authorization/check_service_test.rs | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/authorization/cedar_authorizer_test.rs b/tests/authorization/cedar_authorizer_test.rs index 0cffeb13..1a04b6af 100644 --- a/tests/authorization/cedar_authorizer_test.rs +++ b/tests/authorization/cedar_authorizer_test.rs @@ -58,7 +58,13 @@ mod tests { ]); }); - assert_eq!(authorizer.authorize(request), *expected); + assert_eq!( + authorizer.authorize(request), + *expected, + "{} {}", + method, + path + ); } } } diff --git a/tests/authorization/check_service_test.rs b/tests/authorization/check_service_test.rs index 24921846..3db0ec9e 100644 --- a/tests/authorization/check_service_test.rs +++ b/tests/authorization/check_service_test.rs @@ -110,7 +110,13 @@ mod tests { assert!(check_response.status.is_some()); let status = check_response.status.unwrap(); - assert_eq!(tonic::Code::from_i32(status.code), *expected_status_code); + assert_eq!( + tonic::Code::from_i32(status.code), + *expected_status_code, + "{} {}", + method, + path + ); } } } -- cgit v1.2.3