Gateway Credentials: allowlist password fixtures

This commit is contained in:
Vincent Koc
2026-03-07 16:26:16 -08:00
parent 889a60e122
commit ace64831e0

View File

@@ -125,18 +125,18 @@ describe("resolveGatewayCredentialsFromConfig", () => {
cfg: cfg({
gateway: {
mode: "local",
auth: { token: "config-token", password: "config-password" },
auth: { token: "config-token", password: "config-password" }, // pragma: allowlist secret
},
}),
env: {
OPENCLAW_GATEWAY_TOKEN: "env-token",
OPENCLAW_GATEWAY_PASSWORD: "env-password",
OPENCLAW_GATEWAY_PASSWORD: "env-password", // pragma: allowlist secret
OPENCLAW_SERVICE_KIND: "gateway",
} as NodeJS.ProcessEnv,
});
expect(resolved).toEqual({
token: "config-token",
password: "env-password",
password: "env-password", // pragma: allowlist secret
});
});