summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjosedpedroso <josedpedroso@gmail.com>2018-07-05 00:48:08 +0100
committerjosedpedroso <josedpedroso@gmail.com>2018-07-05 00:48:08 +0100
commit8964adf11156c7cc0f45abb4cc921a8fcab0202b (patch)
tree0ad6e4841ecb026d2b8e3c039063d66636436da2 /tests
parent38b77714a9987dc5fc4d4e6158c57072c568236a (diff)
downloadwebsockify-8964adf11156c7cc0f45abb4cc921a8fcab0202b.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_websocketproxy.py4
1 files changed, 2 insertions, 2 deletions
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()