test(e2e): print MCP Docker proof logs

This commit is contained in:
Vincent Koc
2026-05-30 06:19:24 +02:00
parent 67ddc1a3e1
commit 8fa4c4ff4e
3 changed files with 19 additions and 0 deletions

View File

@@ -80,4 +80,5 @@ if [ "$status" -ne 0 ]; then
exit "$status"
fi
cat "$CLIENT_LOG"
echo "OK"

View File

@@ -77,4 +77,5 @@ if [ "$status" -ne 0 ]; then
exit "$status"
fi
cat "$CLIENT_LOG"
echo "OK"

View File

@@ -0,0 +1,17 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
describe("Docker E2E observability", () => {
it.each(["scripts/e2e/mcp-channels-docker.sh", "scripts/e2e/cron-mcp-cleanup-docker.sh"])(
"prints successful MCP client proof logs from %s",
(scriptPath) => {
const script = readFileSync(scriptPath, "utf8");
const successTail = script.slice(script.lastIndexOf('if [ "$status" -ne 0 ]; then'));
expect(successTail).toContain('cat "$CLIENT_LOG"');
expect(successTail.indexOf('cat "$CLIENT_LOG"')).toBeLessThan(
successTail.indexOf('echo "OK"'),
);
},
);
});