From bf5e9200f8b6f4f9790b9e30df429b1467580ef1 Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sun, 26 Jun 2016 13:26:42 +0200 Subject: [PATCH] Update owncloud url to use webdav and increase http timeout --- tests/fail2ban.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fail2ban.py b/tests/fail2ban.py index f4b4829..feda279 100644 --- a/tests/fail2ban.py +++ b/tests/fail2ban.py @@ -85,7 +85,7 @@ def http_test(url, expected_status, postdata=None, qsargs=None, auth=None): auth=HTTPBasicAuth(*auth) if auth else None, data=postdata, headers={'User-Agent': 'Mail-in-a-Box fail2ban tester'}, - timeout=4) + timeout=8) except requests.exceptions.ConnectionError as e: if "Connection refused" in str(e): raise IsBlocked() @@ -187,7 +187,7 @@ if __name__ == "__main__": run_test(http_test, ["/admin/munin/", 401], 20, 30, 1) # ownCloud - run_test(http_test, ["/cloud/remote.php/caldav/calendars/user@domain/personal", 401], 20, 30, 1) + run_test(http_test, ["/cloud/remote.php/webdav", 401, None, None, ["aa", "aa"]], 20, 30, 1) # restart fail2ban so that this client machine is no longer blocked restart_fail2ban_service(final=True)