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