You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mosquitto/test/lib
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
..
c Pointless whitespace tidy. 4 years ago
cpp Fix duplicate frees in tests. 5 years ago
01-con-discon-success.py Simplify "expect_packet" tests. 5 years ago
01-keepalive-pingreq.py Simplify "expect_packet" tests. 5 years ago
01-no-clean-session.py Simplify "expect_packet" tests. 5 years ago
01-server-keepalive-pingreq.py Simplify "expect_packet" tests. 5 years ago
01-unpwd-set.py Simplify "expect_packet" tests. 5 years ago
01-will-set.py Simplify "expect_packet" tests. 5 years ago
01-will-unpwd-set.py Simplify "expect_packet" tests. 5 years ago
02-subscribe-qos0.py Simplify "expect_packet" tests. 5 years ago
02-subscribe-qos1.py Simplify "expect_packet" tests. 5 years ago
02-subscribe-qos2.py Simplify "expect_packet" tests. 5 years ago
02-unsubscribe-multiple-v5.py Simplify "expect_packet" tests. 5 years ago
02-unsubscribe-v5.py Simplify "expect_packet" tests. 5 years ago
02-unsubscribe.py Simplify "expect_packet" tests. 5 years ago
03-publish-b2c-qos1-unexpected-puback.py Don't treact unexpected PUBACK/COMP as fatal. 6 years ago
03-publish-b2c-qos1.py Simplify "expect_packet" tests. 5 years ago
03-publish-b2c-qos2-len.py Simplify "expect_packet" tests. 5 years ago
03-publish-b2c-qos2-unexpected-pubcomp.py Don't treact unexpected PUBACK/COMP as fatal. 6 years ago
03-publish-b2c-qos2-unexpected-pubrel.py Improve client test for unexpected pubrel. 5 years ago
03-publish-b2c-qos2.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos1-disconnect.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos1-len.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos1-receive-maximum.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 5 years ago
03-publish-c2b-qos1-timeout.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos2-disconnect.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos2-len.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos2-maximum-qos-0.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos2-maximum-qos-1.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos2-pubrec-error.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 5 years ago
03-publish-c2b-qos2-receive-maximum-1.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 5 years ago
03-publish-c2b-qos2-receive-maximum-2.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 5 years ago
03-publish-c2b-qos2-timeout.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos2.py Simplify "expect_packet" tests. 5 years ago
03-publish-qos0-no-payload.py Simplify "expect_packet" tests. 5 years ago
03-publish-qos0.py Simplify "expect_packet" tests. 5 years ago
03-request-response-correlation.py Simplify "expect_packet" tests. 5 years ago
03-request-response.py Simplify "expect_packet" tests. 5 years ago
04-retain-qos0.py Simplify "expect_packet" tests. 5 years ago
08-ssl-bad-cacert.py Convert tests to Python 3 7 years ago
08-ssl-connect-cert-auth-enc.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-connect-cert-auth.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-connect-no-auth.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-fake-cacert.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
09-util-topic-tokenise.py Convert tests to Python 3 7 years ago
11-prop-oversize-packet.py Simplify "expect_packet" tests. 5 years ago
11-prop-recv-qos0.py Simplify "expect_packet" tests. 5 years ago
11-prop-recv-qos1.py Simplify "expect_packet" tests. 5 years ago
11-prop-recv-qos2.py Simplify "expect_packet" tests. 5 years ago
11-prop-send-content-type.py Simplify "expect_packet" tests. 5 years ago
11-prop-send-payload-format.py Simplify "expect_packet" tests. 5 years ago
Makefile Pointless whitespace tidy. 4 years ago
mosq_test_helper.py Use test helper for importing modules. 7 years ago
test.py Don't treact unexpected PUBACK/COMP as fatal. 6 years ago