Update ServerApi metadata coverage

This commit is contained in:
2026-09-18 17:20:26 +09:00
parent e12b555f43
commit 8ef7c8e854
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -3759,10 +3759,14 @@ mod tests {
#[test]
fn worker_session_contract_and_flattened_availability_are_stable() {
let operations = ServerApiMetadata::OPERATIONS;
assert_eq!(operations.len(), 1);
assert_eq!(operations[0].method, HttpMethod::Get);
assert_eq!(operations.len(), 4);
let operation = operations
.iter()
.find(|operation| operation.operation_id == "worker_session")
.expect("worker-session operation must remain in ServerApi metadata");
assert_eq!(operation.method, HttpMethod::Get);
assert_eq!(
operations[0].path,
operation.path,
"/api/w/{workspace_id}/runtimes/{runtime_id}/workers/{worker_id}/session"
);