Commit Graph

41 Commits

Author SHA1 Message Date
Michael Klishin 5ec71c18f3 Retrieve plugin directory and file information via Config
[#160792758]
2018-10-03 16:43:42 +03:00
Michael Klishin ad69a2f2f7 Drive by cosmetic changes 2018-10-02 04:07:33 +03:00
Michael Klishin 1b56fc5957 New command: rabbitmq-plugins directories
Closes rabbitmq/rabbitmq-cli#261.

[#160792758]
2018-10-02 03:16:25 +03:00
Daniil Fedotov 32cf46e5c8 Fix rabbitmq-plugins enable/disable/set behavior for --online flag.
If flag is set to `--online` the commands should fail if node is not
running.
If flag is not set, they should fallback to offline mode if the
node is not running.
This corresponds to the rabbitmq-plugins.8 manpage.

Made validation aware of online flag.
Define best_effort mode to fallback if node is not running.
Requires rabbitmq/rabbitmq-server#1433

Fixes #226
[#153184802]
2017-11-27 18:49:08 +00:00
Michael Klishin 0031c4fdf6 Make validate/2 and validate_execution_environment/2 use the same tuple tag
Per discussion with @hairyhum.
2017-08-09 01:11:14 +03:00
Michael Klishin c227843e32 Make validate_execution_environment/2 use a different tuple tag for failures
Per discussion with @hairyhum.
2017-08-08 18:29:04 +03:00
Michael Klishin 6c70863dcf rabbitmq-plugins: refactor to validate_execution_environment/2 and R.C.C.Validators.chain/2 2017-08-08 03:21:07 +03:00
Michael Klishin 15565ec1d7 rabbitmq-plugins set: switch to validate_execution_environment/2 2017-08-07 16:44:19 +03:00
Michael Klishin 2e64c90913 rabbitmq-plugins enable: switch to validate_execution_environment/2 2017-08-07 16:04:30 +03:00
Michael Klishin 770258ea65 rabbitmq-plugins disable: switch to validate_execution_environment/2 2017-08-07 14:47:17 +03:00
Daniil Fedotov 1641ecbc11 Improve wait command.
Do not call await_startup on rabbitmq node, instead do it on
rabbitmqctl node, so even if net_ticktime is low, it won't fail
with nodedown.
2017-06-08 18:15:21 +01:00
Daniil Fedotov b802fcdf87 Do not try to connect to the RabbitMQ node before executing command
Commands are supposed to return bardpc errors, which are handled by output,
so there is no need to connect to the node before calling the run function.
2017-06-07 16:21:53 +01:00
Jean-Sébastien Pédron 61ba37f3f7 Fix all warnings reported by Elixir 1.4.x in the testsuite 2017-02-28 16:16:54 +01:00
Diana Corbacho 87331bb95e Exclude applications that are not RabbitMQ plugins from the list of plugins 2017-02-27 14:52:40 +00:00
Michael Klishin ad483d1f4e Tiny refactoring 2017-02-21 02:00:43 +03:00
Michael Klishin 9f5384838e Set enable plugins before running this test 2017-02-21 01:45:06 +03:00
Michael Klishin 2a9c24af2c Merge branch 'master' into rabbitmq-server-release-12 2017-01-27 18:33:19 +03:00
Daniil Fedotov 0e13568ec3 Move plugin validation from `validate` to `run` 2017-01-27 14:55:09 +00:00
Daniil Fedotov d76229a3d1 Test plugin version validation when enabling all plugins 2017-01-26 16:28:01 +00:00
Daniil Fedotov 52ad0d2a39 Validate enabled plugins version requirements 2017-01-26 12:21:20 +00:00
Daniil Fedotov 1a7bdc871b Fix some compiler warnings in tests 2017-01-24 12:33:48 +00:00
Jean-Sébastien Pédron 5905f1c40a Update copyright line to year 2017 2017-01-10 15:42:40 +01:00
Jean-Sébastien Pédron e9121fe08c {enable,disable}_plugins_command_test.exs: Adapt test
... after change in 530a9c7d83.

[#136769947]
2016-12-29 18:14:07 +01:00
Diana Corbacho 6d9df7dfb3 Expect streams on plugins tests 2016-12-07 12:55:00 +00:00
Daniil Fedotov d4807b5233 Test cleanup 2016-12-06 17:14:40 +00:00
Arnaud Cogoluègnes 409f8e3b00 Use 1 RPC call to get running plugins 2016-11-30 17:19:13 +01:00
Arnaud Cogoluègnes 3373930aa1 Fix plugins formatter test
Fixes #131
2016-11-30 10:43:15 +01:00
Arnaud Cogoluègnes fd07c8b70b Support several versions of plugins in directories
References #131
2016-11-29 17:33:41 +01:00
Arnaud Cogoluègnes 304ab703f4 Support multiple plugins directories
References #131
2016-11-29 15:26:57 +01:00
Daniil Fedotov ccb6bf116c Namespace refactoring 2016-11-14 17:52:08 +00:00
Daniil Fedotov 1dc8e90a70 Make tests happy 2016-11-10 17:40:43 +00:00
Daniil Fedotov 3e3d8f3f0b Fix tests for plugins commands 2016-11-08 14:19:11 +00:00
Daniil Fedotov 837226430b Coordinate environment with config module 2016-11-07 22:03:09 +03:00
Michael Klishin 639a38a89c Use rabbitmq_stomp instead of rabbitmq_metronome
The metronome plugin is an example and not supposed to be used
in production. It has certain assumptions that do not necessarily
hold when a test suite that messes with broker state is executed.

It therefore makes more sense to use rabbitmq_stomp or another
plugin that is commonly deployed in production systems.

Per discussion with @hairyhum.
2016-09-07 18:22:24 +03:00
Daniil Fedotov 5aed413ad8 Test stability. Enabling federation plugin when needed, do not stop distribution. 2016-09-07 13:28:06 +01:00
Daniil Fedotov 41fd1588b3 Fix warnings in tests 2016-08-23 14:28:34 +01:00
Michael Klishin f6861efbf4 Use equality operator in asserts where possible, wording 2016-08-11 10:41:38 +03:00
Michael Klishin 05db449187 Handle duplicates on plugin lists, be more defensive with defaults
Makes CLI invocations of `rabbitmq-plugins {enable, disable, list}`
mostly work.
2016-08-11 01:27:13 +03:00
Michael Klishin 529b802ed5 Make sure this test case is actually different from the one above 2016-08-10 23:23:58 +03:00
Michael Klishin 830b1d1382 Cosmetics, extract fn 2016-08-09 18:26:05 +03:00
Michael Klishin 14ff225719 Group rabbitmq-plugins command tests under test/plugins
Note yet moving the rest under test/ctl so that a bunch
of existing PRs merge cleanly.
2016-08-09 13:44:20 +03:00