mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
Gateway Credentials: allowlist password fixtures
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user