mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-21 21:56:46 +00:00
test: verify gateway probe summaries
This commit is contained in:
@@ -247,8 +247,9 @@ describe("probe reachability classification", () => {
|
||||
|
||||
expect(isScopeLimitedProbeFailure(probe)).toBe(true);
|
||||
expect(isProbeReachable(probe)).toBe(true);
|
||||
expect(renderProbeSummaryLine(probe, false)).toContain("Capability: write-capable");
|
||||
expect(renderProbeSummaryLine(probe, false)).toContain("Read probe: limited");
|
||||
expect(renderProbeSummaryLine(probe, false)).toBe(
|
||||
"Connect: ok (51ms) · Capability: write-capable · Read probe: limited - missing scope: operator.read",
|
||||
);
|
||||
});
|
||||
|
||||
it("treats post-connect read failures as reachable with failed diagnostics", () => {
|
||||
@@ -272,8 +273,9 @@ describe("probe reachability classification", () => {
|
||||
expect(isScopeLimitedProbeFailure(probe)).toBe(false);
|
||||
expect(isPostConnectProbeFailure(probe)).toBe(true);
|
||||
expect(isProbeReachable(probe)).toBe(true);
|
||||
expect(renderProbeSummaryLine(probe, false)).toContain("Capability: connect-only");
|
||||
expect(renderProbeSummaryLine(probe, false)).toContain("Read probe: failed");
|
||||
expect(renderProbeSummaryLine(probe, false)).toBe(
|
||||
"Connect: ok (43ms) · Capability: connect-only · Read probe: failed - unknown method: status",
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps failed-before-connect probes unreachable", () => {
|
||||
|
||||
Reference in New Issue
Block a user