Commit Graph

1387 Commits

Author SHA1 Message Date
Michael Klishin 921a3c29a2 Switch to MPL2 2020-07-14 21:55:55 +03:00
Michael Klishin 5beb768bae Extract rabbit_networking:stop_ranch_listener_of_protocol/1
Part of rabbitmq/rabbitmq-server#2321
2020-07-09 22:02:09 +03:00
Michael Klishin dc37ab2946 Make sure STOMP plugin closes its connections when a node is put into maintenance mode
Part of rabbitmq/rabbitmq-server#2321
2020-07-08 20:01:07 +03:00
Michael Klishin 55efce25fd Unify Ranch ref construction for all listeners
This makes the refs predictable and easy to compute
from a listener record. Then suspending all listeners
becomes a lot simpler.

While at it, make protocol applications clean up
their listeners when they stop. This way tests
and other callers that have to stop the app
would not need to know anything about
its listeners.

Part of rabbitmq/rabbitmq-server#2321
2020-06-24 04:27:34 +03:00
Jean-Sébastien Pédron 09721cb3a3 Update erlang.mk 2020-06-23 17:15:33 +02:00
Michael Klishin af84fbdd4e Use a supervisor flag map here 2020-06-18 02:23:15 +03:00
Michael Klishin 95309a45f0 Bump Recon to 2.5.1
for Erlang 23 compatibility of 'rabbitmq-diagnostics observer'

References zhongwencool/observer_cli#68.
2020-06-09 08:22:15 +03:00
Jean-Sébastien Pédron d0e3ff9f45 python_SUITE: Add more log messages to test_util.py
Hopefully we should learn more when we hit another failure with the
plugin failing to listen to its TCP port.

While here, remove the try/catch block around the execution of
rabbitmqctl(8):
* It swallowed the exception and the error was ignored, hoping
  subsequent line would cause the testcase to fail.
* The print() was misformed: the `.format()` call was applied to the
  print() return value, not the string, leading to a useless message being
  printed.
* CalledProcessError.stderr does not exist according to the
  documentation, so even if the print() was correct, it would never work.

subprocess already prints the command output to stdout. So let's get rid
of this try/catch which only broke things in many ways.
2020-05-12 17:25:57 +02:00
Michael Klishin 3a21959f1c Cuttlefish schema: comment edits 2020-03-20 11:29:54 +03:00
Goran Udosic 4ea3748ff0 Avoid using application:get_env on hot code path 2020-03-20 08:18:34 +01:00
Goran Udosic 08f7512b80 Allow controlling nack requeue on plugin level 2020-03-19 09:18:55 +01:00
Jean-Sébastien Pédron 594d331904 Update copyright (year 2020) 2020-03-10 16:51:40 +01:00
Gerhard Lazu adae0871d6 Update rabbitmq-components.mk 2020-03-06 09:19:21 +00:00
Gerhard Lazu d9f12d6871 Update erlang.mk 2020-03-06 09:18:31 +00:00
Jean-Sébastien Pédron ebe1cb579f Travis CI: Update config from rabbitmq-common 2020-03-04 14:24:32 +01:00
Jean-Sébastien Pédron 397a5fcff3 Travis CI: Update config from rabbitmq-common 2020-03-04 11:17:19 +01:00
Jean-Sébastien Pédron e0aa1764bb Travis CI: Update config from rabbitmq-common 2020-03-03 14:53:42 +01:00
Jean-Sébastien Pédron cb095c20e9 python_SUITE: Use Pika 1.1.0
Pika 0.12.0 fails to compile for me with the latest Python 3.7.x (3.7.6
here).
2020-02-28 10:03:15 +01:00
Gerhard Lazu 2fb7571fe1 Update rabbitmq-components.mk 2020-02-11 15:31:49 +00:00
Michael Klishin 98834380b3 (c) bump 2019-12-29 05:50:36 +03:00
Jean-Sébastien Pédron 909af382b8 Git: Ignore copied CLI 2019-12-12 15:08:08 +01:00
Jean-Sébastien Pédron 983c072c45 Update rabbitmq-components.mk 2019-12-12 13:14:58 +01:00
Luke Bakken 95aa0314b2 Add case for undefined state, as this will be the case when errors / exits are raised early 2019-11-27 12:12:37 -08:00
Luke Bakken 740ab14d9c Export ssl_login_name
Fixes rabbitmq/rabbitmq-web-stomp#116
2019-11-27 11:58:17 -08:00
Luke Bakken 32e0b1bcd2 Fix test by adding hide_server_info to schema 2019-10-28 11:48:08 -07:00
Luke Bakken 94bdf2a65e Add support for hide_server_info
Fixes #140

