mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-07 18:23:41 +00:00
26 lines
480 B
Bash
Executable File
26 lines
480 B
Bash
Executable File
#!/bin/sh
|
|
|
|
URL=http://localhost:8080
|
|
|
|
echo "Test URL: $URL"
|
|
|
|
echo "Testing bad request..."
|
|
curl -H "Content-Type: application/json" \
|
|
--data @test.json \
|
|
$URL/bad/action
|
|
|
|
echo "Testing nominal case..."
|
|
curl -H "Content-Type: application/json" \
|
|
-H "X-API-Key: test" \
|
|
--data @test.json \
|
|
$URL/test?firstname=obi-wan\&lastname=kenobi
|
|
|
|
echo "Testing parallel request..."
|
|
curl -XPOST $URL/test &
|
|
curl -XPOST $URL/test &
|
|
curl -XPOST $URL/test &
|
|
|
|
wait
|
|
|
|
echo "Done"
|