From 8964adf11156c7cc0f45abb4cc921a8fcab0202b Mon Sep 17 00:00:00 2001 From: josedpedroso Date: Thu, 5 Jul 2018 00:48:08 +0100 Subject: Added --web-auth option to require authentication to access the webserver. BasicHTTPAuth plugin now issues 401 on bad credentials to allow the user to try again. --- tests/test_websocketproxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_websocketproxy.py b/tests/test_websocketproxy.py index 7eede27..81c119e 100644 --- a/tests/test_websocketproxy.py +++ b/tests/test_websocketproxy.py @@ -139,8 +139,8 @@ class ProxyRequestHandlerTestCase(unittest.TestCase): self.handler.server.target_port = "someport" self.assertRaises(auth_plugins.AuthenticationError, - self.handler.validate_connection) + self.handler.auth_connection) self.handler.server.target_host = "someotherhost" - self.handler.validate_connection() + self.handler.auth_connection() -- cgit v1.2.1