Commit 75c6e0e7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

tests: cover invalid unban CLI invocation

parent 1b8e4561
...@@ -9,3 +9,8 @@ find gateway prod-server ban-internal-server -type f -name '*.py' -exec \ ...@@ -9,3 +9,8 @@ find gateway prod-server ban-internal-server -type f -name '*.py' -exec \
python3 -B -c 'import pathlib, sys; p = pathlib.Path(sys.argv[1]); compile(p.read_bytes(), str(p), "exec")' {} \; python3 -B -c 'import pathlib, sys; p = pathlib.Path(sys.argv[1]); compile(p.read_bytes(), str(p), "exec")' {} \;
find ban-server -type f -name '*.php' -exec php -l {} \; find ban-server -type f -name '*.php' -exec php -l {} \;
find gateway prod-server common -type f -name '*.sh' -exec sh -n {} \; find gateway prod-server common -type f -name '*.sh' -exec sh -n {} \;
if python3 gateway/usr/share/eterban/unban.py >/dev/null 2>&1; then
echo 'unban.py without an IP must fail' >&2
exit 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment