Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -99,7 +99,20 @@ describe("env example drift contract", () => {
|
||||
});
|
||||
|
||||
test("keeps platform and runtime keys explicitly cataloged", () => {
|
||||
for (const key of ["NODE_ENV", "PORT", "HOST", "WORKER_ENABLED", "BULLMQ_REDIS_URL", "REDIS_URL", "BROWSER_RUNTIME_URL", "BROWSER_RUNTIME_API_KEY", "BROWSER_SESSION_TIMEOUT_MS"]) {
|
||||
for (const key of [
|
||||
"NODE_ENV",
|
||||
"PORT",
|
||||
"HOST",
|
||||
"WEB_RUNTIME_SURFACE",
|
||||
"PORTAL_APP_HOST",
|
||||
"PORTAL_SESSION_SECRET",
|
||||
"WORKER_ENABLED",
|
||||
"BULLMQ_REDIS_URL",
|
||||
"REDIS_URL",
|
||||
"BROWSER_RUNTIME_URL",
|
||||
"BROWSER_RUNTIME_API_KEY",
|
||||
"BROWSER_SESSION_TIMEOUT_MS",
|
||||
]) {
|
||||
expect(catalogNames.has(key), `${key} must be an explicit catalog entry, not an example-only exemption`).toBe(true);
|
||||
}
|
||||
});
|
||||
@@ -118,6 +131,9 @@ describe("env example drift contract", () => {
|
||||
"WEB_APP_HOST",
|
||||
"ADMIN_APP_HOST",
|
||||
"API_HOST",
|
||||
"WEB_RUNTIME_SURFACE",
|
||||
"PORTAL_APP_HOST",
|
||||
"PORTAL_SESSION_SECRET",
|
||||
"API_ACCESS_TOKEN",
|
||||
"JWT_SECRET",
|
||||
"MAILJET_API_KEY",
|
||||
@@ -134,6 +150,31 @@ describe("env example drift contract", () => {
|
||||
);
|
||||
expect(keys).not.toEqual(expect.arrayContaining(["CRISP_CHAT_WEBSITE_ID"]));
|
||||
expect(contents).not.toContain("CRISP_CHAT_WEBSITE_ID");
|
||||
expect(contents).not.toContain("PORTAL_SERVER_URL");
|
||||
expect(contents).not.toContain("PORTAL_SERVER_FLY_TOKEN");
|
||||
});
|
||||
|
||||
test("documents the production core/portal split without enabling the portal secret globally", () => {
|
||||
const path = ".env.production.example";
|
||||
const contents = readProjectFile(path);
|
||||
const keys = parseEnvExampleKeys(contents);
|
||||
const requiredKeys = parseUncommentedEnvExampleKeys(contents);
|
||||
|
||||
expect(keys).toEqual(expect.arrayContaining(["WEB_RUNTIME_SURFACE", "PORTAL_APP_HOST", "PORTAL_SESSION_SECRET"]));
|
||||
expect(requiredKeys).toEqual(expect.arrayContaining(["WEB_RUNTIME_SURFACE", "PORTAL_APP_HOST"]));
|
||||
expect(requiredKeys, `${path} must keep the portal-only secret commented`).not.toContain("PORTAL_SESSION_SECRET");
|
||||
expect(contents).not.toContain("PORTAL_SERVER_URL");
|
||||
expect(contents).not.toContain("PORTAL_SERVER_FLY_TOKEN");
|
||||
});
|
||||
|
||||
test("documents optional KWP OAuth inputs without a redirect override", () => {
|
||||
const kwpKeys = ["KWP_OAUTH_CLIENT_ID", "KWP_OAUTH_CLIENT_SECRET", "KWP_OAUTH_SCOPES", "KWP_CUSTOMER_CODE", "KWP_OIDC_ISSUER", "KWP_HIVEGRID_TENANT_ID", "KWP_MANDANT"];
|
||||
|
||||
for (const path of [".env.example", ".env.local.example", ".env.production.example"]) {
|
||||
const contents = readProjectFile(path);
|
||||
expect(parseEnvExampleKeys(contents), path).toEqual(expect.arrayContaining(kwpKeys));
|
||||
expect(contents, path).not.toContain("KWP_OAUTH_REDIRECT_URI");
|
||||
}
|
||||
});
|
||||
|
||||
test("documents worker runtime keys in .env.production.example without required REDIS_URL", () => {
|
||||
|
||||
Reference in new issue
Block a user