Skip to content

Commit d789a3d

Browse files
committed
Add intergration test for server disable authentication with client cert
1 parent cdd6b79 commit d789a3d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/test-server-disable-authentication.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
'--cacert=root.crt',
3030
'--disable-authentication'])
3131

32-
# connect with client1, confirm that the tunnel is up
32+
# connect with no client cert, confirm that the tunnel is up
3333
pair = SocketPair(TlsClient(None, 'root', 13001), TcpServer(13002))
3434
pair.validate_can_send_from_client(
3535
"hello world", "1: client -> server")
@@ -38,6 +38,16 @@
3838
pair.validate_closing_client_closes_server(
3939
"1: client closed -> server closed")
4040

41+
# connect with client1 cert, confirm that the tunnel is up
42+
pair2 = SocketPair(
43+
TlsClient('client1', 'root', 13001), TcpServer(13002))
44+
pair2.validate_can_send_from_client(
45+
"hello world", "1: client -> server")
46+
pair2.validate_can_send_from_server(
47+
"hello world", "1: server -> client")
48+
pair2.validate_closing_client_closes_server(
49+
"1: client closed -> server closed")
50+
4151
# connect with client2, confirm that the tunnel isn't up
4252
try:
4353
pair = SocketPair(

0 commit comments

Comments
 (0)