You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
210 B
Bash

sleep 5
ping -c 5 target
curl -X POST target:8080/api/id/1
if curl -X POST target:8080/api/id/1 | grep -q '{"op":"POST","id":1}'; then
echo "Tests passed!"
exit 0
else
echo "Tests failed!"
exit 1
fi