summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ );
}
}
}