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"
);
+1 -1
View File
@@ -342,7 +342,7 @@
"info": {
"title": "Yoi Server API",
"version": "0.1.0",
"x-yoi-source-digest": "sha256:1a30fd87bc5d6e1a03acfb86c86630ad8d458e5c0db8b3d146459d5f2c376db6"
"x-yoi-source-digest": "sha256:c7a6b25e1a071ab9a6831e6cd53daf51acdf8aaac20746b0b6db35c12428836f"
},
"openapi": "3.1.0",
"paths": {