mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
tests: isolate node-host gateway env
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user