mosquitto/test/broker
Roger A. Light cf1c156765 New plugin interface
This is not specific to authentication, and allows plugins greater flexibility in what events they are interested in. It also adds message handling, and $CONTROL handling.
2020-09-22 14:49:28 +01:00
..
c New plugin interface 2020-09-22 14:49:28 +01:00
01-connect-allow-anonymous.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
01-connect-bad-packet.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-disconnect-v5.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-duplicate.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-invalid-id-0.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-invalid-id-missing.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-invalid-id-utf8.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-invalid-protonum.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-invalid-reserved.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-success.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-uname-invalid-utf8.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-uname-no-flag.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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-uname-pwd-no-flag.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
01-connect-zero-length-id.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +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-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 Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos0-topic-alias.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos0.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos1-bad-pubcomp.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos1-bad-pubrec.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 Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos1-message-expiry.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos1-nolocal.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
02-subpub-qos1.py Optimise use of db__message_write() 2020-08-12 15:29:08 +01:00
02-subpub-qos2-1322.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos2-bad-puback-1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos2-bad-puback-2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subpub-qos2-bad-pubcomp.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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-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 Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subscribe-qos0.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subscribe-qos1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-subscribe-qos2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-unsubscribe-invalid-no-topic.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-unsubscribe-qos0.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-unsubscribe-qos1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-unsubscribe-qos2-multiple.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
02-unsubscribe-qos2.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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-b2c-timeout-qos1.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-b2c-timeout-qos2.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-c2b-timeout-qos2.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 Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
03-publish-qos1-max-inflight.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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-max-inflight.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +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-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 Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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 Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
06-bridge-clean-session.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +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 Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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 Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +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-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 Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
08-ssl-bridge-helper.py Convert tests to Python 3 2019-03-28 21:32:12 +00:00
08-ssl-bridge.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
08-ssl-connect-cert-auth-crl.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
08-ssl-connect-cert-auth-expired.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
08-ssl-connect-cert-auth-revoked.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
08-ssl-connect-cert-auth-without.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
08-ssl-connect-cert-auth.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
08-ssl-connect-identity.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
08-ssl-connect-no-auth-wrong-ca.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
08-ssl-connect-no-auth.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
08-ssl-connect-no-identity.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
08-ssl-hup-disconnect.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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 Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +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-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-extended-auth-unsupported.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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-pwfile-parse-invalid.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
10-listener-mount-point.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
11-message-expiry.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +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 Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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-connect.py Default test timeout of 60s by default is too long. 2020-09-16 14:45:22 +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-maximum-packet-size-publish.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +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 Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +01:00
12-prop-session-expiry-invalid.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
12-prop-subpub-content-type.py Convert tests to Python 3 2019-03-28 21:32:12 +00:00
12-prop-subpub-payload-format.py Convert tests to Python 3 2019-03-28 21:32:12 +00:00
12-prop-topic-alias-invalid.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
13-malformed-publish-v5.py Breaking: allow_anonymous defaults to false. 2020-09-17 11:29:32 +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-plugin-register-control.py New plugin interface 2020-09-22 14:49:28 +01:00
Makefile New plugin interface 2020-09-22 14:49:28 +01:00
mosq_test_helper.py Fix tests where broker suddenly disconnects client 2019-11-06 14:07:07 +00:00
prop_subpub_helper.py Simplify "expect_packet" tests. 2020-08-12 15:18:18 +01:00
readme.txt Check for authentication method on CONNECT, and reject. 2019-03-06 16:12:36 +00:00
test.py New plugin interface 2020-09-22 14:49:28 +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