From edd17cecaa842060eea9196b4e0fb0cfb0f5fa9c Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Thu, 16 Apr 2026 06:11:32 -0700 Subject: [PATCH] fix(e2e): read auth_token not token from test-token response --- tests/e2e/test_api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/test_api.sh b/tests/e2e/test_api.sh index 75b7d971..824c437b 100644 --- a/tests/e2e/test_api.sh +++ b/tests/e2e/test_api.sh @@ -64,7 +64,7 @@ ECHO_ID=$(echo "$R" | python3 -c "import sys,json; print(json.load(sys.stdin)['i # Debug: show what the test-token endpoint returns TEST_TOKEN_RAW=$(curl -s "$BASE/admin/workspaces/$ECHO_ID/test-token") echo " test-token response: $TEST_TOKEN_RAW" -ADMIN_TOKEN=$(echo "$TEST_TOKEN_RAW" | python3 -c "import sys,json; print(json.load(sys.stdin).get('token',''))" 2>/dev/null || echo "") +ADMIN_TOKEN=$(echo "$TEST_TOKEN_RAW" | python3 -c "import sys,json; print(json.load(sys.stdin).get('auth_token',''))" 2>/dev/null || echo "") if [ -n "$ADMIN_TOKEN" ]; then echo " (acquired admin token: ${ADMIN_TOKEN:0:8}...)" else