Brandon Shroyer
4fa9912218
Use too many args return in status command
2016-04-26 12:12:32 -04:00
Brandon Shroyer
a531a425bc
Add too_many_args and not_enough_args to standard codes
2016-04-26 12:10:10 -04:00
Brandon Shroyer
9f39c57ba5
Replace rabbit_misc RPC calls in test helper with basic RPC calls
2016-04-13 09:47:25 -04:00
Brandon Shroyer
70a14105ab
DRY out some tests
2016-04-13 09:46:03 -04:00
Michael Klishin
018a976599
Provide an example
2016-04-10 00:11:38 +03:00
Brandon Shroyer
3ef3cf173d
Add note about federation plugin to README
2016-04-05 14:35:37 -04:00
Brandon Shroyer
cf9ec432b9
Merge pull request #15 from potatosalad/feature-set_parameter
...
Implement the set_parameter command.
2016-04-05 14:09:44 -04:00
Brandon Shroyer
a4a035d062
Convert unrecognized return codes to a standardized system
2016-04-05 13:58:31 -04:00
Andrew Bennett
87ae32d011
Implement the set_parameter command.
2016-04-04 09:41:54 -06:00
Brandon Shroyer
8daf2c182a
Improve handling of refused authentication
2016-04-01 13:58:47 -04:00
Brandon Shroyer
b2be1e8307
Handle extra edge case of authenticate_user return tuple
2016-04-01 13:42:25 -04:00
Brandon Shroyer
675dbbe321
Use standardized error code for bad info keys in list_vhosts
2016-04-01 13:25:52 -04:00
Brandon Shroyer
4739278516
Add a dummy reference to disk_free_limit context to silence warnings
2016-04-01 13:08:57 -04:00
Brandon Shroyer
f9be28a40e
Make sure context setups always delete the same user they add
2016-04-01 13:07:04 -04:00
Brandon Shroyer
51922e4215
Fix exit code implementation so that it actually returns exit codes
2016-04-01 12:13:01 -04:00
Brandon Shroyer
c7dac61b21
Correct missing argument handling for absolute memory watermark command
2016-04-01 11:50:41 -04:00
Brandon Shroyer
98cf6a4537
Return bad argument for relative vm memory high watermark values > 1.0
2016-04-01 11:33:05 -04:00
Brandon Shroyer
828deac972
Disallow units when setting relative VM memory high watermark
2016-04-01 11:33:05 -04:00
Brandon Shroyer
8b018f4d51
Idiomatic changes to set_vm_memory_high_watermark
2016-04-01 11:33:05 -04:00
Michael Klishin
32b09446bf
Squash a warning
2016-04-01 18:15:29 +03:00
Brandon Shroyer
38126fb807
Implement unit parsing and memory-relative versions of set_disk_free_limit
2016-04-01 11:04:12 -04:00
Brandon Shroyer
54d26a19cb
Add byte conversions to set_disk_free_limit
2016-03-30 15:17:46 -04:00
Brandon Shroyer
10b7565cc6
Implement absolute version of set_disk_free_limit
2016-03-29 19:03:42 -04:00
Brandon Shroyer
216f5478a7
Change multi-line usage output to array
2016-03-29 15:25:51 -04:00
Brandon Shroyer
4446a46c7a
Flatten command usage output array
2016-03-29 15:25:26 -04:00
Brandon Shroyer
e254c3fd07
Reenabling printout in rabbitmqctl for debugging purposes.
2016-03-29 15:23:09 -04:00
Brandon Shroyer
317506a561
Add reminder about RabbitMQ users/vhosts to test instructions.
2016-03-29 09:03:39 -04:00
Brandon Shroyer
599afa3cc6
Merge pull request #11 from rossjones/vm-memory-high-watermark
...
Implement the set_vm_high_watermark command.
2016-03-28 21:35:03 +01:00
Ross Jones
e3b579d793
Fix overly complex signature for absolute values.
...
Removes the list param for setting absolute values and just passes the
important information.
2016-03-28 20:00:57 +01:00
Brandon Shroyer
6e7c054446
Alias param flag in parser
2016-03-28 11:18:08 -04:00
Brandon Shroyer
ed1e7784bf
Refactor default autofills in main module
2016-03-28 11:18:08 -04:00
Michael Klishin
087dbfd5a5
Not just rabbitmqctl
2016-03-28 18:09:13 +03:00
Michael Klishin
ff8b43d065
Correct headers, update License section
2016-03-28 18:04:01 +03:00
Ross Jones
540f67d70f
Allows watermark to be specified as an absolute value
...
Rabbit allows the watermark to be specified as an absolute value, or an
absolute value with memory units .. such as {:absolute, N} which can be
specified as 'absolute 10' or 'absolute 10MB'. In the case of the
latter, the value in bytes is sent as N.
This commit adds some useful functions for calculating the absolute
values to the Helpers module.
2016-03-26 15:57:47 +00:00
Ross Jones
7df223f617
Implements the clear-permissions-command
...
Allows for the removal of all permissions for a given username.
2016-03-26 09:38:33 +00:00
Ross Jones
0791e5d08b
Implement the set_vm_high_watermark command.
...
The set_vm_high_watermark command allows you to set the ratio of memory
usage at which point rabbit will start throttling and alerting.
2016-03-26 09:23:17 +00:00
Brandon Shroyer
5de1fc05fd
Implement set_permissions command
2016-03-23 18:13:35 +00:00
Brandon Shroyer
b3f66cb498
Implement list_permissions_command
2016-03-23 16:55:00 +00:00
Brandon Shroyer
d0f024ef05
Removed duplicate assertion from clear_password tests
2016-03-23 14:46:37 +00:00
Brandon Shroyer
831e2c4972
Add design document
2016-03-23 12:59:04 +00:00
Brandon Shroyer
c7d08beb9c
Implement clear_password command
2016-03-23 12:16:00 +00:00
Brandon Shroyer
6a1591bf9d
Implemented change_password command
2016-03-22 18:06:46 +00:00
Brandon Shroyer
8088945c1d
Implement authenticate_user command
2016-03-22 17:37:25 +00:00
Brandon Shroyer
0dce65834e
Implement set_user_tags command
2016-03-22 16:41:59 +00:00
Brandon Shroyer
bebc03b4a5
Converting some tabs that snuck in into spaces
2016-03-22 16:21:12 +00:00
Brandon Shroyer
f387fd97d0
Remove extra print statement from result handler
2016-03-22 14:57:35 +00:00
Brandon Shroyer
6bde6372f9
Remove unnecessary (and noisy) exit calls
2016-03-22 13:38:55 +00:00
Brandon Shroyer
5e9a19a9d9
Add bad_argument return to delete_vhost command
2016-03-22 12:33:49 +00:00
Brandon Shroyer
e2cff15839
Add bad_argument return to delete_user command
2016-03-22 12:33:22 +00:00
Brandon Shroyer
e296371f42
Add bad_argument return for add_vhost command
2016-03-22 12:32:42 +00:00
Brandon Shroyer
a95942f345
Add bad_argument for add_user command
2016-03-22 12:32:19 +00:00
Brandon Shroyer
22b8f36bce
Add bad_argument to environment command
2016-03-22 10:41:51 +00:00
Brandon Shroyer
068e0e97ed
Add bad_argument return to list_user_permissions.
2016-03-21 18:29:50 +00:00
Brandon Shroyer
7ca8f8579f
Added bad_argument return to list_users command.
2016-03-21 18:29:20 +00:00
Brandon Shroyer
aeaeb69894
Add bad_argument return to list_vhosts.
2016-03-21 18:18:55 +00:00
Brandon Shroyer
79b667a766
Add bad_argument return to trace_on on bad arguments.
2016-03-21 18:11:26 +00:00
Brandon Shroyer
434a6704d2
Add bad_argument return to trace_off on bad arguments.
2016-03-21 18:10:57 +00:00
Brandon Shroyer
a17b03283f
Implement Unix-style exit codes from server-396
...
* Implements a set of Unix-like exit codes described in https://github.com/rabbitmq/rabbitmq-server/issues/396
2016-03-21 17:59:22 +00:00
Brandon Shroyer
a6a9396ada
Fix copy-pasta error in timeout test.
2016-03-21 12:08:49 +00:00
Brandon Shroyer
5e1e56b873
Remove extraneous untracked variable from status command
2016-03-18 16:38:58 +00:00
Brandon Shroyer
c0979a6343
Remove extraneous Erlang calls in rabbitmqctl tests
2016-03-18 14:37:25 +00:00
Brandon Shroyer
36c59f97a1
Refactor test helpers and add new counting tests to add, delete commands
2016-03-18 11:33:51 +00:00
Brandon Shroyer
b87109e12f
Add tests to make sure tracing commands don't choke on invalid vhosts
2016-03-17 17:11:49 +00:00
Brandon Shroyer
bd29929f1c
Turn commonly used string literals from tests into module attributes
2016-03-17 16:59:55 +00:00
Brandon Shroyer
9110319faa
Refactor tests to aggregate inter-node calls
2016-03-17 16:48:11 +00:00
Brandon Shroyer
925c782cc5
Implement list_users command
2016-03-17 15:17:27 +00:00
Brandon Shroyer
783c2cf9e0
Implement delete_user command
2016-03-16 15:29:56 +00:00
Brandon Shroyer
824c5430ef
Implement add_user command.
2016-03-16 14:19:44 +00:00
Brandon Shroyer
b7c758d199
Fix nonsensical test
2016-03-14 17:35:54 +00:00
Brandon Shroyer
2f9d4ab07b
Add support for list_vhosts (Erlangish output only)
2016-03-10 13:30:30 -05:00
Brandon Shroyer
82072fd3c9
Add support for trace_on, trace_off.
2016-03-09 11:42:03 -05:00
Brandon Shroyer
a065934ff7
Remove unnecessary variable bindings.
2016-03-09 11:41:34 -05:00
Brandon Shroyer
2e0cd895b4
Add delete_vhost command.
2016-03-08 15:54:49 -05:00
Brandon Shroyer
060bc3c1df
Add some extra edge-case tests to add_vhost
2016-03-08 15:53:40 -05:00
Brandon Shroyer
5dc8d32dc7
Add add_vhost command.
2016-03-08 14:57:56 -05:00
Brandon Shroyer
970ed501d8
Update README with details of command arguments.
2016-03-08 13:41:53 -05:00
Brandon Shroyer
95286b2ee2
Remove unhelpful autofills from RabbitMQCtl errors.
2016-03-08 12:16:38 -05:00
Brandon Shroyer
86b09639ec
Add timeouts to list_user_permissions, refactor a bunch of tests.
2016-03-08 12:05:25 -05:00
Brandon Shroyer
f697e93d02
Converted options to maps.
2016-03-07 17:48:03 -05:00
Brandon Shroyer
6a4381c12c
Auto-populate empty option[:node] in rabbitmqctl.main
2016-03-07 14:14:35 -05:00
Brandon Shroyer
b5905de4b4
Made new module for testing flag functionality.
2016-03-07 14:07:53 -05:00
Brandon Shroyer
28463f4d7f
Add list_user_permissions, support for commands with args.
2016-03-07 11:16:19 -05:00
Brandon Shroyer
cd614ca8da
Refactor commands to use rpc_call from :rabbit_misc library.
2016-03-07 10:32:34 -05:00
Brandon Shroyer
ff8485baae
Fill out help command.
2016-03-04 17:36:49 -05:00
Brandon Shroyer
d681309dce
Add rudimentary usage support, refactoring main command.
2016-03-04 16:48:25 -05:00
Brandon Shroyer
de9463b859
Add support for multi-underscore command modules.
2016-03-04 13:16:18 -05:00
Brandon Shroyer
a5a54f1f85
Generate map of command modules.
2016-03-04 13:15:53 -05:00
Brandon Shroyer
b484bcbb44
Set up Mix file to generate a standalone executable.
2016-03-03 11:34:13 -05:00
Brandon Shroyer
9eb6345d10
Replace Mix.Utils.camelize with user-defined function.
2016-03-03 11:06:30 -05:00
Brandon Shroyer
bf37336321
Add rabbitmq-common as a dependency.
2016-03-03 10:08:47 -05:00
Brandon Shroyer
4ef6f2e4ba
Use strict switch handling in OptionParser.
2016-03-01 18:04:16 -05:00
Brandon Shroyer
f135594e91
Filling out new command instructions in README.md.
2016-03-01 17:48:32 -05:00
Brandon Shroyer
ba5442e15d
Removed some noisy contexts from test files.
2016-03-01 16:25:01 -05:00
Brandon Shroyer
21f151c2c0
Add support for environment command.
2016-03-01 16:25:01 -05:00
Brandon Shroyer
5a6e7ae8bc
Use code module to avoid naming commands explicitly in RabbitMQCtl.main.
2016-02-25 16:16:25 -05:00
Brandon Shroyer
c46a5156cb
Split status printing methods into separate module.
2016-02-25 15:03:28 -05:00
Brandon Shroyer
23944df43c
Dry out pattern-matching in print functions.
2016-02-25 11:45:35 -05:00
Brandon Shroyer
e12762104b
Add remaining properties to status printout.
2016-02-25 11:34:42 -05:00
Brandon Shroyer
43e12e7b92
Refactored table printing into separate module.
2016-02-24 18:28:12 -05:00
Brandon Shroyer
695b3bf527
Refactor line breaks.
2016-02-24 13:16:25 -05:00
Brandon Shroyer
87a604b47d
Add memory info printing to status.
2016-02-24 13:11:23 -05:00
Brandon Shroyer
d6f51eb766
Added Erlang OTP, ERTS version to status and refactored running apps display.
2016-02-24 12:24:39 -05:00
Brandon Shroyer
866bd9b1f4
Updated testing section in README.md.
2016-02-03 11:13:02 -05:00
Brandon Shroyer
052b4a396a
Removed Hex installation stuff, since I do not believe we are using it.
2016-02-03 11:05:45 -05:00
Brandon Shroyer
b3492934f6
Clarification in README.md.
2016-02-03 11:04:13 -05:00
Brandon Shroyer
c7dc659f29
Add license link to README.md.
2016-02-03 10:37:07 -05:00
Brandon Shroyer
8764f59093
A couple of comments and some nicer spacing between public and private methods.
2016-02-03 10:15:43 -05:00
Brandon Shroyer
66d53eceee
Removed rabbit_cli.hrl file.
2016-02-03 10:03:50 -05:00
Brandon Shroyer
d5278f0ec3
Added legal boilerplate.
2016-02-03 10:01:32 -05:00
Brandon Shroyer
caef6f5f40
Renamed app to RabbitMQCtl.
2016-02-03 09:43:21 -05:00
Brandon Shroyer
5ac4a674fc
Add a note to Markdown file.
2016-02-02 17:27:18 -05:00
Brandon Shroyer
30004992e5
Add more parser tests, alias for quiet flag.
2016-02-02 17:11:54 -05:00
Brandon Shroyer
a18e230afa
Rename CLI to ElixirMQCtl.
2016-02-02 17:11:09 -05:00
Brandon Shroyer
a2be29a556
Add stub for usage message.
2016-02-02 16:32:35 -05:00
Brandon Shroyer
a843b837d8
Style-guide compliance.
2016-02-02 16:26:10 -05:00
Brandon Shroyer
2775ed5a82
Removed automatic node name generation.
...
* It's not a good thing to do, symbol-table-wise, and right now we can't run
tests in detached mode, so we can't make effective use of it in test mode.
2016-02-02 13:56:15 -05:00
Brandon Shroyer
993df7ad51
Initial commit.
2016-02-02 13:54:36 -05:00