Commit Graph

539 Commits

Author SHA1 Message Date
Michael Klishin 6e40d82276 [travis] Try 18.2 instead of 18.3
18.3 is the only version that repeatedly fails
(could be due to known TLS bugs).
2016-12-17 03:01:23 +03:00
Michael Klishin 1e3831cc13 Test against 18.3, 19.1, 19.2 on Travis 2016-12-17 02:49:15 +03:00
Michael Klishin 03f147d08a Merge pull request #110 from rabbitmq/rabbitmq-mqtt-73
Introduce mqtt_default_vhosts global parameter
2016-12-16 01:16:53 +03:00
Michael Klishin 2d3c004efb Merge branch 'stable' into rabbitmq-mqtt-73 2016-12-15 17:46:24 +03:00
Arnaud Cogoluègnes 7424551de0 Fix race condition in test 2016-12-15 15:38:42 +01:00
Arnaud Cogoluègnes 335997d140 Use clean sessions in last will retained test 2016-12-15 14:23:23 +01:00
Arnaud Cogoluègnes 20d35a1482 Use awaitility for Java tests 2016-12-15 12:46:14 +01:00
Arnaud Cogoluègnes 2a9a6cb261 Add test case for cert user/vhost mapping
Fixes #73
2016-12-13 17:31:34 +01:00
Arnaud Cogoluègnes 7e03af30fd Introduce mqtt_default_vhosts global parameter
Fixes #73
2016-12-13 14:46:15 +01:00
Arnaud Cogoluègnes d424894dc6 Test connection fails when vhost not allowed for cert user 2016-12-12 10:17:29 +01:00
Arnaud Cogoluègnes 8f9e8489c2 Optionally map user certificate to virtual host
Use a global runtime parameter to map the DN of the certificate
to a virtual host.

Fixes #73
2016-12-09 16:48:47 +01:00
Jean-Sébastien Pédron cf0a1d656a Update rabbitmq-components.mk 2016-12-08 19:14:49 +01:00
Michael Klishin 3ae7a2b2b2 Merge pull request #109 from rabbitmq/rabbitmq-mqtt-100
Gracefully close connections to non-existent virtual hosts
2016-12-07 16:14:05 +03:00
Arnaud Cogoluègnes 88820d02d9 Don't crash for clients without a last will
References #74
2016-12-07 11:21:47 +01:00
Michael Klishin b3f2bcfaed Merge branch 'stable' into rabbitmq-mqtt-100 2016-12-06 18:54:29 +03:00
Jean-Sébastien Pédron 1f0feb3399 Move from .app.src to Makefile variables
This is the recommended way with Erlang.mk.

By default, the version is inherited from rabbitmq-server-release when
the source archive is created, or computed from git-describe(1) (see
`rabbitmq-components.mk`). One can override the version from the command
line by setting the `PROJECT_VERSION` variable.

