Commit Graph

12 Commits (269756a171a63a2ff96f1973df11b6563020201a)

Author SHA1 Message Date
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>
4 years ago
Roger A. Light 69f84bbca9 Simplify "expect_packet" tests. 5 years ago
Roger A. Light 636d0f1f74 Fix printing on broker tests. 7 years ago
Roger A. Light 7e49d91898 Convert tests to Python 3 7 years ago
Roger A. Light 34e7da426c Use test helper for importing modules. 7 years ago
Roger A. Light 9fd55c0d44 Simplify broker tests with helper function. 7 years ago
Roger A. Light 5d2f5c25d7 Experimental parallel testing for broker. 8 years ago
Roger A. Light 51aa7b7121 Update tests as a step towards parallelism. 8 years ago
Roger A. Light 07b21f0fe5 Fix minor test problems highlighted by codacy.com. 10 years ago
Roger A. Light 15efd2d072 Various memory fixes. 11 years ago
Roger A. Light 6427105bf6 Tests can now use valgrind. 11 years ago
Roger Light 0364bd1be7 Initial contribution. 12 years ago