commit 26c55efe34f317409e4277154bac4617db0d57cc
Author: Anton Kurbatov <email address hidden>
Date: Wed Nov 30 15:04:34 2022 +0000
Do not emit ssl warnings in the test_ssl_connection test
Since python3.10 we get a warning inside the ovs.stream module:
Warnings: {message : DeprecationWarning('ssl.PROTOCOL_TLS is
deprecated'), category : 'DeprecationWarning', filename :
'python3.10/site-packages/ovs/stream.py', lineno : 794, line : None}
or using python console:
>>> ssl.SSLContext(ssl.PROTOCOL_SSLv23)
<stdin>:1: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
<ssl.SSLContext object at 0x7f98620223c0>
>>>
This patch mocks the 'Connection.run' method that emits this warning
inside a thread. This patch also fixes a failure in the
test_distributed_port_binding_deleted_by_port_deletion test that was
catching the ssl warning from test_ssl_connection and therefore
failing.
Closes-Bug: #1998343
Signed-off-by: Anton Kurbatov <email address hidden>
Change-Id: I6a4b9222a63a0d0271069eb12d0c97dd3821a2cc
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/866178 /opendev. org/openstack/ neutron/ commit/ 26c55efe34f3174 09e4277154bac46 17db0d57cc
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 26c55efe34f3174 09e4277154bac46 17db0d57cc
Author: Anton Kurbatov <email address hidden>
Date: Wed Nov 30 15:04:34 2022 +0000
Do not emit ssl warnings in the test_ssl_connection test
Since python3.10 we get a warning inside the ovs.stream module:
Warnings: {message : DeprecationWarn ing('ssl. PROTOCOL_ TLS is ning', filename : 10/site- packages/ ovs/stream. py', lineno : 794, line : None}
deprecated'), category : 'DeprecationWar
'python3.
or using python console:
>>> ssl.SSLContext( ssl.PROTOCOL_ SSLv23)
<stdin>:1: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
<ssl.SSLContext object at 0x7f98620223c0>
>>>
This patch mocks the 'Connection.run' method that emits this warning distributed_ port_binding_ deleted_ by_port_ deletion test that was
inside a thread. This patch also fixes a failure in the
test_
catching the ssl warning from test_ssl_connection and therefore
failing.
Closes-Bug: #1998343 0271069eb12d0c9 7dd3821a2cc
Signed-off-by: Anton Kurbatov <email address hidden>
Change-Id: I6a4b9222a63a0d