diff --git a/operator_multiuser_test.sh b/operator_multiuser_test.sh index 53e227b..20b267d 100755 --- a/operator_multiuser_test.sh +++ b/operator_multiuser_test.sh @@ -199,7 +199,7 @@ run_user_test() { code=$(curl -s -o /dev/null -w "%{http_code}" -X POST \ "$API_BASE/namespaces/${ns}/services/${svc}/upload" \ -H "Authorization: Bearer $token" \ - -F "file=@${zipf}") + -F "code=@${zipf}") rm -f "$zipf" if [[ "$code" == "200" ]]; then echo "U${n}-3 PASS upload($code)" @@ -207,6 +207,8 @@ run_user_test() { else echo "U${n}-3 FAIL upload=$code" (( fail++ )) + printf '%d %d\n' "$pass" "$fail" > "$RESULTS_DIR/user_${n}.result" + return fi # -----------------------------------------------------------------------