add removerule test script

pull/1/head
Michael Zanetti 2014-01-25 13:46:59 +01:00
parent 4a4c3b9941
commit 842236ddf1
1 changed files with 7 additions and 0 deletions

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