summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-10 14:29:45 -0600
committermo khan <mo@mokhan.ca>2025-07-10 14:31:01 -0600
commit04670ecf10906f90cd50c7ff5d6cdc3e6f1f777e (patch)
tree4277d009f520d4f1da075d8332b32aa74764a482 /tests
parent501fbdd53312a2a449891386a7982f324ccfe23a (diff)
test: print failure details for table test
Diffstat (limited to 'tests')
-rw-r--r--tests/authorization/cedar_authorizer_test.rs8
-rw-r--r--tests/authorization/check_service_test.rs8
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
+ );
}
}
}