Skip to content

Commit 9b404b8

Browse files
Remove insecure (-k) option from curl commands to not skip SSL cert verification.
1 parent 1a7655c commit 9b404b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/postProcessTestRun.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ emitSuccessfulTestData () {
3737

3838
#echo -e "\nSuccess payload: $successReport\n"
3939
# Post the data as newline-delimited JSON
40-
curl -k "https://103443579803.collect.observeinc.com/v1/http" -H "Authorization: Bearer $OBSERVE_MOBILE_TOKEN" -H "Content-Type: application/x-ndjson" --data-binary @- <<< "$successReport"
40+
curl "https://103443579803.collect.observeinc.com/v1/http" -H "Authorization: Bearer $OBSERVE_MOBILE_TOKEN" -H "Content-Type: application/x-ndjson" --data-binary @- <<< "$successReport"
4141
successReport="" # Reset the successReport after emitting it
4242
successCount=0
4343
}
@@ -59,7 +59,7 @@ do
5959
# Wrap it in the "data" object for Observe
6060
payload="{\"data\": $eventPayload}"
6161
echo -e "\nsummary payload: $payload"
62-
curl -k "https://103443579803.collect.observeinc.com/v1/http" -H "Authorization: Bearer $OBSERVE_MOBILE_TOKEN" -H "Content-Type: application/json" -d "$payload"
62+
curl "https://103443579803.collect.observeinc.com/v1/http" -H "Authorization: Bearer $OBSERVE_MOBILE_TOKEN" -H "Content-Type: application/json" -d "$payload"
6363
fi
6464

6565
# For <testcase> lines, store the test info. We will construct the payload at </testcase>
@@ -157,6 +157,6 @@ do
157157
payload="{\"data\": $eventPayload}"
158158

159159
echo -e "\ncost payload: $payload"
160-
curl -k "https://103443579803.collect.observeinc.com/v1/http" -H "Authorization: Bearer $OBSERVE_MOBILE_TOKEN" -H "Content-Type: application/json" -d "$payload"
160+
curl "https://103443579803.collect.observeinc.com/v1/http" -H "Authorization: Bearer $OBSERVE_MOBILE_TOKEN" -H "Content-Type: application/json" -d "$payload"
161161
fi
162162
done < "$costFile"

0 commit comments

Comments
 (0)