fix: declare plugin service websocket authority

This commit is contained in:
2026-06-25 16:52:20 +09:00
parent 7a4fd97526
commit 6c8998878d
5 changed files with 44 additions and 5 deletions
+4
View File
@@ -2188,6 +2188,10 @@ mod tests {
assert!(manifest.contains("kind = \"wasm-component\""));
assert!(manifest.contains("[[services]]"));
assert!(manifest.contains("[[ingresses]]"));
assert!(manifest.contains("{ kind = \"host_api\", api = \"websocket\" }"));
assert!(manifest.contains("[[websocket]]"));
assert!(manifest.contains("host = \"example.com\""));
assert!(manifest.contains("path_prefixes = [\"/socket\"]"));
let source = fs::read_to_string(service_destination.join("src/lib.rs")).unwrap();
assert!(source.contains("ServiceOutput::websocket_send"));
assert!(!source.contains("recv(timeout"));