webhookd/tests/test.sh
Nicolas Carlier 14c214efdf refactor(): Complete refactoring.
- 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
2018-01-02 16:11:59 +00:00

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