fix(tests): X-Test-Sub → X-Auth-Token во всех тест-скриптах, cleanup для test59.sh
This commit is contained in:
@@ -39,14 +39,14 @@ create_call() {
|
||||
local sub="$1"
|
||||
local body="$2"
|
||||
curl -s -w "\n%{http_code}" --max-time 60 -X POST "${BASE}/functions" \
|
||||
-H "X-Test-Sub: ${sub}" -H 'Content-Type: application/json' -d "$body"
|
||||
-H "X-Auth-Token: ${sub}" -H 'Content-Type: application/json' -d "$body"
|
||||
}
|
||||
|
||||
invoke_call() {
|
||||
local sub="$1"
|
||||
local name="$2"
|
||||
curl -s --max-time 45 -X POST "${BASE}/functions/${name}/invoke" \
|
||||
-H "X-Test-Sub: ${sub}" -H 'Content-Type: application/json' -d '{}' || true
|
||||
-H "X-Auth-Token: ${sub}" -H 'Content-Type: application/json' -d '{}' || true
|
||||
}
|
||||
|
||||
echo "=== USER JOURNEYS START run=$RUN_ID count=$COUNT ==="
|
||||
@@ -90,9 +90,9 @@ for i in $(seq 1 "$COUNT"); do
|
||||
done
|
||||
[ "$INV_STATUS" = "200" ] || RESULT="FAIL invoke=${INV_STATUS}"
|
||||
|
||||
DEL1=$(curl -s -o /dev/null -w "%{http_code}" --max-time 45 -X DELETE "${BASE}/functions/${FN}" -H "X-Test-Sub: ${U}")
|
||||
DEL1=$(curl -s -o /dev/null -w "%{http_code}" --max-time 45 -X DELETE "${BASE}/functions/${FN}" -H "X-Auth-Token: ${U}")
|
||||
[ "$DEL1" = "200" ] || RESULT="FAIL delete1=${DEL1}"
|
||||
DEL2=$(curl -s -o /dev/null -w "%{http_code}" --max-time 45 -X DELETE "${BASE}/functions/${FN}" -H "X-Test-Sub: ${U}")
|
||||
DEL2=$(curl -s -o /dev/null -w "%{http_code}" --max-time 45 -X DELETE "${BASE}/functions/${FN}" -H "X-Auth-Token: ${U}")
|
||||
[ "$DEL2" = "404" ] || RESULT="FAIL delete2=${DEL2}"
|
||||
|
||||
echo "$i:$RESULT" > "${TMP}/user-$i"
|
||||
|
||||
Reference in New Issue
Block a user