feat: complete remaining Go backend modules
This commit is contained in:
1 parent
cea2751dc5
commit
aef5a97165
145 files changed
+18376
-199
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const fixtureUrl = new URL("../contracts/logs/runtime-v1.json", import.meta.url);
|
||||
|
||||
describe("Go runtime logs compatibility fixture", () => {
|
||||
it("freezes storage, bounds, ordering, and redaction behavior", async () => {
|
||||
const fixture = JSON.parse(await readFile(fixtureUrl, "utf8"));
|
||||
expect(fixture).toEqual({
|
||||
version: 1,
|
||||
fileName: "server-events.jsonl",
|
||||
rotatedSuffix: ".1",
|
||||
defaultLimit: 100,
|
||||
minimumLimit: 1,
|
||||
maximumLimit: 500,
|
||||
maximumTextLength: 20000,
|
||||
maximumDepth: 5,
|
||||
maximumArrayItems: 50,
|
||||
maximumObjectKeys: 80,
|
||||
corruptLines: "skip",
|
||||
order: "newest-first",
|
||||
redactedValue: "[redacted]",
|
||||
redactedJwt: "[jwt-redacted]"
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user