Pin the discovery frame against a real capture

The gateway and backend halves of `discovered_printers` are hand-synced, so
every hand-written example in this file agrees with whichever side wrote it -
which is exactly how the two ends of /ws/edge/v1 drifted into different
protocols before. A capture is the only thing that catches that.

This one came off a live LAN with a Bambu P1P and H2C on it, through the
gateway's own serde enum, with its fleet file pointed at an empty file so
nothing was filtered out. The addresses and the shape are as captured.

The two serials are placeholders of the captured shape. They identify
someone's physical hardware, no test depends on their value, and no other
fixture here carries one - so the real ones are not something to commit on
the owner's behalf.
This commit is contained in:
2026-10-19 08:20:58 +00:00
parent cd7aed0028
commit 818f28ea5d
2 changed files with 43 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
{
"_note": "A real `discovered_printers` frame, captured on 2026-10-19 by running `cargo run --example discover_printers -- wire 192.168.0.0/24` against a live LAN with a Bambu P1P and H2C on it, with the gateway's fleet file pointed at an empty file so nothing was filtered out. The addresses and the message shape are exactly as captured. The two `serial` values are PLACEHOLDERS of the captured shape (15 alphanumeric characters) rather than the real ones: the serials identify someone's physical hardware, nothing in this test depends on their value, and no other fixture here carries one. Note what the frame does not contain, which is the point of the format: no access code, no API key. Re-capture with the `wire` subcommand above when the message changes.",
"frames": [
{
"type": "discovered_printers",
"printers": [
{
"vendor": "bambu",
"address": "192.168.0.20",
"serial": "01S00A000000000",
"source": "certificate",
"driver_ready": true
},
{
"vendor": "bambu",
"address": "192.168.0.21",
"serial": "31B0BP0A0000000",
"source": "certificate",
"driver_ready": true
}
],
"scanned_at": "2026-10-19T08:20:03Z"
}
]
}