commit d421a781300d0f29c6f8fb47e6c438e19823e255 from: Alisdair MacLeod via: Alisdair MacLeod <131350026+admacleod@users.noreply.github.com> date: Wed Mar 25 16:33:41 2026 UTC Update routing tests to expect correct HTTP status codes Change route-unknown to expect 404 Not Found instead of 400, and route-wrong-method to expect 405 Method Not Allowed instead of 400. These tests will fail until the routing logic in deskd.c is updated to distinguish unknown paths from unsupported methods. Co-Authored-By: Claude Opus 4.6 (1M context) commit - 2895fd6ddcae6c90b53efeaf9f56e9cc0e748689 commit + d421a781300d0f29c6f8fb47e6c438e19823e255 blob - c2cff2ddd3e2927e3a4bfe163b2fb0a70d194a47 blob + 81d3348e15abf9db35adb39908f9e9d5aa1f505d --- test/route-unknown.test +++ test/route-unknown.test @@ -1,4 +1,4 @@ -Unknown route returns 400. +Unknown route returns 404. --- --- --- @@ -8,7 +8,7 @@ SERVER_PROTOCOL=HTTP/1.1 --- --- --- -Status: 400 Bad Request +Status: 404 Not Found Content-Type: text/plain; charset=utf-8 -Bad Request +Not Found blob - 3ffe8a7b49a09aa702ef140dc989d8efc659a991 blob + b7d77d7404014983cd6cd3c65b65d126892e51ee --- test/route-wrong-method.test +++ test/route-wrong-method.test @@ -1,4 +1,4 @@ -Wrong HTTP method for a known route returns 400. +Wrong HTTP method for a known route returns 405. --- --- --- @@ -8,7 +8,7 @@ SERVER_PROTOCOL=HTTP/1.1 --- --- --- -Status: 400 Bad Request +Status: 405 Method Not Allowed Content-Type: text/plain; charset=utf-8 -Bad Request +Method Not Allowed