[#130992027]
2016-12-06 16:31:27 +01:00
Arnaud Cogoluègnes b1627afe81 Gracefully close connections to non-existent virtual hosts
Return CONNACK 4 code when the virtual host doesn't exist.
The MQTT description for this return code states "The data in
the user name or password is malformed", which not exactly
accurate but better than a pending or abruptly closed connection.
The server logs also a more meaningful message.

Fixes #100
2016-12-06 16:09:50 +01:00
Michael Klishin 39b1c933d1 Merge branch 'rabbitmq-mqtt-86' into stable 2016-12-06 17:56:10 +03:00
Arnaud Cogoluègnes 388d949645 Support Erlang string vhosts in retainer supervisor
Fixes #86
2016-12-06 11:03:02 +01:00
Michael Klishin bae3c88997 Merge branch 'rabbitmq-mqtt-74' into stable 2016-12-05 14:27:05 +03:00
Michael Klishin 97aa1ef4ae Destructure this right in function head 2016-12-05 14:25:15 +03:00
Arnaud Cogoluègnes a7a0174a41 Retain last will message
Fixes #74
2016-12-05 11:05:30 +01:00
Michael Klishin 3035cf175a Merge pull request #105 from rabbitmq/rabbitmq-management-236
Core metrics changes
2016-12-01 14:03:21 +03:00
Michael Klishin c5e57ba510 Merge branch 'stable' 2016-11-30 18:56:37 +03:00
Michael Klishin 73d3a43a14 Update rabbitmq-components.mk 2016-11-29 20:59:36 +03:00
Jean-Sébastien Pédron 4fe43b124e Update rabbitmq-components.mk 2016-11-25 10:51:00 +01:00
Jean-Sébastien Pédron a988711e4b Update rabbitmq-components.mk 2016-11-25 10:08:21 +01:00
Jean-Sébastien Pédron d62c1031f8 Merge branch 'stable' into rabbitmq-management-236 2016-11-24 12:10:39 +01:00
Jean-Sébastien Pédron 5c8dfedb04 Add rabbitmq_ct_client_helpers to TEST_DEPS 2016-11-24 10:32:13 +01:00
Jean-Sébastien Pédron 2d2f525ef7 Update rabbitmq-components.mk 2016-11-23 18:06:05 +01:00
Gerhard Lazu 5fdcfdef91 Update erlang.mk 2016-11-22 16:19:52 +00:00
Gerhard Lazu 5767f5106c Update rabbitmq-components.mk 2016-11-22 16:16:38 +00:00
Michael Klishin 0bf571337e Merge pull request #103 from binarin/fix-clean-target
Fix `clean` make target for source dist tarballs
2016-10-20 01:10:09 +08:00
Alexey Lebedeff 7697687db9 Fix `clean` make target for source dist tarballs
Source dist tarballs made by `rabbitmq-server-release` doesn't include
testsuites, so `clean` target breaks under such conditions.
2016-10-19 17:26:59 +03:00
Daniil Fedotov c610ca1c0e Do not log java test output 2016-09-28 11:39:44 +01:00
Arnaud Cogoluègnes 46d0977209 Use quiet mode for Maven 2016-09-27 15:33:31 +02:00
Arnaud Cogoluègnes b75bbf822a Merge pull request #102 from rabbitmq/rabbitmq-mqtt-101
Switch Java tests to maven

Fixes #101
2016-09-27 13:52:48 +02:00
Arnaud Cogoluègnes 2d442353ee Refactor Java tests
Use JUnit4-style tests, increase max-in-flight messages to make
tests more resilient, synchronize test variables.
2016-09-27 13:32:40 +02:00
Jean-Sébastien Pédron e197159475 Merge branch 'stable' into rabbitmq-management-236 2016-09-27 12:45:03 +02:00
Arnaud Cogoluègnes c076259000 Specify file format for client certificate
Use PKCS12 to load the KeyStore object, not JKS. Java 8
manages to load the certificate anyway, but not Java 6, nor Java  7.
2016-09-27 10:30:44 +02:00
Daniil Fedotov 9eab2c7704 Report java test result in test log 2016-09-26 13:45:05 +01:00
Daniil Fedotov e8b4a5bd08 Set up travis to install maven 2016-09-26 10:55:51 +01:00
Daniil Fedotov abe00f3d1a Cleanup comments 2016-09-23 18:06:05 +01:00
Daniil Fedotov 507ef875ea test dir cleanup 2016-09-23 17:19:03 +01:00
Daniil Fedotov 493805fd95 Run tests via maven 2016-09-23 16:42:21 +01:00
Jean-Sébastien Pédron 1c8ebee87c Update rabbitmq-components.mk 2016-09-23 11:23:07 +02:00
Jean-Sébastien Pédron 6ec83d7d05 Update erlang.mk 2016-09-22 17:56:52 +02:00
Jean-Sébastien Pédron b17725bc18 rabbitmq_mqtt.app: Depend on ranch and rabbit_common 2016-09-20 11:14:22 +02:00
Jean-Sébastien Pédron d617d58a25 Makefile: Explicitely list all DEPS
Sync rabbitmq-components.mk with rabbitmq-common to remove automatic
DEPS handling.

[#130086871]
2016-09-20 11:14:17 +02:00
Jean-Sébastien Pédron f2a63e6979 Update erlang.mk 2016-09-20 11:12:56 +02:00