Return clear node-missing JSON and reset Web UI auth on 401.
Keep Ingress from rewriting API 404/405 into branded HTML; document curl/auth and a prompt for sibling sims.
This commit is contained in:
@@ -196,5 +196,5 @@ async def test_missing_node_returns_404() -> None:
|
||||
pool.node_exists = False
|
||||
handler = registry.get("/nodes/{node}/storage", "GET")
|
||||
assert handler is not None
|
||||
with pytest.raises(ApiError, match="node does not exist"):
|
||||
with pytest.raises(ApiError, match="No such node"):
|
||||
await handler(_request(pool), {"values": {"node": "missing"}})
|
||||
|
||||
Reference in New Issue
Block a user