Files
core/test/router-parity/frozen/owner-mesh-lifetime.json
T
chrnx 9ea1365b66
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 16s
CI / build (pull_request) Successful in 26s
CI / runtimes (deno) (pull_request) Successful in 20s
CI / runtimes (edge) (pull_request) Successful in 14s
test(router-parity): a late teapot is served after it connects for CARD-19 (owner approval required)
owner-mesh-lifetime.json froze phase B2 (teapot absent at boot, then up)
at 404 for GET and POST /api/remote/ping. The table was built once at
boot, so a late teapot was never spliced in. CARD-19 (#124, D15) changes
that. B2 now answers GET 200 {"from":"teapot"} and POST 405 with
Allow: GET, HEAD, OPTIONS, the same as A1.

Only those two entries change. A1, A2 and B1 are identical.

The fixture's teacup goes from reconnect: false to reconnect with a fast
backoff (20-60ms). Under D15, reconnect: false makes a dropped teapot
"gone" (404), and an absent one is not retried. The card's phases
describe the reconnecting teacup: A2 stays 503 and B2 becomes 200. B2
now waits for the mesh:routes event before probing. The fixture comment
and the corpus README line describing "built once at boot" are updated.

Owner approval required (CARD-08 rule): this edits a frozen file and the
fixture under test/router-parity/.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-10-23 01:04:40 -05:00

134 lines
3.2 KiB
JSON

{
"revision": "ed47836c9820c47bf4ed5e902d91e019abdb110a",
"data": [
{
"phase": "A1 teapot up at boot",
"method": "GET",
"path": "/api/remote/ping",
"status": 200,
"allow": null,
"body": "{\"from\":\"teapot\"}"
},
{
"phase": "A1 teapot up at boot",
"method": "POST",
"path": "/api/remote/ping",
"status": 405,
"allow": "GET, HEAD, OPTIONS",
"body": "{\"error\":\"Method Not Allowed\"}"
},
{
"phase": "A1 teapot up at boot",
"method": "GET",
"path": "/api/local/ok",
"status": 200,
"allow": null,
"body": "{\"from\":\"teacup\"}"
},
{
"phase": "A1 teapot up at boot",
"method": "GET",
"path": "/api/nope",
"status": 404,
"allow": null,
"body": "{\"error\":\"Not Found\"}"
},
{
"phase": "A2 teapot gone after boot",
"method": "GET",
"path": "/api/remote/ping",
"status": 503,
"allow": null,
"body": "{\"error\":\"mesh link to <teapot>/__mesh__/control is down\"}"
},
{
"phase": "A2 teapot gone after boot",
"method": "POST",
"path": "/api/remote/ping",
"status": 405,
"allow": "GET, HEAD, OPTIONS",
"body": "{\"error\":\"Method Not Allowed\"}"
},
{
"phase": "A2 teapot gone after boot",
"method": "GET",
"path": "/api/local/ok",
"status": 200,
"allow": null,
"body": "{\"from\":\"teacup\"}"
},
{
"phase": "A2 teapot gone after boot",
"method": "GET",
"path": "/api/nope",
"status": 404,
"allow": null,
"body": "{\"error\":\"Not Found\"}"
},
{
"phase": "B1 teapot absent at boot",
"method": "GET",
"path": "/api/remote/ping",
"status": 404,
"allow": null,
"body": "{\"error\":\"Not Found\"}"
},
{
"phase": "B1 teapot absent at boot",
"method": "POST",
"path": "/api/remote/ping",
"status": 404,
"allow": null,
"body": "{\"error\":\"Not Found\"}"
},
{
"phase": "B1 teapot absent at boot",
"method": "GET",
"path": "/api/local/ok",
"status": 200,
"allow": null,
"body": "{\"from\":\"teacup\"}"
},
{
"phase": "B1 teapot absent at boot",
"method": "GET",
"path": "/api/nope",
"status": 404,
"allow": null,
"body": "{\"error\":\"Not Found\"}"
},
{
"phase": "B2 teapot up after boot",
"method": "GET",
"path": "/api/remote/ping",
"status": 200,
"allow": null,
"body": "{\"from\":\"teapot\"}"
},
{
"phase": "B2 teapot up after boot",
"method": "POST",
"path": "/api/remote/ping",
"status": 405,
"allow": "GET, HEAD, OPTIONS",
"body": "{\"error\":\"Method Not Allowed\"}"
},
{
"phase": "B2 teapot up after boot",
"method": "GET",
"path": "/api/local/ok",
"status": 200,
"allow": null,
"body": "{\"from\":\"teacup\"}"
},
{
"phase": "B2 teapot up after boot",
"method": "GET",
"path": "/api/nope",
"status": 404,
"allow": null,
"body": "{\"error\":\"Not Found\"}"
}
]
}