From 952e13edc1607a07713b71609ae9f27218a68fbe Mon Sep 17 00:00:00 2001 From: Nicolas Barraud Date: Mon, 31 Mar 2025 11:37:47 -0400 Subject: [PATCH] Update cli-tests.js --- bin/scripts/cli-tests.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/bin/scripts/cli-tests.js b/bin/scripts/cli-tests.js index 4c4eb50..3c0accd 100755 --- a/bin/scripts/cli-tests.js +++ b/bin/scripts/cli-tests.js @@ -337,6 +337,30 @@ async function runTests() { "tools/list", ); + // Test 5b: CLI mode with environment variable containing equals sign in value + await runBasicTest( + "env_variable_with_equals", + TEST_CMD, + ...TEST_ARGS, + "-e", + "API_KEY=abc123=xyz789==", + "--cli", + "--method", + "tools/list", + ); + + // Test 5c: CLI mode with environment variable containing base64-encoded value + await runBasicTest( + "env_variable_with_base64", + TEST_CMD, + ...TEST_ARGS, + "-e", + "JWT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0=", + "--cli", + "--method", + "tools/list", + ); + console.log( `\n${colors.YELLOW}=== Running Config File Tests ===${colors.NC}`, );