test(router-parity): HEAD on a remote GET answers 200 for CARD-20 (owner approval required)
owner-mesh-allow.json froze HEAD /api/x at 404 on both adapters: the teacup forwarded HEAD to the teapot, which has no HEAD plan for the route. CARD-20 (#125, D16) fixes that, so HEAD now answers 200 with the GET's headers and an empty body, like a local route. Only those two entries change (fetch and node), status 404 -> 200. Headers and the empty body are identical. The fixture comment in owner.test.ts that described the old behaviour is updated to match. Owner approval required (CARD-08 rule): this edits a frozen file under test/router-parity/. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -206,7 +206,7 @@
|
||||
"adapter": "fetch",
|
||||
"method": "HEAD",
|
||||
"path": "/api/x",
|
||||
"status": 404,
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"content-type": "application/json",
|
||||
"referrer-policy": "no-referrer",
|
||||
@@ -472,7 +472,7 @@
|
||||
"adapter": "node",
|
||||
"method": "HEAD",
|
||||
"path": "/api/x",
|
||||
"status": 404,
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"content-type": "application/json",
|
||||
"referrer-policy": "no-referrer",
|
||||
|
||||
Reference in new issue
Block a user