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>
This commit is contained in:
3 files changed
+27
-10
No files matched your search
@@ -101,17 +101,17 @@
|
||||
"phase": "B2 teapot up after boot",
|
||||
"method": "GET",
|
||||
"path": "/api/remote/ping",
|
||||
"status": 404,
|
||||
"status": 200,
|
||||
"allow": null,
|
||||
"body": "{\"error\":\"Not Found\"}"
|
||||
"body": "{\"from\":\"teapot\"}"
|
||||
},
|
||||
{
|
||||
"phase": "B2 teapot up after boot",
|
||||
"method": "POST",
|
||||
"path": "/api/remote/ping",
|
||||
"status": 404,
|
||||
"allow": null,
|
||||
"body": "{\"error\":\"Not Found\"}"
|
||||
"status": 405,
|
||||
"allow": "GET, HEAD, OPTIONS",
|
||||
"body": "{\"error\":\"Method Not Allowed\"}"
|
||||
},
|
||||
{
|
||||
"phase": "B2 teapot up after boot",
|
||||
|
||||
Reference in new issue
Block a user