mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-13 17:20:47 +00:00

- No external dependencies - No predefined directory structure - Able to launch any kind of shell script with custom parameters - Get script output as text event stream (SSE) - Using common Makefiles - Extends docker/dind Docker image
15 lines
301 B
Bash
Executable File
15 lines
301 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" \
|
|
--data @test.json \
|
|
$URL/test?firstname=obi-wan\&lastname=kenobi
|