From 51aed715f3ba3e3c05283f172a52173f95f34dee Mon Sep 17 00:00:00 2001 From: Jeffrey Smith Date: Thu, 2 Apr 2026 10:37:28 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20login=20field=20name=20in=20CI=20test=20s?= =?UTF-8?q?cript:=20username=20=E2=86=92=20login?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The builtin auth provider expects {"login": ...} not {"username": ...}, causing a 400 binding error during test-runner authentication. Co-Authored-By: Claude Opus 4.6 (1M context) --- ci/run-surface-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/run-surface-tests.sh b/ci/run-surface-tests.sh index 54f85b1..dcbb497 100755 --- a/ci/run-surface-tests.sh +++ b/ci/run-surface-tests.sh @@ -30,7 +30,7 @@ echo " Server: ${SERVER_URL}" echo -e "${YELLOW}Authenticating...${NC}" TOKEN=$(curl -sf -X POST "${SERVER_URL}/api/v1/auth/login" \ -H "Content-Type: application/json" \ - -d "{\"username\":\"${ADMIN_USER}\",\"password\":\"${ADMIN_PASS}\"}" \ + -d "{\"login\":\"${ADMIN_USER}\",\"password\":\"${ADMIN_PASS}\"}" \ | node -e "process.stdin.resume(); let d=''; process.stdin.on('data',c=>d+=c); process.stdin.on('end',()=>{try{console.log(JSON.parse(d).token)}catch(e){process.exit(1)}})") if [ -z "$TOKEN" ]; then