mosquitto/test/broker
2023-08-16 14:01:21 +01:00
..
c support plugin tick callbacks with per_listener_settings enabled 2021-12-27 23:23:58 +01:00
data Fix unused flags in CONNECT command being forced to be 0 in MQTT v3.1 2022-05-17 17:41:57 +01:00
01-bad-initial-packets.py Fix for Eclipse #581199 2023-08-16 14:01:21 +01:00
01-connect-575314.py Fix test 2021-10-06 09:54:19 +01:00
01-connect-allow-anonymous.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
01-connect-disconnect-v5.py Strict protocol compliance fixes, and extensive test suite. 2021-08-23 23:19:28 +01:00
01-connect-max-connections.py Fix max_connections option not being correctly counted. 2021-08-17 13:10:18 +01:00
01-connect-max-keepalive.py Apply max_keepalive to MQTT v3.1.1 and v3.1 clients. 2021-08-20 23:27:14 +01:00
01-connect-take-over.py Fix incorrect return code being sent in DISCONNECT. 2022-08-10 14:17:22 +01:00
01-connect-uname-no-password-denied.pwfile Initial contribution. 2014-05-07 23:27:00 +01:00
01-connect-uname-no-password-denied.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-uname-or-anon.pwfile Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
01-connect-uname-or-anon.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
01-connect-uname-password-denied-no-will.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-uname-password-denied.pwfile Initial contribution. 2014-05-07 23:27:00 +01:00
01-connect-uname-password-denied.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-uname-password-success-no-tls.pwfile [457373] Fix tests when compiled with WITH_TLS=no. 2015-01-16 21:39:42 +00:00
01-connect-uname-password-success-no-tls.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-windows-line-endings.py Fix problem parsing config files with Windows line endings. 2021-09-23 11:40:40 +01:00
01-connect-zero-length-id.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 2020-10-21 13:19:07 +01:00
02-shared-qos0-v5.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subhier-crash.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos0-long-topic.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos0-oversize-payload.py Fix message_size_limit not applying to the Will payload. 2021-01-19 11:51:50 +00:00
02-subpub-qos0-queued-bytes.py Fix QoS 0 messages not being delivered when max_queued_bytes was configured. 2021-03-08 23:23:45 +00:00
02-subpub-qos0-retain-as-publish.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos0-send-retain.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos0-subscription-id.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos0-topic-alias-unknown.py Send protocol error on topic alias not found. 2021-01-20 10:28:40 +00:00
02-subpub-qos0-topic-alias.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos1-message-expiry-retain.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos1-message-expiry-will.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
02-subpub-qos1-message-expiry.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
02-subpub-qos1-nolocal.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
02-subpub-qos1-oversize-payload.py Fix message_size_limit not applying to the Will payload. 2021-01-19 11:51:50 +00:00
02-subpub-qos1.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
02-subpub-qos2-1322.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
02-subpub-qos2-max-inflight-bytes.py Various fixes around inflight quota management. 2021-09-22 17:20:24 +01:00
02-subpub-qos2-pubrec-error.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos2-receive-maximum-1.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
02-subpub-qos2-receive-maximum-2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos2-receive-maximum-helper.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos2.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
02-subpub-recover-subscriptions.py Fix $share subscriptions not being recovered for durable clients. 2021-08-26 12:17:26 +01:00
02-subscribe-dollar-v5.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subscribe-invalid-utf8.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subscribe-long-topic.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subscribe-persistence-flipflop.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
03-pattern-matching.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-b2c-disconnect-qos1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-b2c-disconnect-qos2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-b2c-qos1-len.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-b2c-qos2-len.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-c2b-disconnect-qos2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-c2b-qos2-len.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-dollar-v5.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-dollar.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-invalid-utf8.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-long-topic.py Strict protocol compliance fixes, and extensive test suite. 2021-08-23 23:19:28 +01:00
03-publish-qos1-max-inflight-expire.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
03-publish-qos1-max-inflight.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 2020-10-21 13:19:07 +01:00
03-publish-qos1-no-subscribers-v5.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-qos1-queued-bytes.conf broker: support byte based queueing 2016-09-09 17:27:39 +00:00
03-publish-qos1-queued-bytes.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-qos1-retain-disabled.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
03-publish-qos1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-qos2-dup.py Fix for CVE-2023-28366 2023-08-16 14:01:21 +01:00
03-publish-qos2-max-inflight.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 2020-10-21 13:19:07 +01:00
03-publish-qos2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
04-retain-check-source-persist-diff-port.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
04-retain-check-source-persist.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
04-retain-check-source.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
04-retain-clear-multiple.py Fix some retained topic memory not being cleared immediately after used. 2022-11-29 11:55:55 +00:00
04-retain-qos0-clear.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
04-retain-qos0-fresh.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
04-retain-qos0-repeated.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
04-retain-qos0.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
04-retain-qos1-qos0.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
04-retain-upgrade-outgoing-qos.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
05-clean-session-qos1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
05-session-expiry-v5.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
06-bridge-b2br-disconnect-qos1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
06-bridge-b2br-disconnect-qos2.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
06-bridge-b2br-late-connection-retain.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
06-bridge-b2br-late-connection.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
06-bridge-b2br-remapping.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
06-bridge-br2b-disconnect-qos1.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
06-bridge-br2b-disconnect-qos2.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
06-bridge-br2b-remapping.py Merge remote-tracking branch 'origin/fixes' into develop 2020-09-24 17:03:14 +01:00
06-bridge-clean-session-core.py Parallelise bridge clean session test. 2021-07-28 15:54:21 +01:00
06-bridge-clean-session-csF-lcsF.py Parallelise bridge clean session test. 2021-07-28 15:54:21 +01:00
06-bridge-clean-session-csF-lcsN.py Parallelise bridge clean session test. 2021-07-28 15:54:21 +01:00
06-bridge-clean-session-csF-lcsT.py Parallelise bridge clean session test. 2021-07-28 15:54:21 +01:00
06-bridge-clean-session-csT-lcsF.py Parallelise bridge clean session test. 2021-07-28 15:54:21 +01:00
06-bridge-clean-session-csT-lcsN.py Parallelise bridge clean session test. 2021-07-28 15:54:21 +01:00
06-bridge-clean-session-csT-lcsT.py Parallelise bridge clean session test. 2021-07-28 15:54:21 +01:00
06-bridge-fail-persist-resend-qos1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
06-bridge-fail-persist-resend-qos2.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
06-bridge-no-local.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
06-bridge-outgoing-retain.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
06-bridge-per-listener-settings.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
06-bridge-reconnect-local-out.py Fix persisted clients being restored without a session expiry time. 2022-08-18 14:13:35 +01:00
07-will-control.py Reject Will messages that attempt to publish to $CONTROL/. 2023-08-16 14:01:21 +01:00
07-will-delay-invalid-573191.py Add missing test file. 2021-06-09 14:22:21 +01:00
07-will-delay-reconnect.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-delay-recover.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-delay-session-expiry2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-delay-session-expiry.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-delay.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-disconnect-with-will.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-invalid-utf8.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-no-flag.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-null-topic.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-null.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-oversize-payload.py Fix message_size_limit not applying to the Will payload. 2021-01-19 11:51:50 +00:00
07-will-per-listener.py Fix LWT messages not being delivered if per_listener_settings was set to true 2021-09-21 22:51:25 +01:00
07-will-properties.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-qos0.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-reconnect-1273.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
07-will-takeover.py Fix LWT not being sent on client takeover. 2020-12-13 23:11:02 +00:00
08-ssl-bridge-helper.py Convert tests to Python 3 2019-03-28 21:32:12 +00:00
08-ssl-bridge.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-cert-auth-crl.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-cert-auth-expired.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-cert-auth-revoked.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-cert-auth-without.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-cert-auth.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-identity.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-no-auth-wrong-ca.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-no-auth.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-connect-no-identity.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-ssl-hup-disconnect.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 2022-02-15 09:23:06 +01:00
08-tls-psk-bridge.psk Initial contribution. 2014-05-07 23:27:00 +01:00
08-tls-psk-bridge.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
08-tls-psk-pub.psk Initial contribution. 2014-05-07 23:27:00 +01:00
08-tls-psk-pub.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-acl-access-variants.py Merge branch 'feature/add-deny-option-for-acl' of git://github.com/BrandtHill/mosquitto into BrandtHill-feature/add-deny-option-for-acl 2020-10-14 11:30:16 +01:00
09-acl-change.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
09-acl-empty-file.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
09-auth-bad-method.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-extended-auth-change-username.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
09-extended-auth-multistep-reauth.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
09-extended-auth-multistep.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-extended-auth-reauth.py Fix broker sending duplicate CONNACK on failed MQTT v5 reauthentication. 2021-10-12 22:33:05 +01:00
09-extended-auth-single2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-extended-auth-single.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-plugin-acl-change.py Fix for #575314. 2021-08-30 16:14:27 +01:00
09-plugin-auth-acl-pub.py New plugin interface 2020-09-22 14:49:28 +01:00
09-plugin-auth-acl-sub-denied.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-plugin-auth-acl-sub.py New plugin interface 2020-09-22 14:49:28 +01:00
09-plugin-auth-context-params.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-plugin-auth-defer-unpwd-fail.py New plugin interface 2020-09-22 14:49:28 +01:00
09-plugin-auth-defer-unpwd-success.py New plugin interface 2020-09-22 14:49:28 +01:00
09-plugin-auth-msg-params.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
09-plugin-auth-unpwd-fail.py New plugin interface 2020-09-22 14:49:28 +01:00
09-plugin-auth-unpwd-success.py New plugin interface 2020-09-22 14:49:28 +01:00
09-plugin-auth-v2-unpwd-fail.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-plugin-auth-v2-unpwd-success.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
09-plugin-publish.py Allow plugins to send messages to specific clients. 2020-08-12 15:18:17 +01:00
09-plugin-tick.py support plugin tick callbacks with per_listener_settings enabled 2021-12-27 23:23:58 +01:00
09-pwfile-parse-invalid.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
10-listener-mount-point.py Fix listener mount_point not being removed on outgoing messages. 2021-08-22 08:23:13 +01:00
11-message-expiry.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
11-persistent-subscription-no-local.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
11-persistent-subscription-v5.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
11-persistent-subscription.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
11-pub-props.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
11-subscription-id.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
12-prop-assigned-client-identifier.py Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
12-prop-maximum-packet-size-broker.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
12-prop-maximum-packet-size-publish-qos1.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
12-prop-maximum-packet-size-publish-qos2.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
12-prop-response-topic-correlation-data.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
12-prop-response-topic.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
12-prop-server-keepalive.py Apply max_keepalive to MQTT v3.1.1 and v3.1 clients. 2021-08-20 23:27:14 +01:00
12-prop-subpub-content-type.py Strict protocol compliance fixes, and extensive test suite. 2021-08-23 23:19:28 +01:00
12-prop-subpub-payload-format.py Strict protocol compliance fixes, and extensive test suite. 2021-08-23 23:19:28 +01:00
13-malformed-publish-v5.py Strict protocol compliance fixes, and extensive test suite. 2021-08-23 23:19:28 +01:00
13-malformed-subscribe-v5.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
13-malformed-unsubscribe-v5.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
14-dynsec-acl.py dynsec: Better test coverage 2020-11-30 17:15:43 +00:00
14-dynsec-anon-group.py dynsec: Forbid deleting the anon group. 2022-08-16 12:55:48 +01:00
14-dynsec-auth.py These tests shouldn't allow anon access. 2020-11-26 10:27:54 +00:00
14-dynsec-client-invalid.py dynsec: Better test coverage 2020-11-30 17:15:43 +00:00
14-dynsec-client.py dynsec: Consistent behaviour when setting clientid. 2020-11-26 12:18:57 +00:00
14-dynsec-default-access.py These tests shouldn't allow anon access. 2020-11-26 10:27:54 +00:00
14-dynsec-disable-client.py Fix basic dynsec tests. 2020-11-05 23:48:11 +00:00
14-dynsec-group-invalid.py dynsec: Fix incorrect test command. 2020-11-30 13:14:14 +00:00
14-dynsec-group.py Fix test. 2021-01-11 14:31:41 +00:00
14-dynsec-modify-client.py dynsec: Consistent behaviour when setting clientid. 2020-11-26 12:18:57 +00:00
14-dynsec-modify-group.py Fix basic dynsec tests. 2020-11-05 23:48:11 +00:00
14-dynsec-modify-role.py dynsec: More modifyRole test coverage. 2020-11-26 17:24:39 +00:00
14-dynsec-plugin-invalid.py dynsec: Better test coverage 2020-11-30 17:15:43 +00:00
14-dynsec-role-invalid.py dynsec: Better test coverage 2020-11-30 17:15:43 +00:00
14-dynsec-role.py dynsec: Better test coverage 2020-11-30 17:15:43 +00:00
dynamic-security-init.json Fix basic dynsec tests. 2020-11-05 23:48:11 +00:00
Makefile Fix for CVE-2023-28366 2023-08-16 14:01:21 +01:00
mosq_test_helper.py Fix tests where broker suddenly disconnects client 2019-11-06 14:07:07 +00:00
msg_sequence_test.py Strict protocol compliance fixes, and extensive test suite. 2021-08-23 23:19:28 +01:00
prop_subpub_helper.py Strict protocol compliance fixes, and extensive test suite. 2021-08-23 23:19:28 +01:00
readme.txt Check for authentication method on CONNECT, and reject. 2019-03-06 16:12:36 +00:00
test.py Fix for CVE-2023-28366 2023-08-16 14:01:21 +01:00

----- Broker Tests -----

This folder contains a number of tests to exercise the functionality of the
broker. Feel free to add more.

Numbering is as follows:

01: Connection tests
02: Subscribe/unsubscribe tests
03: Publish tests
04: Retained message tests
05: Session management tests
06: Bridge tests
07: Will tests
08: TLS tests
09: Auth tests
10: Listener tests
11: Persistence tests
12: Property tests