fix(httpapi): return pty error bodies (#28838)
This commit is contained in:
parent
d92b8d8009
commit
5cf597d583
1 changed files with 119 additions and 14 deletions
|
|
@ -404,9 +404,7 @@ const scenarios: Scenario[] = [
|
|||
.delete("/pty/{ptyID}", "pty.remove")
|
||||
.mutating()
|
||||
.at((ctx) => ({ path: route("/pty/{ptyID}", { ptyID: "pty_httpapi_missing" }), headers: ctx.headers() }))
|
||||
.json(200, (body) => {
|
||||
check(body === true, "PTY remove should return true")
|
||||
}),
|
||||
.json(404, object, "status"),
|
||||
http.protected
|
||||
.get("/pty/{ptyID}/connect", "pty.connect")
|
||||
.at((ctx) => ({ path: route("/pty/{ptyID}/connect", { ptyID: "pty_httpapi_missing" }), headers: ctx.headers() }))
|
||||
|
|
|
|||
Loading…
Reference in a new issue