From d789a3dad025933e1682d648a4724f65f2c4065f Mon Sep 17 00:00:00 2001 From: phamann Date: Thu, 18 Apr 2019 22:33:07 +0100 Subject: [PATCH] Add intergration test for server disable authentication with client cert --- tests/test-server-disable-authentication.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/test-server-disable-authentication.py b/tests/test-server-disable-authentication.py index 13ec94383f4..0751180cdd8 100755 --- a/tests/test-server-disable-authentication.py +++ b/tests/test-server-disable-authentication.py @@ -29,7 +29,7 @@ '--cacert=root.crt', '--disable-authentication']) - # connect with client1, confirm that the tunnel is up + # connect with no client cert, confirm that the tunnel is up pair = SocketPair(TlsClient(None, 'root', 13001), TcpServer(13002)) pair.validate_can_send_from_client( "hello world", "1: client -> server") @@ -38,6 +38,16 @@ pair.validate_closing_client_closes_server( "1: client closed -> server closed") + # connect with client1 cert, confirm that the tunnel is up + pair2 = SocketPair( + TlsClient('client1', 'root', 13001), TcpServer(13002)) + pair2.validate_can_send_from_client( + "hello world", "1: client -> server") + pair2.validate_can_send_from_server( + "hello world", "1: server -> client") + pair2.validate_closing_client_closes_server( + "1: client closed -> server closed") + # connect with client2, confirm that the tunnel isn't up try: pair = SocketPair(