We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30028dc commit 23d2219Copy full SHA for 23d2219
1 file changed
tests.sh
@@ -41,9 +41,10 @@ sleep 5
41
42
43
message " Make http(s) request, and test the path, method, header and status code. "
44
-REQUEST=$(curl -s -k -X PUT -H "Arbitrary:Header" -d aaa=bbb https://localhost:8443/hello-world)
+REQUEST=$(curl -s -k -X PUT -H "Arbitrary:Header" -d aaa=bbb 'https://localhost:8443/hello-world?ccc=ddd&myquery=98765')
45
if [ $(echo $REQUEST | jq -r '.path') == '/hello-world' ] && \
46
[ $(echo $REQUEST | jq -r '.method') == 'PUT' ] && \
47
+ [ $(echo $REQUEST | jq -r '.query.myquery') == '98765' ] && \
48
[ $(echo $REQUEST | jq -r '.headers.arbitrary') == 'Header' ]
49
then
50
passed "HTTPS request passed."
0 commit comments