mosquitto/test
Olivier Gayot b7fb911428 tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10
The function ssl.wrap_socket() is deprecated starting Python 3.7 because
it does not support hostname matching (which is considered insecure). In
Python 3.10, the function now throws warnings at runtime, which makes
Ubuntu / Debian autopkgtest fail.

The function ssl.SSLContext.wrap_socket comes in as the replacement and
has support for SNI and hostname matching.

Replaced all uses of ssl.wrap_socket() by equivalent using
ssl.SSLContext.wrap_socket().

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-02-15 09:23:06 +01:00
..
broker tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
client Fix running of basic client tests. 2020-10-14 10:17:49 +01:00
lib tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
old Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
random Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
ssl Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
unit Fix mosquitto_topic_matches_sub2() not using the length parameters. 2021-11-16 23:14:24 +00:00
Makefile Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
mosq_test.py Strict protocol compliance fixes, and extensive test suite. 2021-08-23 23:19:28 +01:00
mqtt5_opts.py Tests and fixes for subscription options. 2018-12-19 12:54:04 +00:00
mqtt5_props.py Convert tests to Python 3 2019-03-28 21:32:12 +00:00
mqtt5_rc.py Disallow writing to $ topics where appropriate. 2019-03-03 22:00:30 +00:00
ptest.py Sort failed tests when reporting. 2020-09-16 14:45:28 +01:00