mirror of https://github.com/openclaw/openclaw.git
tests: isolate node-host gateway env
This commit is contained in:
parent
6406cb2b45
commit
b1fcfba868
|
|
@ -76,6 +76,7 @@ describe("resolveNodeHostGatewayCredentials", () => {
|
||||||
await withEnvAsync(
|
await withEnvAsync(
|
||||||
{
|
{
|
||||||
OPENCLAW_GATEWAY_TOKEN: undefined,
|
OPENCLAW_GATEWAY_TOKEN: undefined,
|
||||||
|
OPENCLAW_GATEWAY_PASSWORD: undefined,
|
||||||
REMOTE_GATEWAY_TOKEN: "token-from-ref",
|
REMOTE_GATEWAY_TOKEN: "token-from-ref",
|
||||||
},
|
},
|
||||||
async () => {
|
async () => {
|
||||||
|
|
@ -91,6 +92,7 @@ describe("resolveNodeHostGatewayCredentials", () => {
|
||||||
await withEnvAsync(
|
await withEnvAsync(
|
||||||
{
|
{
|
||||||
OPENCLAW_GATEWAY_TOKEN: "token-from-env",
|
OPENCLAW_GATEWAY_TOKEN: "token-from-env",
|
||||||
|
OPENCLAW_GATEWAY_PASSWORD: undefined,
|
||||||
REMOTE_GATEWAY_TOKEN: "token-from-ref",
|
REMOTE_GATEWAY_TOKEN: "token-from-ref",
|
||||||
},
|
},
|
||||||
async () => {
|
async () => {
|
||||||
|
|
@ -106,6 +108,7 @@ describe("resolveNodeHostGatewayCredentials", () => {
|
||||||
await withEnvAsync(
|
await withEnvAsync(
|
||||||
{
|
{
|
||||||
OPENCLAW_GATEWAY_TOKEN: undefined,
|
OPENCLAW_GATEWAY_TOKEN: undefined,
|
||||||
|
OPENCLAW_GATEWAY_PASSWORD: undefined,
|
||||||
MISSING_REMOTE_GATEWAY_TOKEN: undefined,
|
MISSING_REMOTE_GATEWAY_TOKEN: undefined,
|
||||||
},
|
},
|
||||||
async () => {
|
async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue