mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 15:22:12 +03:00
The #7786 squash accidentally committed its worktree copy (.claude/worktrees/feat-7786/**, since untracked) and leaked probe tests (repro-8522/probe-9033/repro-8956 — each now green via #9355/#9385/#9354) plus a stray changelog.d/fixes/9159-fix.plan.md describing an UNMERGED fix (would fabricate a changelog entry at release time — removed; #9159's own PR ships its fragment). This restores the PR's actual deliverable at the right paths: the management-auth terminology guide (now with the required MDX frontmatter), its docs test (3/3 green) and its changelog fragment.
28 lines
912 B
TypeScript
28 lines
912 B
TypeScript
import { describe, it } from "node:test";
|
|
import { ok } from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
|
|
describe("Management auth documentation (#7786)", () => {
|
|
const docPath = "docs/guides/MANAGEMENT-AUTH.md";
|
|
const content = readFileSync(docPath, "utf-8");
|
|
|
|
it("exists and has content", () => {
|
|
ok(content.length > 500, "should have substantial content");
|
|
ok(content.includes("Dashboard JWT session"));
|
|
ok(content.includes("CLI machine-id token"));
|
|
ok(content.includes("oma_"));
|
|
});
|
|
|
|
it("documents all four credential families", () => {
|
|
const families = ["Dashboard JWT", "CLI machine-id", "oma_", "Manage-scope"];
|
|
for (const f of families) {
|
|
ok(content.includes(f), `should document ${f}`);
|
|
}
|
|
});
|
|
|
|
it("mentions relevant auth header examples", () => {
|
|
ok(content.includes("Authorization"));
|
|
ok(content.includes("Bearer"));
|
|
});
|
|
});
|