Skip to content

Commit 952e13e

Browse files
committed
Update cli-tests.js
1 parent 6eb6b3f commit 952e13e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

bin/scripts/cli-tests.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,30 @@ async function runTests() {
337337
"tools/list",
338338
);
339339

340+
// Test 5b: CLI mode with environment variable containing equals sign in value
341+
await runBasicTest(
342+
"env_variable_with_equals",
343+
TEST_CMD,
344+
...TEST_ARGS,
345+
"-e",
346+
"API_KEY=abc123=xyz789==",
347+
"--cli",
348+
"--method",
349+
"tools/list",
350+
);
351+
352+
// Test 5c: CLI mode with environment variable containing base64-encoded value
353+
await runBasicTest(
354+
"env_variable_with_base64",
355+
TEST_CMD,
356+
...TEST_ARGS,
357+
"-e",
358+
"JWT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0=",
359+
"--cli",
360+
"--method",
361+
"tools/list",
362+
);
363+
340364
console.log(
341365
`\n${colors.YELLOW}=== Running Config File Tests ===${colors.NC}`,
342366
);

0 commit comments

Comments
 (0)