diff --git a/tests/fail2ban.py b/tests/fail2ban.py index f4b48293..feda2796 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)