We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5613125 commit 82bb56cCopy full SHA for 82bb56c
1 file changed
tests.sh
@@ -73,6 +73,15 @@ else
73
exit 1
74
fi
75
76
+REQUEST_WITH_INVALID_SLEEP_MS=$(curl -o /dev/null -Ss -H "x-set-response-delay-ms: XXXX" -k https://localhost:8443/ -w '%{time_total}')
77
+if [[ $(echo "$REQUEST_WITH_INVALID_SLEEP_MS<2" | bc -l) == 1 ]]; then
78
+ passed "Request with invalid response delay passed"
79
+else
80
+ failed "Request with invalid response delay failed"
81
+ echo $REQUEST_WITH_INVALID_SLEEP_MS
82
+ exit 1
83
+fi
84
+
85
REQUEST=$(curl -s -X PUT -H "Arbitrary:Header" -d aaa=bbb http://localhost:8080/hello-world)
86
if [ $(echo $REQUEST | jq -r '.path') == '/hello-world' ] && \
87
[ $(echo $REQUEST | jq -r '.method') == 'PUT' ] && \
0 commit comments