Add test that fails
2019-10-28 11:37:53 -07:00
Jean-Sébastien Pédron 656db39c67 python_SUITE: Skip quorum queue test if they are unavailable
To determine this, we look at the error reported by the broker when the
client tries to subscribe (and thus declare) a quorum queue.
2019-10-10 14:45:18 +02:00
Michael Klishin c8878fc963 Wait for a bit longer 2019-10-08 22:53:49 -05:00
Arnaud Cogoluègnes 2725600b02 Support x-queue-type argument
To be able to use quorum queues. Note deliveries from a classic queue
come with a context to inform back the queue about the handling of the
message (credit flow). Deliveries from a quorum queue do have this
context because quorum queues do not use credit flow. So supporting
quorum queues is not just about propagating the type header to AMQP
but needs also to handle both kinds of deliveries.

Fixes #138
2019-10-04 14:44:19 +02:00
Luke Bakken 6147840dbb Remove use of dict: module
Fixes #136
2019-09-26 08:01:45 -07:00
kjnilsson f8bf3ebce0 Update rabbitmq-components.mk 2019-09-13 10:24:33 +01:00
kjnilsson c117e341a7 Update rabbitmq-components.mk 2019-09-04 10:31:11 +01:00
Jean-Sébastien Pédron e641b34790 Update erlang.mk 2019-08-29 20:46:00 +02:00
Jean-Sébastien Pédron c69ce66b35 Makefile: Don't set `$(ELIXIR_LIB_DIR)` here
It is already managed by `rabbitmq-build.mk`.
2019-08-14 11:18:35 +02:00
Michael Klishin 1eef1ca91c Update rabbitmq-components.mk 2019-08-11 01:48:09 +10:00
Jean-Sébastien Pédron 61e9dc052a Update erlang.mk 2019-08-02 09:54:50 +02:00
Michael Klishin c9ff259b5d Update rabbitmq-components.mk 2019-08-01 17:13:30 +03:00
Jean-Sébastien Pédron a77a41802a amqqueue_SUITE: Format protocol version as e.g. "1_0" in test group names
This allows us to specify a group name in the `gmake ct-amqqueue t=...`
command line.
2019-07-23 11:29:58 +02:00
Arnaud Cogoluègnes b433c7e177 Update rabbitmq-components.mk 2019-07-09 16:06:12 +02:00
Jean-Sébastien Pédron c73ba06428 Update rabbitmq-components.mk 2019-06-28 16:05:42 +02:00
Jean-Sébastien Pédron 92f375b0bb Update erlang.mk 2019-06-28 16:02:59 +02:00
Gerhard Lazu 3fceff4be5 Update rabbitmq-components.mk 2019-06-03 02:23:48 +01:00
Jean-Sébastien Pédron 74e0c0126e Update rabbitmq-components.mk 2019-05-17 15:17:28 +02:00
Michael Klishin 5438d5e525 Update rabbitmq-components.mk 2019-05-17 08:37:17 +03:00
Michael Klishin 8e4f6a405f Update rabbitmq-components.mk 2019-05-14 11:51:06 +03:00
Michael Klishin ecda758b72 Update rabbitmq-components.mk 2019-05-13 16:40:48 +03:00
Gerhard Lazu 013ca685e0 Update rabbitmq-components.mk 2019-05-01 13:18:26 +01:00
Luke Bakken 895e53c99b Update rabbitmq-components.mk 2019-04-30 16:21:05 -07:00
Jean-Sébastien Pédron a3a31b4013 Update rabbitmq-components.mk 2019-04-30 14:47:40 +02:00
Gerhard Lazu 4371600cac Update rabbitmq-components.mk 2019-04-22 21:55:17 +01:00
Michael Klishin 87a04e21fc CLI commands: provide more information to the new help command 2019-03-26 20:37:09 +03:00
Spring Operator 12de902841 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
   ([https](https://blog.listincomprehension.com/search/label/procket) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/TOML) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/subproc) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
   ([https](https://e2project.org) result AnnotatedConnectException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
   ([https](https://nitrogenproject.com/) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
   ([https](https://proper.softlab.ntua.gr) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
   ([https](https://yaws.hyber.org) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
   ([https](https://choven.ca) result ConnectTimeoutException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
  https://fixtrading.org ([https](https://fixprotocol.org/) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
  https://erldb.org ([https](https://erldb.org) result UnknownHostException).
* http://stomp.codehaus.org/Protocol (UnknownHostException) with 1 occurrences migrated to:
  https://stomp.codehaus.org/Protocol ([https](https://stomp.codehaus.org/Protocol) result UnknownHostException).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://cloudi.org/ with 27 occurrences migrated to:
  https://cloudi.org/ ([https](https://cloudi.org/) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
  https://erlware.org/ ([https](https://erlware.org/) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
  https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
  https://ninenines.eu ([https](https://ninenines.eu) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
  https://www.actordb.com/ ([https](https://www.actordb.com/) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
  https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html) result 200).
* http://www.rabbitmq.com/stomp.html with 2 occurrences migrated to:
  https://www.rabbitmq.com/stomp.html ([https](https://www.rabbitmq.com/stomp.html) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
  https://www.rebar3.org ([https](https://www.rebar3.org) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
  https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
  https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
  https://lasp-lang.org/ ([https](https://lasp-lang.org/) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
  https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec) result 301).
* http://www.mozilla.org/MPL/ with 22 occurrences migrated to:
  https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/) result 301).
* http://www.rabbitmq.com/man/rabbitmq-plugins.1.man.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/man/rabbitmq-plugins.1.man.html ([https](https://www.rabbitmq.com/man/rabbitmq-plugins.1.man.html) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
  https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli) result 301).
2019-03-20 03:23:56 -05:00
Michael Klishin 2a05ac304d Travis: use Erlang 21.3, Elixir 1.8.1 2019-03-20 10:33:21 +03:00
Michael Klishin bee412f6b9 Additional help content for CLI command 2019-03-19 20:37:26 +03:00
Daniil Fedotov fba4174074 Handle 21.3 tls_alert error format. 2019-03-18 18:32:11 -04:00
Michael Klishin 76ed79ee23 Update rabbitmq-components.mk 2019-03-15 09:34:52 +03:00
Michael Klishin e60ec3c62a Update rabbitmq-components.mk 2019-03-15 05:06:00 +03:00
SAMUEL NELA bdef8a4d98 Fixed rabbitmq-plugins link 2019-02-24 22:44:52 +01:00
Michael Klishin 02178e0d07 Wording 2019-02-21 20:28:05 +03:00
Daniil Fedotov 96a2a3c30c Description for help command.
Requires https://github.com/rabbitmq/rabbitmq-cli/pull/316
2019-02-20 14:22:30 -05:00
Michael Klishin 68b5d8a216 Update rabbitmq-components.mk 2019-02-12 23:24:11 +03:00
Luke Bakken c246ffd3a5 Add test for default_topic_exchange, fixup parse_routing 2019-01-24 06:53:06 -08:00
Luke Bakken 96f336d47a Add cuttlefish config and test 2019-01-23 10:15:47 -08:00
Luke Bakken 4dc10cd19c Add rabbitmq_stomp.default_topic_exchange configuration parameter
Fixes #94
2019-01-23 10:02:57 -08:00
Michael Klishin 0758bf2af8 .travis.yml: use 21.2 as 21.2.2 builds are no available 2019-01-14 01:20:27 +03:00
Michael Klishin bd4d1f828d .travis.yml: sync Erlang and Elixir versions, require Erlang/OTP 21.2 2019-01-13 05:50:06 +03:00
Luke Bakken 771c61833a Update rabbitmq-components.mk 2019-01-09 12:55:23 -08:00
Luke Bakken 1042072632 Update rabbitmq-components.mk 2019-01-08 11:58:36 -08:00
Michael Klishin e91e498d06 New style config: support stomp.tcp_listen_options.*
That mimic tcp_listen_options.* for AMQP 0-9-1 and AMQP 1.0 listeners.

Closes #129.

[#157922235]
2019-01-02 20:18:40 +03:00
Michael Klishin ab8692eb8d Revert "Revert "Use {active,once} instead of async_recv""
This reverts commit 1f0fac4550.

The change to {active, once} ended up being unrelated; it's a bug
in the Erlang 21.2 ssl app.
2018-12-22 10:08:53 +03:00
Michael Klishin 1f0fac4550 Revert "Use {active,once} instead of async_recv"
This reverts commit a4ef42af9a.

Due to obscure CI failures in rabbitmq-web-stomp.
2018-12-21 21:28:24 +03:00
Loïc Hoguin a4ef42af9a Use {active,once} instead of async_recv 2018-12-18 13:09:41 +01:00
Michael Klishin b80e68b20d Update rabbitmq-components.mk 2018-12-06 18:29:06 +03:00
Loïc Hoguin 513c4fb349 Use the built-in Ranch PROXY protocol support 2018-12-04 13:17:03 +01:00
Jean-Sébastien Pédron a8206fa2da Update rabbitmq-components.mk 2018-11-30 14:56:59 +01:00
Jean-Sébastien Pédron d946cfca15 Update rabbitmq-components.mk 2018-11-22 09:19:43 +01:00
kjnilsson ef3a61ec47 Update rabbitmq-components.mk 2018-10-29 12:43:32 +00:00
Luke Bakken e39e52cd9d comment 2018-10-11 06:55:42 -07:00
Michael Klishin 9022247ba6 Use 10 TLS connection acceptors by default
Part of rabbitmq/rabbitmq-server#1729.

[#161136615]
2018-10-11 03:04:11 +03:00
Michael Klishin 417aeac814 Use Pika 0.12.0 for Python 3.7 compatibility
See pika/pika#923.
2018-10-10 22:55:46 +03:00
Jean-Sébastien Pédron 98dd730ab7 Update rabbitmq-components.mk 2018-09-19 10:38:24 +02:00
Jean-Sébastien Pédron 1a2a9fb380 Update rabbitmq-components.mk 2018-09-11 14:22:41 +02:00
Luke Bakken df3ca5d14e Update git-commit-msgs link 2018-08-28 16:17:58 -07:00
Jean-Sébastien Pédron 18c78c1ff3 Update rabbitmq-components.mk 2018-08-09 17:44:23 +02:00
Jean-Sébastien Pédron 4e5b55af3e Update rabbitmq-components.mk 2018-08-09 12:17:09 +02:00
Luke Bakken 356782f319 Add rabbit_stomp_connection_info module
This ensures that rabbit_direct:maybe_call_connection_info_module will not continuously return
enoent. In high connection churn scenarios, this can bring RabbitMQ down.

See VESC-888
2018-07-11 15:51:44 -07:00
Michael Klishin 7eb639b101 Don't await a logger process that won't ever be started on OTP 21
Same change as in a210d82f54.

References rabbitmq/rabbitmq-server#1616.

[#157964874]
2018-07-11 22:19:40 +03:00
Michael Klishin 720105add2 Python test suite: compatibility with Python 3.5+
"await" is a keyword as of PEP 492.
2018-07-11 22:13:13 +03:00
Jean-Sébastien Pédron f78f67299b Update rabbitmq-components.mk 2018-06-07 11:31:45 +02:00
Jean-Sébastien Pédron d695149293 Update erlang.mk 2018-04-11 10:54:24 +02:00
Jean-Sébastien Pédron 4fe9b70bbb Update rabbitmq-components.mk 2018-04-11 10:51:30 +02:00
Jean-Sébastien Pédron 1f3532fc0f Update rabbitmq-components.mk 2018-04-11 10:10:12 +02:00
Jean-Sébastien Pédron 60181919ad Travis CI: Update config from rabbitmq-common 2018-04-10 13:09:35 +02:00
Michael Klishin c1559f4834 Python 3 compatbility: cosmetic drive-by changes 2018-04-03 00:36:59 +03:00
Michael Klishin 008d542d20 Ditto 2018-04-03 00:36:41 +03:00
Michael Klishin f24bc6dfdb Python 3 compatibility 2018-04-02 23:43:14 +03:00
Michael Klishin 469f899de8 Add a missing parenthesis 2018-04-02 23:42:51 +03:00
Michael Klishin 7c634f228b Python 3 compatibility 2018-04-02 23:27:42 +03:00
Michael Klishin 0d2a49b257 Use Pika 0.11.x 2018-04-02 23:00:36 +03:00
Michael Klishin 36feef395c One more test 2018-04-02 23:00:21 +03:00
Jean-Sébastien Pédron df3098b03f Update erlang.mk 2018-03-02 19:09:59 +01:00
Jean-Sébastien Pédron 7cfab2480f Update rabbitmq-components.mk 2018-01-30 15:23:58 +01:00
Luke Bakken 10c9c59a1b Update rabbitmq-components.mk 2018-01-29 16:22:25 -08:00
Jean-Sébastien Pédron 176bad3318 Update rabbitmq-components.mk 2018-01-23 17:21:47 +01:00
Jean-Sébastien Pédron 806c411109 Update rabbitmq-components.mk 2018-01-23 15:31:34 +01:00
Diana Corbacho 2ce799808f Update rabbitmq-components.mk 2018-01-22 22:13:31 +00:00
Jean-Sébastien Pédron 0e904128be Travis CI: Update config from rabbitmq-common 2017-12-15 15:17:22 +01:00
Jean-Sébastien Pédron 4c7ba1ec88 Update rabbitmq-components.mk 2017-12-01 11:07:05 +01:00
Jean-Sébastien Pédron 0a131c0767 Update rabbitmq-components.mk 2017-11-28 14:01:18 +01:00
Jean-Sébastien Pédron c2fdbd4972 Update rabbitmq-components.mk 2017-11-28 13:31:27 +01:00
Jean-Sébastien Pédron 6c59f1c23a Travis CI: Update config from rabbitmq-common 2017-11-08 12:24:22 +01:00
Luke Bakken 287c263a54 Add GitHub templates and contributing doc 2017-10-13 16:00:19 -07:00
Jean-Sébastien Pédron 0171508b6f Merge branch 'stable' 2017-10-13 15:13:27 +02:00
Jean-Sébastien Pédron 6a631b4b76 Update rabbitmq-components.mk 2017-10-13 14:33:17 +02:00
Jean-Sébastien Pédron 2b3ee6cd86 Update rabbitmq-components.mk 2017-10-13 14:13:33 +02:00
Jean-Sébastien Pédron a3387bf623 Update rabbitmq-components.mk 2017-10-13 12:15:53 +02:00
Michael Klishin 4b83bc91f8 Merge branch 'stable' 2017-10-01 13:04:34 +03:00
Michael Klishin fe9481cbfe Missing test expectation update from #121 2017-10-01 13:04:22 +03:00
Chris Magee 10dba4bab8 Fixed typo. 2017-10-01 12:50:07 +03:00
Chris Magee f5561d40f7 Fixed typo. 2017-09-30 16:46:04 +01:00
Michael Klishin 244c63fba1 Update rabbitmq-components.mk 2017-09-13 17:54:48 -04:00
Michael Klishin 190e9169fc Update rabbitmq-components.mk 2017-09-13 17:45:47 -04:00
Michael Klishin 903ad57529 Update rabbitmq-components.mk 2017-09-12 19:53:38 -04:00
Michael Klishin 9a9b965afc Update rabbitmq-components.mk 2017-09-12 12:42:06 -04:00
Daniil Fedotov 3f221c1976 Merge branch 'stable' 2017-08-30 19:20:49 +01:00
Daniil Fedotov f1381f7cd3 Update erlang.mk 2017-08-30 18:46:45 +01:00
Daniil Fedotov 411c5150fe Use lager sink API for logs.
Lager sink parse-transform allows us to use a fake module name
to select sinks.
It's more convenient that to use a helper function for every module.

[#149634975]
2017-08-07 14:44:50 +01:00
Michael Klishin 55a73590bc Erlang/OTP 19.2 is now the minimum supported version.
Part of rabbitmq/rabbitmq-server#1305.

[#149563549]
2017-07-26 19:03:26 +03:00
Michael Klishin 9afd38cc46 Update rabbitmq-components.mk 2017-07-26 03:48:41 +03:00
Michael Klishin 0f57a47f1c Update rabbitmq-components.mk 2017-07-26 02:27:17 +03:00
Jean-Sébastien Pédron 550495871c Merge branch 'stable' 2017-06-26 18:34:52 +02:00
Jean-Sébastien Pédron 18b6adac1a rabbit_net:accept_ack() was moved to rabbit_networking
[#118490793]
2017-06-21 15:37:30 +02:00
Daniil Fedotov 412052e6ad Use term_to_binary with minor_version to generate queue names 2017-06-16 12:46:58 +01:00
Luke Bakken 8ec59d4445 Add test demonstrating topic permissions using Python 2017-06-14 10:58:52 -07:00
Michael Klishin cb5086bf44 Merge branch 'master' into rabbitmq-server-1229 2017-06-13 23:57:01 +03:00
Daniil Fedotov 47ba44a69a Generate queue names using compat function instead of term_to_binary.
[#115]

It's unsafe to use `term_to_binary` to generate IDs like queue names,
because it can change in future erlang versions.
We cannot change queue generation algorithm, because queues can be durable
and renaming a queue is non-trivial in RabbtiMQ. So we use the compat function.
2017-06-13 17:10:11 +01:00
Michael Klishin 628669d739 Update rabbitmq-components.mk 2017-06-12 20:18:07 +03:00
Michael Klishin 5d422c26d2 Update rabbitmq-components.mk 2017-06-12 18:35:49 +03:00
Arnaud Cogoluègnes c6fdd8fa17 Support variable expansion in topic authz
Part of rabbitmq/rabbitmq-server#1229
2017-06-12 10:35:52 +02:00
Michael Klishin 5038656062 Merge branch 'stable' 2017-06-10 09:29:07 +03:00
Luke Bakken fe222abd81 Add failing test that shows custom headers are not returned.
Add some more test cases and fix simple_test_send_rec use the headers argument to conn.send

Add AMQP -> STOMP test validating a custom header

Send headers in AMQP message and verify STOMP receipt
2017-06-09 11:15:37 -07:00
Michael Klishin 9b478b0482 Squash a warning 2017-06-09 01:14:14 +03:00
Michael Klishin 124bad8b75 Merge branch 'stable' 2017-06-02 18:11:54 +03:00
Michael Klishin 21b7b42ab5 Update rabbitmq-components.mk 2017-06-02 17:51:36 +03:00
Daniil Fedotov a41fbd3ad6 New CLI helpers API 2017-06-02 10:12:08 +01:00
Michael Klishin acfc9e1359 Update rabbitmq-components.mk 2017-06-02 00:43:33 +03:00
Michael Klishin 2f37e16eeb Update rabbitmq-components.mk 2017-06-01 18:01:51 +03:00
Jean-Sébastien Pédron af771c705b Merge branch 'stable' 2017-05-16 18:12:03 +02:00
Jean-Sébastien Pédron 3b71f71721 Makefile: Load the new `rabbitmq-early-plugin.mk` early-stage plugin
See the corresponding commit in rabbitmq-common for an explanation.

[#144697185]
2017-05-16 17:38:16 +02:00
Jean-Sébastien Pédron 4e164da6af Update erlang.mk 2017-05-16 17:38:16 +02:00
Michael Klishin fcdd8ef3d5 Merge branch 'stable'
Conflicts:
	src/rabbit_stomp_reader.erl
2017-05-03 12:50:39 +02:00
D Corbacho abaaa976a5 Merge pull request #111 from rabbitmq/rabbitmq-web-stomp-75
Make sure maybe_delete_durable_sub/3 handles server-initiated cancelation
2017-05-03 10:49:40 +01:00
Michael Klishin 297ba01d5a Wording 2017-05-03 11:44:25 +02:00
Diana Corbacho 004a424af4 Fix dialyzer warnings and termination during initialisation of the reader 2017-05-03 10:25:04 +01:00
Diana Corbacho fa70d8efb6 Fix types and dialyzer warnings 2017-05-03 08:58:31 +01:00
Michael Klishin 667ab9cf35 Pass undefined instead of a blank #stomp_frame
This way function head matching is unambiguous.
2017-05-03 01:03:48 +02:00
Michael Klishin 9198198ddb Make sure maybe_delete_durable_sub/3 handles server-initiated cancelation
Part of rabbitmq/rabbitmq-web-stomp#75.

[#144738809]
2017-05-02 23:59:17 +02:00
Diana Corbacho 507690dfac Default to 0 for stats calculation
rabbitmq-management-agent-45
[#144693945]
2017-05-02 14:24:02 +01:00
Daniil Fedotov 921732bad4 Replace dicts to maps for internal structures 2017-04-24 13:52:47 +01:00
Jean-Sébastien Pédron 3a0aa2a4f5 Merge branch 'stable' 2017-04-19 16:22:44 +02:00
Jean-Sébastien Pédron 0fbe13709b Update erlang.mk 2017-04-19 12:05:17 +02:00
Michael Klishin 9be7f2efe0 Merge branch 'stable' 2017-04-02 22:03:38 +03:00
Michael Klishin bbd0835011 (c) year 2017-04-02 21:49:30 +03:00
Michael Klishin 000c140509 Ignore test/config_schema_SUITE_data/schema/ 2017-03-20 19:13:41 +03:00
Daniil Fedotov db74639159 Config schema test for plugin
Part of [#141481501]
Moved from rabbitmq-server
2017-03-17 11:02:07 +00:00
Jean-Sébastien Pédron 4ec02aaa62 Merge branch 'stable' 2017-03-08 10:06:32 +01:00
Jean-Sébastien Pédron 0de0421d6e connections_SUITE: Match the new `connection_coarse_metrics` field
The tuple returned by a read of `connection_coarse_metrics` contains a
new counter at the end. We ignore it but the pattern matching must be
updated.

Before this, the testcase failed with the following error:

    connections_SUITE:stats failed on line 150
    Reason: {badmatch,[{<13606.2176.0>,38,117,6572,0}]}
2017-03-08 09:10:36 +01:00
Arnaud Cogoluègnes d5f85fcae7 Set copyright year to 2017 in topic_SUITE.erl 2017-02-15 17:00:04 +01:00
Arnaud Cogoluègnes 23b2995d45 Add proxy protocol Cuttlefish option mapping
Part of rabbitmq/rabbitmq-server#589
2017-02-13 13:43:10 +01:00
Arnaud Cogoluègnes f8379c5816 Polish proxy protocol test suite
Add license header, add call to rabbit_ct_helpers:testcase_started.

References rabbitmq/rabbitmq-server#589
2017-02-13 10:44:22 +01:00
Michael Klishin 7f621e8217 Update rabbitmq-components.mk 2017-02-11 23:29:41 +03:00
Michael Klishin d13e8bb93f Update rabbitmq-components.mk 2017-02-10 11:16:42 +03:00
Michael Klishin 347583f238 Update rabbitmq-components.mk 2017-02-10 01:55:18 +03:00
Arnaud Cogoluègnes 3f95ad9a9c Add support for proxy protocol
Part of rabbitmq/rabbitmq-server#589
2017-02-09 10:11:38 +01:00
Michael Klishin a9b3e86dbf Update rabbitmq-components.mk 2017-02-08 16:38:24 +03:00
Michael Klishin 897cf929bc merge branch 'stable' 2017-02-06 19:52:08 +03:00
Michael Klishin 59756d6fcb Update rabbitmq-components.mk 2017-02-06 19:24:02 +03:00
Michael Klishin c0a28600b6 Merge pull request #101 from rabbitmq/rabbitmq-server-1085
Add topic authorisation for consumption
2017-02-06 01:22:44 +03:00
Michael Klishin cd65c2131f This constant isn't used 2017-02-06 01:13:08 +03:00
Jean-Sébastien Pédron 732d3e1412 Update rabbitmq-components.mk 2017-02-02 17:17:20 +01:00
Arnaud Cogoluègnes 1ce89c541b Merge branch 'master' into rabbitmq-server-1085 2017-01-31 17:45:24 +01:00
Michael Klishin aa1d1a1c4a merge branch 'stable' 2017-01-31 18:20:07 +03:00
Michael Klishin b36e86d1ac Update rabbitmq-components.mk 2017-01-31 18:06:36 +03:00
Diana Corbacho 1004f3e24a Merge branch 'stable' 2017-01-27 20:49:52 +00:00
Diana Corbacho 06314a0cc4 Add heartbeat to stats 2017-01-27 16:54:32 +00:00
Diana Corbacho 0a711ef29b Test all stats are present 2017-01-27 12:45:04 +00:00
Diana Corbacho 0d02297cea Backported part of: CLI command to list stomp connections 2017-01-27 12:38:27 +00:00
Diana Corbacho 73d22fd2e6 Tests stats are not leaked if connection failed 2017-01-27 12:31:09 +00:00
Diana Corbacho 98cd0c876b Avoid emitting stats if connection is not defined 2017-01-27 12:12:54 +00:00
Diana Corbacho fed191458f Return connection pid 2017-01-27 08:08:22 +00:00
Diana Corbacho 970bc0949d Notify reductions, garbage_collection, recv_oct and send_oct in the core metrics 2017-01-27 08:08:02 +00:00
Arnaud Cogoluègnes a1334bd626 Add topic authorisation for consumption
Part of rabbitmq/rabbitmq-server#1085
2017-01-23 15:19:07 +01:00
Diana Corbacho c754c00971 Pass user who performed the action to test fixtures 2017-01-17 07:39:34 +00:00
Michael Klishin db0d45e706 Merge branch 'stable' 2016-12-17 02:56:54 +03:00
Michael Klishin 0b9450d408 Add 19.1 and 19.2 to Travis build matrix 2016-12-17 02:39:10 +03:00
Jean-Sébastien Pédron 2600aef69d Travis CI: Import changes from rabbitmq-auth-backend-amqp 2016-12-12 14:31:20 +01:00
Jean-Sébastien Pédron a04a8725e4 Merge branch 'stable' 2016-12-09 19:25:43 +01:00
Jean-Sébastien Pédron 4ed8425c89 Update rabbitmq-components.mk 2016-12-08 19:14:52 +01:00
Jean-Sébastien Pédron 1b9a11fbde Do not use -include_lib() with own headers
This fixes the build outside of an Umbrella-like setup, ie. when
dependencies of this plugin are put into the `deps` subdirectory.
2016-12-08 18:10:02 +01:00
Jean-Sébastien Pédron 7e9fb20bde Travis CI: Use Ubuntu Trusty image to have access to Elixir
Also, required `sudo` so a VM is used instead of a container. This makes
the test much longer, but allows us to install non-whitelisted packages
such as xsltproc.
2016-12-08 17:52:55 +01:00