build: add server-rs check scripts

This commit is contained in:
2026-04-21 01:48:33 +08:00
parent 6a560236f4
commit fdab91e54d
12 changed files with 178 additions and 26 deletions

View File

@@ -77,15 +77,24 @@ mod tests {
assert_eq!(response.status(), StatusCode::OK);
assert_eq!(
response.headers().get("x-request-id").and_then(|value| value.to_str().ok()),
response
.headers()
.get("x-request-id")
.and_then(|value| value.to_str().ok()),
Some("req-health-legacy")
);
assert_eq!(
response.headers().get("x-api-version").and_then(|value| value.to_str().ok()),
response
.headers()
.get("x-api-version")
.and_then(|value| value.to_str().ok()),
Some("2026-04-08")
);
assert_eq!(
response.headers().get("x-route-version").and_then(|value| value.to_str().ok()),
response
.headers()
.get("x-route-version")
.and_then(|value| value.to_str().ok()),
Some("2026-04-08")
);
assert!(response.headers().contains_key("x-response-time-ms"));