client/server (bin) test cases introduced, ultimate closes #1121, closes #1139

small code review and fixing of some bugs during client-server communication process (in the test cases);
This commit is contained in:
sebres
2016-02-11 17:57:23 +01:00
parent 5a053f4b74
commit afa1cdc3ae
10 changed files with 707 additions and 205 deletions

View File

@@ -31,7 +31,7 @@ __author__ = "Fail2Ban Developers"
__copyright__ = "Copyright (c) 2004-2008 Cyril Jaquier, 2012-2014 Yaroslav Halchenko, 2014-2016 Serg G. Brester"
__license__ = "GPL"
from fail2ban.client.fail2banclient import exec_command_line
from fail2ban.client.fail2banclient import exec_command_line, sys
if __name__ == "__main__":
exec_command_line()
exec_command_line(sys.argv)

View File

@@ -31,7 +31,7 @@ __author__ = "Fail2Ban Developers"
__copyright__ = "Copyright (c) 2004-2008 Cyril Jaquier, 2012-2014 Yaroslav Halchenko, 2014-2016 Serg G. Brester"
__license__ = "GPL"
from fail2ban.client.fail2banserver import exec_command_line
from fail2ban.client.fail2banserver import exec_command_line, sys
if __name__ == "__main__":
exec_command_line()
exec_command_line(sys.argv)