Compare commits

...

1 Commits

Author SHA1 Message Date
cxymds 4f279d4e35 fix(admin): scope the router test helper bound to the method 2026-11-21 22:09:01 +08:00
+4 -4
View File
@@ -1019,17 +1019,17 @@ impl<T> S3Router<T> {
pub(crate) fn registered_routes(&self) -> &[String] {
self.table.registered_routes()
}
}
#[cfg(test)]
impl<T: OwnedOperation> S3Router<T> {
/// Dispatches one legacy admin request. Callers keep their assertions and do not name s3s.
pub(crate) async fn call_legacy(
&self,
method: Method,
uri: &str,
extensions: http::Extensions,
) -> s3s::S3Result<S3Response<Body>> {
) -> s3s::S3Result<S3Response<Body>>
where
T: OwnedOperation,
{
S3Route::call(
self,
S3Request {