Commit Graph

62 Commits

Author SHA1 Message Date
Luke Bakken c7c8e9be77 Ensure amqp_client is a test dependency 2017-06-19 08:46:56 -07:00
Arnaud Cogoluègnes 0f9ee30883 Get topic variables to expand from AMQP params
Variables to expand are extracted from the AMQP params
(only internal, not network). This allows to propagate
some upstream variables (e.g. MQTT client_id).

References rabbitmq/rabbitmq-server#1229
2017-06-07 14:37:03 +02:00
Arnaud Cogoluègnes cb47d6e44a Expand username & vhost variables in topic perms
The expansion is done inside the internal authz backend
and the variables to expand are provided in a map from
the context parameter. This decoupling allows to provide
different variables to expand based on the caller context
(e.g. add other variables to expand from the MQTT plugin).

References rabbitmq/rabbbitmq-server#1229
2017-05-24 15:23:31 +02:00
Daniil Fedotov 968fc8a578 Do not assume Node part format in Pid binary.
Pid binary format has changed in OTP-20.0.
We can still get the node using node/1, so we can
skip the node part when decomposing a pid.
Added unit tests for decomposing and composing a pid and changing
the node.
2017-05-19 12:23:34 +01:00
Daniil Fedotov 349d881754 Do not assume Node part format in Pid binary.
Pid binary format has changed in OTP-20.0.
We can still get the node using node/1, so we can
skip the node part when decomposing a pid.
Added unit tests for decomposing and composing a pid and changing
the node.
2017-05-11 18:44:18 +01:00
Loïc Hoguin 6e87e1c3f7 Rename mochinum, mochiweb_util and ec_semver modules
They are pulled by amqp_client and can create conflicts with
other libraries when developers build releases with the Rabbit
client and Mochiweb, for example.

* mochiweb_util -> rabbit_http_util
* mochinum -> rabbit_numerical
* ec_semver -> rabbit_semver
2016-11-24 16:18:39 +01:00
Daniil Fedotov a9fcdd4520 No need for rand_compat 2016-11-21 16:25:16 +00:00
Arnaud Cogoluègnes 9b87acd2bb Move rabbit_pbe module to rabbitmq-common
So new CLI can use it.

References rabbitmq/rabbitmq-cli#118
2016-11-18 16:05:06 +01:00
Daniil Fedotov d6614c6bc7 4-number versions and binary versions test 2016-10-13 13:26:24 +01:00
Andrew Bruce 14a180ff85 Special case for 3.6.6 in version_minor_equivalent
3.6.6 will introduce a change to the schema.
e.g. 3.6.6 is not compatible with 3.6.5
This special case can be removed once 3.6.x reaches EOL

[#132175569]
2016-10-12 17:54:54 +01:00
Andrew Bruce 64238b139d Support semver-style prerelease identifiers in version parsing
Use ec_semver from erlware for implementation. This is the same module
used in rebar3.

This changes some existing behaviour, e.g.:

3.0 is now minor-equivalent to 3.0.0 and 3.0.0.1
'master' is now a valid in version_compare

Add property tests

[#131650399]
2016-10-12 17:54:46 +01:00
Jean-Sébastien Pédron 7df21e0ad0 unit_SUITE: add version equivalence tests
Moved from rabbitmq-server

[#131650399]
2016-10-12 17:44:01 +01:00