Commit Graph

359 Commits

Author SHA1 Message Date
Michael Klishin 909a3b41fe Adapt to recent server rabbit_health_check changes 2016-07-15 23:47:15 +03:00
Michael Klishin 68513e6ae9 Update README.md 2016-07-10 20:01:00 +03:00
Michael Klishin 70f486c27d Squash a few compilation warnings 2016-07-10 12:08:33 +03:00
kjnilsson 744e3edf72 HelpersTest uses distribution and shouldn't be run concurrently 2016-07-06 11:23:25 +01:00
Daniil Fedotov 38d573ef94 Skip existing channels in list_channels test 2016-06-23 10:49:47 +01:00
Michael Klishin 78ae2585a3 Inline 2016-06-15 00:22:42 +03:00
Michael Klishin bc5ff3bf26 Merge pull request #79 from rabbitmq/rabbitmq-cli-69
Purge queue command
2016-06-14 23:07:55 +03:00
Michael Klishin 2d68d42241 Assert that messages were purged; don't assume 0 messages were deleted 2016-06-14 23:04:27 +03:00
Michael Klishin d77eb83c5f A few Helpers.parse_node calls are no longer necessary
[Finish ##121221959]
2016-06-14 14:21:16 +03:00
Andrew Bruce ec3a191515 Purge queue command
This initial version makes two RPC calls:

1. Gets the amqqueue resource
2. Makes the purge request using that resource

Issue #69
2016-06-14 10:31:47 +01:00
Michael Klishin 39b3de4d1e Namespace commands, fixes #74
Note that the top level module is not namespaced. It's
not clear to me if it should be or will be end up using
and (Elixir/Mix) umbrella project anyway.
2016-06-10 02:54:22 +03:00
Michael Klishin 506c9cc43f Normalize node names before passing them to Command.run/2
Fixes #76.
2016-06-10 00:56:44 +03:00
Andrew Bruce 0c94b3d87a Fix typo in node name 2016-06-09 15:49:57 +01:00
Michael Klishin c7af6e7398 Normalize node name 2016-06-09 15:30:01 +03:00
Michael Klishin 39300fa5ca Restore original cluster name 2016-06-09 15:29:51 +03:00
Michael Klishin e95a085b3e Merge branch 'master' into rabbitmq-cli-70 2016-06-09 15:19:46 +03:00
Michael Klishin fe2eb2d31b Normalize node names in sync_queue and cancel_sync_queue 2016-06-09 15:19:29 +03:00
Andrew Bruce 7730539bc1 set_cluster_name
- Shows up in help
- Validates args a bit
- Has no defaults

Issue #70

[#116551629]
2016-06-09 11:29:27 +01:00
Michael Klishin d59e0fa444 Merge branch 'master' into rabbitmq-cli-67 2016-06-09 04:13:48 +03:00
Michael Klishin d27469c665 RabbitMQ.CLI.RabbitMQCtl => RabbitMQ.CLI.Ctl, references #74 2016-06-09 04:08:21 +03:00
Michael Klishin 4e31f4c627 More renaming, references #74 2016-06-09 04:00:43 +03:00
Michael Klishin 509179402a Missing file for the previous commit 2016-06-09 03:35:11 +03:00
Michael Klishin 8fcad8338e Namespace more modules under RabbitMQ.CLI, part of #74 2016-06-09 03:34:56 +03:00
Michael Klishin ddf191dea9 Adapt to master 2016-06-09 02:26:52 +03:00
Michael Klishin 89a3cd954c Merge branch 'master' into rabbitmq-cli-67 2016-06-09 02:23:53 +03:00
Michael Klishin 0c35f5a8cd Move start_distribution into RabbitMQ.CLI.Distribution 2016-06-09 02:23:10 +03:00
Michael Klishin 3a2b277d4f Squash a warning 2016-06-09 00:42:51 +03:00
Daniil Fedotov 091105e5b0 0 arity start_distribution 2016-06-08 17:04:08 +01:00
Daniil Fedotov 9b703b2896 Dynamically select distribution node 2016-06-08 15:19:37 +01:00
Michael Klishin d834e8007b Merge branch 'master' into rabbitmq-cli-67 2016-06-08 16:53:02 +03:00
Michael Klishin 2de1460e65 Missing license header 2016-06-08 03:34:49 +03:00
Michael Klishin 34961e7fed Implement sync_queue and cancel_sync_queue commands
Happy path tests need a multi-node testing framework.
2016-06-08 03:32:41 +03:00
Michael Klishin 9d2af8c352 Introduce RabbitCommon.Records
While I ended up not using this, this allows for easier manipulation
of amqqueue records from IEx:

``` elixir
require RabbitCommon.Records
Keyword.get(RabbitCommon.Records.amqqueue(amq_queue_record), :pid)
```

It also demonstrates how records can be organized in this (supposedly) multi-tool
repository.
2016-06-08 03:08:06 +03:00
Michael Klishin 204e982a94 Make usage/0 return a string 2016-06-08 01:48:49 +03:00
Michael Klishin e41cba0cb5 Clarify what 'target node' is 2016-06-07 01:19:21 +03:00
Jean-Sébastien Pédron 1b1534f86b Implement the `join_cluster` command
Compared to the Erlang-based rabbitmqctl's command, this one accepts
`--disc` to specify the node type. In the implementation, it does
nothing because that's the default value already. It is only to improve
consistency, because there is a `--ram` flag.

The testsuite for this command is incomplete in this commit. When a
testcase will be able to start and stop multiple nodes, the testsuite
will need to be completed.

[#116551629]
2016-06-06 16:06:52 +02:00
Jean-Sébastien Pédron 9349c9bf07 Improve "Please stop the node with rabbitmqctl stop_app" message
... with "Please stop RabbitMQ with rabbitmqctl stop_app".

The previous message didn't make sense: `stop_app` only stop the
RabbitMQ application, not the entire node (which we don't want to do in
the context of this message).
2016-06-06 16:00:50 +02:00
Jean-Sébastien Pédron f07cb00c20 .gitignore: Ignore Vim swap files 2016-06-06 12:09:59 +02:00
Jean-Sébastien Pédron 4e185689f8 Mix: Make sure we use GNU Make to build RabbitMQ dependencies 2016-06-06 12:06:46 +02:00
kjnilsson e5c35c2939 merge 2016-06-02 16:09:56 +01:00
kjnilsson 43ae69a06d Implement wait command 2016-06-02 16:03:54 +01:00
Michael Klishin 8c6d1a80ce Merge branch 'master' into rabbitmq-cli-61 2016-06-02 17:03:03 +03:00
Michael Klishin 45ffac0d7b Cosmetics 2016-06-02 17:02:14 +03:00
Michael Klishin 771e0193fe Squash a warning 2016-06-02 17:01:59 +03:00
kjnilsson 17fff860c8 Implement rotate_logs command 2016-06-02 13:01:12 +01:00
kjnilsson 65efddef2f Implement stop command 2016-06-02 12:48:41 +01:00
Michael Klishin ebb0dd579b Cosmetics 2016-06-02 14:16:15 +03:00
kjnilsson dec08906fa Implement reset and force_reset commands 2016-06-02 11:55:10 +01:00
Karl Nilsson 3a37ceed57 Merge pull request #53 from rabbitmq/rabbitmq-cli-51
Implement the node_health_check command
2016-06-02 09:10:34 +01:00
Michael Klishin 38085cce63 Brush up ListConnectionsCommandTest 2016-06-02 03:28:13 +03:00