Update ServerApi metadata coverage
This commit is contained in:
@@ -3759,10 +3759,14 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn worker_session_contract_and_flattened_availability_are_stable() {
|
fn worker_session_contract_and_flattened_availability_are_stable() {
|
||||||
let operations = ServerApiMetadata::OPERATIONS;
|
let operations = ServerApiMetadata::OPERATIONS;
|
||||||
assert_eq!(operations.len(), 1);
|
assert_eq!(operations.len(), 4);
|
||||||
assert_eq!(operations[0].method, HttpMethod::Get);
|
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!(
|
assert_eq!(
|
||||||
operations[0].path,
|
operation.path,
|
||||||
"/api/w/{workspace_id}/runtimes/{runtime_id}/workers/{worker_id}/session"
|
"/api/w/{workspace_id}/runtimes/{runtime_id}/workers/{worker_id}/session"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -342,7 +342,7 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"title": "Yoi Server API",
|
"title": "Yoi Server API",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"x-yoi-source-digest": "sha256:1a30fd87bc5d6e1a03acfb86c86630ad8d458e5c0db8b3d146459d5f2c376db6"
|
"x-yoi-source-digest": "sha256:c7a6b25e1a071ab9a6831e6cd53daf51acdf8aaac20746b0b6db35c12428836f"
|
||||||
},
|
},
|
||||||
"openapi": "3.1.0",
|
"openapi": "3.1.0",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|||||||
Reference in New Issue
Block a user