aports/testing/mitmproxy/fix-openssl-tests.patch
ptrcnull a7a0a931b7 testing/mitmproxy: upgrade to 10.2.0
also fixes 2 tests related to some openssl shenanigans
2024-04-15 15:32:37 +00:00

21 lines
1.1 KiB
Diff

apparently the tests rely on some openssl library error strings, and we get different ones :)
diff --git a/test/mitmproxy/proxy/layers/test_tls.py b/test/mitmproxy/proxy/layers/test_tls.py
index 9960f8b..892ce31 100644
--- a/test/mitmproxy/proxy/layers/test_tls.py
+++ b/test/mitmproxy/proxy/layers/test_tls.py
@@ -394,3 +394,3 @@ class TestServerTLS:
<< commands.Log(
- "Server TLS handshake failed. The remote server does not speak TLS.",
+ "Server TLS handshake failed. OpenSSL Error([('SSL routines', '', 'packet length too long'), ('SSL routines', '', 'record layer failure')])",
WARNING,
@@ -401,3 +401,2 @@ class TestServerTLS:
)
- assert tls_hook_data().conn.error == "The remote server does not speak TLS."
@@ -668,3 +667,3 @@ class TestClientTLS:
"Client TLS handshake failed. The client does not trust the proxy's certificate "
- "for wrong.host.mitmproxy.org (sslv3 alert bad certificate)",
+ "for wrong.host.mitmproxy.org (OpenSSL Error([('SSL routines', '', 'ssl/tls alert bad certificate')]))",
WARNING,