fix(httpapi): return project not found errors (#28856)
This commit is contained in:
parent
b368e5adbe
commit
3e1972fd92
1 changed files with 76 additions and 10 deletions
|
|
@ -177,6 +177,15 @@ const scenarios: Scenario[] = [
|
|||
},
|
||||
"status",
|
||||
),
|
||||
http.protected
|
||||
.patch("/project/{projectID}", "project.update.missing")
|
||||
.mutating()
|
||||
.at((ctx) => ({
|
||||
path: route("/project/{projectID}", { projectID: "project_httpapi_missing" }),
|
||||
headers: ctx.headers(),
|
||||
body: { name: "Missing Project" },
|
||||
}))
|
||||
.json(404, object, "status"),
|
||||
http.protected
|
||||
.post("/project/git/init", "project.initGit")
|
||||
.mutating()
|
||||
|
|
|
|||
Loading…
Reference in a new issue