mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-07 19:29:19 +00:00
16 lines
328 B
Bash
Executable File
16 lines
328 B
Bash
Executable File
#!/bin/sh
|
|
|
|
URL=http://localhost:8080
|
|
|
|
echo "Test URL: $URL"
|
|
echo "Test bad URL"
|
|
curl -H "Content-Type: application/json" \
|
|
--data @test.json \
|
|
$URL/bad/action
|
|
|
|
echo "Test hook"
|
|
curl -H "Content-Type: application/json" \
|
|
-H "X-API-Key: test" \
|
|
--data @test.json \
|
|
$URL/test?firstname=obi-wan\&lastname=kenobi
|