Skip to content

Commit 23d2219

Browse files
committed
Test for querystring value
1 parent 30028dc commit 23d2219

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ sleep 5
4141

4242

4343
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)
44+
REQUEST=$(curl -s -k -X PUT -H "Arbitrary:Header" -d aaa=bbb 'https://localhost:8443/hello-world?ccc=ddd&myquery=98765')
4545
if [ $(echo $REQUEST | jq -r '.path') == '/hello-world' ] && \
4646
[ $(echo $REQUEST | jq -r '.method') == 'PUT' ] && \
47+
[ $(echo $REQUEST | jq -r '.query.myquery') == '98765' ] && \
4748
[ $(echo $REQUEST | jq -r '.headers.arbitrary') == 'Header' ]
4849
then
4950
passed "HTTPS request passed."

0 commit comments

Comments
 (0)