lavinmq-bed: prove the AMQP provider provisions a require-only consumer #13

Merged
jschoubben merged 3 commits from feat/lavinmq-bed into main 2026-09-06 21:21:49 +00:00
Showing only changes of commit f04c4ba3be - Show all commits
-9
View File
@@ -379,15 +379,6 @@ test("the lavinmq provider and its consumer ride laptop while the substrate brok
// local control socket needs no auth); the admin authenticating to the management API is implicit,
// because the vhost could not exist otherwise.
// ================================================================================================
// DIAG: the provisioner logged no create — is the grant in its receives file, and is the management
// API it must reach actually up? (A stuck waitReady logs neither a create nor an error.)
{
const grants = (await on(NODE, `cat /var/lib/lavinmq-module/grants/mesh.json 2>&1 || echo MISSING`)).out;
const api = (await on(NODE, `docker exec lavinmq sh -c 'wget -qO- http://127.0.0.1:15672/api/overview 2>&1 | head -c 200 || curl -s http://127.0.0.1:15672/api/overview 2>&1 | head -c 200' 2>&1`)).out;
const full = (await on(NODE, `docker logs mesh-lavinmq 2>&1`)).out;
console.log(`\n=== LAVINMQ DIAG ===\ngrants mesh.json:\n${grants}\n--- mgmt API (lavinmq:15672/api/overview) ---\n${api}\n--- mesh-lavinmq full log ---\n${full}\n=== END LAVINMQ DIAG ===\n`);
}
let vhosts = { out: "", ok: false };
const untilVhost = Date.now() + 90_000;
while (Date.now() < untilVhost) {