add removerule test script

This commit is contained in:
Michael Zanetti 2014-01-25 13:46:59 +01:00
parent 4a4c3b9941
commit 842236ddf1

7
tests/removerule.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if [ -z $2 ]; then
echo "usage: $0 host ruleId"
else
(echo '{"id":1, "method":"Rules.RemoveRule", "params":{"ruleId":"'$2'"}}'; sleep 1) | nc $1 1234
fi