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/broker
Roger A. Light 351911bd8f Fix incorrect return code being sent in DISCONNECT.
This is for when a client session is taken over.

Closes #2607. Thanks to der-b
3 years ago
..
c support plugin tick callbacks with per_listener_settings enabled 4 years ago
data Fix unused flags in CONNECT command being forced to be 0 in MQTT v3.1 3 years ago
01-connect-575314.py Fix test 4 years ago
01-connect-allow-anonymous.py Breaking: allow_anonymous defaults to false. 5 years ago
01-connect-disconnect-v5.py Strict protocol compliance fixes, and extensive test suite. 4 years ago
01-connect-max-connections.py Fix `max_connections` option not being correctly counted. 4 years ago
01-connect-max-keepalive.py Apply max_keepalive to MQTT v3.1.1 and v3.1 clients. 4 years ago
01-connect-take-over.py Fix incorrect return code being sent in DISCONNECT. 3 years ago
01-connect-uname-no-password-denied.pwfile Initial contribution. 12 years ago
01-connect-uname-no-password-denied.py Simplify "expect_packet" tests. 5 years ago
01-connect-uname-or-anon.pwfile Breaking: allow_anonymous defaults to false. 5 years ago
01-connect-uname-or-anon.py Breaking: allow_anonymous defaults to false. 5 years ago
01-connect-uname-password-denied-no-will.py Simplify "expect_packet" tests. 5 years ago
01-connect-uname-password-denied.pwfile Initial contribution. 12 years ago
01-connect-uname-password-denied.py Simplify "expect_packet" tests. 5 years ago
01-connect-uname-password-success-no-tls.pwfile [457373] Fix tests when compiled with WITH_TLS=no. 11 years ago
01-connect-uname-password-success-no-tls.py Simplify "expect_packet" tests. 5 years ago
01-connect-windows-line-endings.py Fix problem parsing config files with Windows line endings. 4 years ago
01-connect-zero-length-id.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 5 years ago
02-shared-qos0-v5.py Simplify "expect_packet" tests. 5 years ago
02-subhier-crash.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos0-long-topic.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos0-oversize-payload.py Fix `message_size_limit` not applying to the Will payload. 5 years ago
02-subpub-qos0-queued-bytes.py Fix QoS 0 messages not being delivered when max_queued_bytes was configured. 5 years ago
02-subpub-qos0-retain-as-publish.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos0-send-retain.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos0-subscription-id.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos0-topic-alias-unknown.py Send protocol error on topic alias not found. 5 years ago
02-subpub-qos0-topic-alias.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos1-message-expiry-retain.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos1-message-expiry-will.py Pointless whitespace tidy. 4 years ago
02-subpub-qos1-message-expiry.py Pointless whitespace tidy. 4 years ago
02-subpub-qos1-nolocal.py Optimise use of db__message_write() 5 years ago
02-subpub-qos1-oversize-payload.py Fix `message_size_limit` not applying to the Will payload. 5 years ago
02-subpub-qos1.py Optimise use of db__message_write() 5 years ago
02-subpub-qos2-1322.py Pointless whitespace tidy. 4 years ago
02-subpub-qos2-max-inflight-bytes.py Various fixes around inflight quota management. 4 years ago
02-subpub-qos2-pubrec-error.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos2-receive-maximum-1.py Optimise use of db__message_write() 5 years ago
02-subpub-qos2-receive-maximum-2.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos2-receive-maximum-helper.py Simplify "expect_packet" tests. 5 years ago
02-subpub-qos2.py Optimise use of db__message_write() 5 years ago
02-subpub-recover-subscriptions.py Fix $share subscriptions not being recovered for durable clients. 4 years ago
02-subscribe-dollar-v5.py Simplify "expect_packet" tests. 5 years ago
02-subscribe-invalid-utf8.py Simplify "expect_packet" tests. 5 years ago
02-subscribe-long-topic.py Simplify "expect_packet" tests. 5 years ago
02-subscribe-persistence-flipflop.py Pointless whitespace tidy. 4 years ago
03-pattern-matching.py Simplify "expect_packet" tests. 5 years ago
03-publish-b2c-disconnect-qos1.py Simplify "expect_packet" tests. 5 years ago
03-publish-b2c-disconnect-qos2.py Simplify "expect_packet" tests. 5 years ago
03-publish-b2c-qos1-len.py Simplify "expect_packet" tests. 5 years ago
03-publish-b2c-qos2-len.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-disconnect-qos2.py Simplify "expect_packet" tests. 5 years ago
03-publish-c2b-qos2-len.py Simplify "expect_packet" tests. 5 years ago
03-publish-dollar-v5.py Simplify "expect_packet" tests. 5 years ago
03-publish-dollar.py Simplify "expect_packet" tests. 5 years ago
03-publish-invalid-utf8.py Simplify "expect_packet" tests. 5 years ago
03-publish-long-topic.py Strict protocol compliance fixes, and extensive test suite. 4 years ago
03-publish-qos1-max-inflight-expire.py Pointless whitespace tidy. 4 years ago
03-publish-qos1-max-inflight.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 5 years ago
03-publish-qos1-no-subscribers-v5.py Simplify "expect_packet" tests. 5 years ago
03-publish-qos1-queued-bytes.conf broker: support byte based queueing 9 years ago
03-publish-qos1-queued-bytes.py Simplify "expect_packet" tests. 5 years ago
03-publish-qos1-retain-disabled.py Breaking: allow_anonymous defaults to false. 5 years ago
03-publish-qos1.py Simplify "expect_packet" tests. 5 years ago
03-publish-qos2-max-inflight.py The broker now sends the receive-maximum property for MQTT v5 CONNACKs. 5 years ago
03-publish-qos2.py Simplify "expect_packet" tests. 5 years ago
04-retain-check-source-persist-diff-port.py Breaking: allow_anonymous defaults to false. 5 years ago
04-retain-check-source-persist.py Breaking: allow_anonymous defaults to false. 5 years ago
04-retain-check-source.py Breaking: allow_anonymous defaults to false. 5 years ago
04-retain-qos0-clear.py Simplify "expect_packet" tests. 5 years ago
04-retain-qos0-fresh.py Simplify "expect_packet" tests. 5 years ago
04-retain-qos0-repeated.py Simplify "expect_packet" tests. 5 years ago
04-retain-qos0.py Simplify "expect_packet" tests. 5 years ago
04-retain-qos1-qos0.py Simplify "expect_packet" tests. 5 years ago
04-retain-upgrade-outgoing-qos.py Breaking: allow_anonymous defaults to false. 5 years ago
05-clean-session-qos1.py Simplify "expect_packet" tests. 5 years ago
05-session-expiry-v5.py Simplify "expect_packet" tests. 5 years ago
06-bridge-b2br-disconnect-qos1.py Simplify "expect_packet" tests. 5 years ago
06-bridge-b2br-disconnect-qos2.py Pointless whitespace tidy. 4 years ago
06-bridge-b2br-late-connection-retain.py Breaking: allow_anonymous defaults to false. 5 years ago
06-bridge-b2br-late-connection.py Breaking: allow_anonymous defaults to false. 5 years ago
06-bridge-b2br-remapping.py Breaking: allow_anonymous defaults to false. 5 years ago
06-bridge-br2b-disconnect-qos1.py Breaking: allow_anonymous defaults to false. 5 years ago
06-bridge-br2b-disconnect-qos2.py Breaking: allow_anonymous defaults to false. 5 years ago
06-bridge-br2b-remapping.py Merge remote-tracking branch 'origin/fixes' into develop 5 years ago
06-bridge-clean-session-core.py Parallelise bridge clean session test. 4 years ago
06-bridge-clean-session-csF-lcsF.py Parallelise bridge clean session test. 4 years ago
06-bridge-clean-session-csF-lcsN.py Parallelise bridge clean session test. 4 years ago
06-bridge-clean-session-csF-lcsT.py Parallelise bridge clean session test. 4 years ago
06-bridge-clean-session-csT-lcsF.py Parallelise bridge clean session test. 4 years ago
06-bridge-clean-session-csT-lcsN.py Parallelise bridge clean session test. 4 years ago
06-bridge-clean-session-csT-lcsT.py Parallelise bridge clean session test. 4 years ago
06-bridge-fail-persist-resend-qos1.py Simplify "expect_packet" tests. 5 years ago
06-bridge-fail-persist-resend-qos2.py Pointless whitespace tidy. 4 years ago
06-bridge-no-local.py Simplify "expect_packet" tests. 5 years ago
06-bridge-outgoing-retain.py Breaking: allow_anonymous defaults to false. 5 years ago
06-bridge-per-listener-settings.py Simplify "expect_packet" tests. 5 years ago
06-bridge-reconnect-local-out.py Breaking: allow_anonymous defaults to false. 5 years ago
07-will-delay-invalid-573191.py Add missing test file. 4 years ago
07-will-delay-reconnect.py Simplify "expect_packet" tests. 5 years ago
07-will-delay-recover.py Simplify "expect_packet" tests. 5 years ago
07-will-delay-session-expiry.py Simplify "expect_packet" tests. 5 years ago
07-will-delay-session-expiry2.py Simplify "expect_packet" tests. 5 years ago
07-will-delay.py Simplify "expect_packet" tests. 5 years ago
07-will-disconnect-with-will.py Simplify "expect_packet" tests. 5 years ago
07-will-invalid-utf8.py Simplify "expect_packet" tests. 5 years ago
07-will-no-flag.py Simplify "expect_packet" tests. 5 years ago
07-will-null-topic.py Simplify "expect_packet" tests. 5 years ago
07-will-null.py Simplify "expect_packet" tests. 5 years ago
07-will-oversize-payload.py Fix `message_size_limit` not applying to the Will payload. 5 years ago
07-will-per-listener.py Fix LWT messages not being delivered if `per_listener_settings` was set to true 4 years ago
07-will-properties.py Simplify "expect_packet" tests. 5 years ago
07-will-qos0.py Simplify "expect_packet" tests. 5 years ago
07-will-reconnect-1273.py Simplify "expect_packet" tests. 5 years ago
07-will-takeover.py Fix LWT not being sent on client takeover. 5 years ago
08-ssl-bridge-helper.py Convert tests to Python 3 7 years ago
08-ssl-bridge.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-connect-cert-auth-crl.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-connect-cert-auth-expired.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-connect-cert-auth-revoked.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-connect-cert-auth-without.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-identity.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-connect-no-auth-wrong-ca.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-connect-no-identity.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-ssl-hup-disconnect.py tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10 4 years ago
08-tls-psk-bridge.psk Initial contribution. 12 years ago
08-tls-psk-bridge.py Breaking: allow_anonymous defaults to false. 5 years ago
08-tls-psk-pub.psk Initial contribution. 12 years ago
08-tls-psk-pub.py Simplify "expect_packet" tests. 5 years ago
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 5 years ago
09-acl-change.py Breaking: allow_anonymous defaults to false. 5 years ago
09-acl-empty-file.py Breaking: allow_anonymous defaults to false. 5 years ago
09-auth-bad-method.py Simplify "expect_packet" tests. 5 years ago
09-extended-auth-change-username.py Breaking: allow_anonymous defaults to false. 5 years ago
09-extended-auth-multistep-reauth.py Breaking: allow_anonymous defaults to false. 5 years ago
09-extended-auth-multistep.py Simplify "expect_packet" tests. 5 years ago
09-extended-auth-reauth.py Fix broker sending duplicate CONNACK on failed MQTT v5 reauthentication. 4 years ago
09-extended-auth-single.py Simplify "expect_packet" tests. 5 years ago
09-extended-auth-single2.py Simplify "expect_packet" tests. 5 years ago
09-plugin-acl-change.py Fix for #575314. 4 years ago
09-plugin-auth-acl-pub.py New plugin interface 5 years ago
09-plugin-auth-acl-sub-denied.py Simplify "expect_packet" tests. 5 years ago
09-plugin-auth-acl-sub.py New plugin interface 5 years ago
09-plugin-auth-context-params.py Simplify "expect_packet" tests. 5 years ago
09-plugin-auth-defer-unpwd-fail.py New plugin interface 5 years ago
09-plugin-auth-defer-unpwd-success.py New plugin interface 5 years ago
09-plugin-auth-msg-params.py Optimise use of db__message_write() 5 years ago
09-plugin-auth-unpwd-fail.py New plugin interface 5 years ago
09-plugin-auth-unpwd-success.py New plugin interface 5 years ago
09-plugin-auth-v2-unpwd-fail.py Simplify "expect_packet" tests. 5 years ago
09-plugin-auth-v2-unpwd-success.py Simplify "expect_packet" tests. 5 years ago
09-plugin-publish.py Allow plugins to send messages to specific clients. 5 years ago
09-plugin-tick.py support plugin tick callbacks with per_listener_settings enabled 4 years ago
09-pwfile-parse-invalid.py Simplify "expect_packet" tests. 5 years ago
10-listener-mount-point.py Fix listener mount_point not being removed on outgoing messages. 4 years ago
11-message-expiry.py Pointless whitespace tidy. 4 years ago
11-persistent-subscription-no-local.py Breaking: allow_anonymous defaults to false. 5 years ago
11-persistent-subscription-v5.py Breaking: allow_anonymous defaults to false. 5 years ago
11-persistent-subscription.py Breaking: allow_anonymous defaults to false. 5 years ago
11-pub-props.py Breaking: allow_anonymous defaults to false. 5 years ago
11-subscription-id.py Breaking: allow_anonymous defaults to false. 5 years ago
12-prop-assigned-client-identifier.py Pointless whitespace tidy. 4 years ago
12-prop-maximum-packet-size-broker.py Breaking: allow_anonymous defaults to false. 5 years ago
12-prop-maximum-packet-size-publish-qos1.py Optimise use of db__message_write() 5 years ago
12-prop-maximum-packet-size-publish-qos2.py Optimise use of db__message_write() 5 years ago
12-prop-response-topic-correlation-data.py Simplify "expect_packet" tests. 5 years ago
12-prop-response-topic.py Simplify "expect_packet" tests. 5 years ago
12-prop-server-keepalive.py Apply max_keepalive to MQTT v3.1.1 and v3.1 clients. 4 years ago
12-prop-subpub-content-type.py Strict protocol compliance fixes, and extensive test suite. 4 years ago
12-prop-subpub-payload-format.py Strict protocol compliance fixes, and extensive test suite. 4 years ago
13-malformed-publish-v5.py Strict protocol compliance fixes, and extensive test suite. 4 years ago
13-malformed-subscribe-v5.py Simplify "expect_packet" tests. 5 years ago
13-malformed-unsubscribe-v5.py Simplify "expect_packet" tests. 5 years ago
14-dynsec-acl.py dynsec: Better test coverage 5 years ago
14-dynsec-anon-group.py dynsec: Anon group tests 5 years ago
14-dynsec-auth.py These tests shouldn't allow anon access. 5 years ago
14-dynsec-client-invalid.py dynsec: Better test coverage 5 years ago
14-dynsec-client.py dynsec: Consistent behaviour when setting clientid. 5 years ago
14-dynsec-default-access.py These tests shouldn't allow anon access. 5 years ago
14-dynsec-disable-client.py Fix basic dynsec tests. 5 years ago
14-dynsec-group-invalid.py dynsec: Fix incorrect test command. 5 years ago
14-dynsec-group.py Fix test. 5 years ago
14-dynsec-modify-client.py dynsec: Consistent behaviour when setting clientid. 5 years ago
14-dynsec-modify-group.py Fix basic dynsec tests. 5 years ago
14-dynsec-modify-role.py dynsec: More modifyRole test coverage. 5 years ago
14-dynsec-plugin-invalid.py dynsec: Better test coverage 5 years ago
14-dynsec-role-invalid.py dynsec: Better test coverage 5 years ago
14-dynsec-role.py dynsec: Better test coverage 5 years ago
Makefile Fix incorrect return code being sent in DISCONNECT. 3 years ago
dynamic-security-init.json Fix basic dynsec tests. 5 years ago
mosq_test_helper.py Fix tests where broker suddenly disconnects client 6 years ago
msg_sequence_test.py Strict protocol compliance fixes, and extensive test suite. 4 years ago
prop_subpub_helper.py Strict protocol compliance fixes, and extensive test suite. 4 years ago
readme.txt Check for authentication method on CONNECT, and reject. 7 years ago
test.py Fix incorrect return code being sent in DISCONNECT. 3 years ago

readme.txt

----- 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