mirror of
https://github.com/ncarlier/webhookd.git
synced 2024-09-20 08:55:28 +00:00
14c214efdf
- 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
|