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(