upload-to-squad.sh: use "Authorization" in header for uploading
instead of the "Auth-Token" way as suggested here:
https://squad.readthedocs.io/en/latest/intro.html#submitting-results
Reported-by: Benjamin Copeland <benjamin.copeland@linaro.org>
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
diff --git a/automated/utils/upload-to-squad.sh b/automated/utils/upload-to-squad.sh
index 4f3ad8d..9dc8c9e 100755
--- a/automated/utils/upload-to-squad.sh
+++ b/automated/utils/upload-to-squad.sh
@@ -63,7 +63,7 @@
i=1
while [ $i -le "${RETRY_COUNT}" ]; do
# response is the squad testrun id when succeed
- response=$(curl ${CURL_VERBOSE_FLAG} --header "Auth-Token: ${SQUAD_ARCHIVE_SUBMIT_TOKEN}" --form "attachment=@${ATTACHMENT}" "${ARTIFACTORIAL_URL}")
+ response=$(curl ${CURL_VERBOSE_FLAG} --header "Authorization: token ${SQUAD_ARCHIVE_SUBMIT_TOKEN}" --form "attachment=@${ATTACHMENT}" "${ARTIFACTORIAL_URL}")
# generate the SQUAD url for download and report pass when uploading succeed
if echo "${response}" | grep -E "^[0-9]+$"; then