0
This commit is contained in:
@@ -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
|
||||
|
||||
# -----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user