Commit Graph

909 Commits

Author SHA1 Message Date
Simon MacMullen 504eb4cc90 It's a schema, not a configuration. 2011-10-05 17:58:22 +01:00
Simon MacMullen 641a7b3083 Bug 24095 probably should have had this in it, but it only became needed once bug 24243 was merged. Oops. Still, this is very similar to what we do in federation. 2011-08-24 11:57:58 +01:00
Simon MacMullen cdac39d2e3 Merge in default. 2011-08-16 13:06:42 +01:00
Simon MacMullen 868c8846c8 Remove dead synchronised slaves when we hear about them, fix up tests, tidy up. 2011-08-09 16:35:59 +01:00
Alexandru Scvortov 59a3bd0c17 update test copyright headers 2011-08-01 10:41:44 +01:00
Simon MacMullen e61dce22c0 Check when base64 decoding, and a touch of refactoring. 2011-07-27 15:15:40 +01:00
Simon MacMullen 44e7beeb05 The simple solution: just add exclusive_consumer_pid back and add a test. 2011-07-20 11:50:15 +01:00
Simon MacMullen b6b4917a07 Add a test of HA queue mgmt and fix a bug thus found. 2011-07-19 17:35:40 +01:00
Simon MacMullen d6d1e517e8 Use an include file 2011-07-19 14:37:56 +01:00
Simon MacMullen 64e1dbaf49 Start of tests that require clustering. 2011-07-19 14:33:53 +01:00
Simon MacMullen 4ef9fe88d8 Merge bug24241 2011-07-05 16:32:08 +01:00
Matthew Sackman 258aefd007 Implement agreed changes 2011-07-05 15:21:32 +01:00
Matthew Sackman e7e5a5f854 coarse => basic; detailed => full 2011-07-05 14:29:35 +01:00
Matthew Sackman 79b94f0608 annotate => augment 2011-07-05 13:50:22 +01:00
Matthew Sackman a36e060870 Tidy db API, remove inconsistencies, and increase flexibility. 2011-07-05 13:06:25 +01:00
Simon MacMullen f9e12e8cc4 Rename tags to administrator / monitoring / management. 2011-06-17 14:36:04 +01:00
Simon MacMullen 9419ababbf Merge in bug24164 (and hence default) 2011-06-17 14:31:51 +01:00
Simon MacMullen c4d725a0a3 Merge in default 2011-06-17 14:27:49 +01:00
Simon MacMullen 50a0d3614a 'management-user' tag. 2011-06-13 14:51:56 +01:00
Simon MacMullen 3cab2672ea Test monitoring stuff better. Oh, and consequently fix a bug. 2011-06-10 15:40:58 +01:00
Simon MacMullen 6e17e76488 Docs, strip spaces around tags. 2011-06-09 15:18:50 +01:00
Simon MacMullen 17ef61c083 Let's just represent tags as a comma-separated string. This will make UI easier to implement. 2011-06-09 14:50:24 +01:00
Simon MacMullen 2497a8ddc5 API compatibility with user tags 2011-06-09 14:23:53 +01:00
Simon MacMullen 4b5b191348 Support the stats interval being configurable. This looks much worse than it is - basically we need to thread State down to zero_rates. While doing that, it makes sense to thread State to everywhere we used to thread Tables, since we needed to do some of that anyway and this is more consistent and future-proof. 2011-06-09 12:15:15 +01:00
Michael Bridgen 9bfbf65549 Merge bug24074 2011-06-02 16:36:22 +01:00
Simon MacMullen 4d62b424fe Use the interval to correct to an idealised rate for the test. 2011-05-24 17:38:43 +01:00
Simon MacMullen ce9dde2908 Expose tracing enabledness in mgmt. 2011-05-23 15:37:33 +01:00
Simon MacMullen 53ac82cf2c Merge in default 2011-05-16 14:11:14 +01:00
Emile Joubert 4165e86742 Merged bug24082 into default 2011-05-13 11:43:16 +01:00
Simon MacMullen 9f4f3c7f90 (WIP) revert the columns-passing-down-into-the-db thing, but never retrieve consumer details for lists - that's really expensive; the fine stats is much less so. Also refactor a bit. 2011-05-09 18:27:57 +01:00
Simon MacMullen 6197d4c3ae Pick bits out of propslists when descending columns. rabbitmqadmin list queues message_stats.publish_details.rate both works and is efficient now. 2011-05-09 17:12:21 +01:00
Simon MacMullen 9cd1d6007b Oops, another refactor-after-test typo. 2011-05-09 16:36:18 +01:00
Simon MacMullen bc0cd99cc0 Simple test, and fix the bug it found. 2011-05-09 15:45:30 +01:00
Simon MacMullen afcf38dd20 Allow specifying columns. In most cases we filter out uninteresting things just before JSON-encoding, but for a couple of things that are semi-expensive in the first place (message_stats, consumer_details) we filter out at the rabbit_mgmt_db:get_* stage.
(Transplant of 7a4365e1e093 onto correct branch.)
2011-05-09 15:10:20 +01:00
Simon MacMullen 6a6ec38ded This use of rabbit_mgmt_util:with_decode is very wrong - it enforces the presence of routing_key and arguments (which it shouldn't), but *after* the binding is created anyway! Fix this, and improve tests to match. 2011-05-04 17:36:22 +01:00
Simon MacMullen fb34fa4174 Separate out different types for network and direct connections, don't check the password for direct ones. 2011-05-03 15:46:02 +01:00
Simon MacMullen 47aac133fe Merge from default 2011-04-11 17:21:53 +01:00
Simon MacMullen de965ebce9 Truncate message payloads in the web UI so as not to crash the browser... 2011-03-10 17:22:08 +00:00
Simon MacMullen 1d2a565714 Offer a choice of encoding on get. 2011-03-10 16:33:58 +00:00
Simon MacMullen fcb727cba4 Merge from default. 2011-03-08 17:41:51 +00:00
Michael Bridgen 570c2e2149 Merge bug23827 2011-03-07 16:55:47 +00:00
Simon MacMullen b8270f4652 Make responding to a post feel more like anything else. Improve error handling and tests for same. 2011-02-25 14:16:40 +00:00
Simon MacMullen fafab19f6a Make round-trips between publish and get work. Fix various things to do with JSON<->AMQP structures. Tests for publishing. 2011-02-24 17:17:33 +00:00
Simon MacMullen 5ffcc07eb3 Get more than one message at a time from the queue, allow noack=false (will inevitably requeue messages). 2011-02-22 14:00:20 +00:00
David Wragg f209fd49a2 Merge default into bug23568 2011-02-22 03:24:42 +00:00
Simon MacMullen 9e0cf7e6b3 This is my attempt at HTTP messaging. There are many like it, but this one is mine. 2011-02-21 18:20:33 +00:00
David Wragg b7e62860e8 Merge default into bug23568 2011-02-15 15:42:10 +00:00
Simon MacMullen 51f11e9144 Support arrays in arguments: API, and web UI for display but not input. 2011-02-11 18:04:05 +00:00
David Wragg 7c05ecc080 Move relativise into rabbit_mochiweb_util 2011-02-11 11:43:18 +00:00
David Wragg e5efb6dedc Merge bug23524 into default: URL path prefix support 2011-02-11 11:23:43 +00:00
David Wragg 81e62acb55 Merge default into bug23568 2011-01-28 17:09:59 +00:00
Simon MacMullen 051795a5f1 List all consumers: code, tests, docs, rabbitmqadmin. 2011-01-20 17:35:50 +00:00
Simon MacMullen 9181e18794 rabbit_mgmt_util:vhosts/1 doesn't exist any more since bug 23455. Fix, add a test for the non-admin case, look embarrassed. 2011-01-20 14:54:41 +00:00
David Wragg 32bd036f72 Merge default into bug23568 2011-01-14 13:28:35 +00:00
Simon MacMullen 47e1ffa58e Relative location header when creating a binding by POST. 2011-01-12 17:17:02 +00:00
David Wragg e0ef03ea82 Merge default into bug23568 2011-01-07 12:08:52 +00:00
Simon MacMullen bd75703491 Merge in default 2010-12-21 17:22:13 +00:00
Simon MacMullen 0847cfb669 Comment 2010-12-21 17:06:02 +00:00
Simon MacMullen 05b327e71a So httpc is a bit racy when HTTP/1.1 is used. Switch to HTTP/1.0 and go much faster.
One test is still racy though, that might be our fault.
2010-12-21 17:02:44 +00:00
Simon MacMullen 4d48777127 Merged bug23358 into default 2010-12-20 13:02:54 +00:00
Simon MacMullen 476055c200 Fix warnings 2010-12-20 11:52:07 +00:00
Emile Joubert cb8d316e00 Merged bug23506 into default 2010-12-13 17:31:54 +00:00
Emile Joubert 4cf4f0d8c2 Merged bug23467 into default 2010-12-13 13:40:10 +00:00
Simon MacMullen 9b1d6f2c91 Allow PUTing users with password, password_hash, or neither. 2010-12-09 13:47:47 +00:00
Jerry Kuch 080e065e28 Merge from default. 2010-12-08 14:19:46 -08:00
David Wragg 5297aab0ac Merge from default 2010-12-02 12:32:25 +00:00
Simon MacMullen ee811d99fd So those tests should have failed long ago when I removed send_oct et al from /overview, but... Erlang claims 0 < undefined. I disagree. Fix that, and make sure we would catch bug 23551 if it happened again. 2010-11-29 10:45:59 +00:00
Simon MacMullen 06f8a73d04 These should really be binaries. rabbitmq-erlang-client on default allows you to get this wrong. We don't now. 2010-11-19 16:14:28 +00:00
Simon MacMullen 0eb3755ff8 Replace most creations of AMQPish records with use of rabbit_mgmt_util:http_to_amqp/5. Trim down tests quite a bit to only use manadatory args or ones we care about. 2010-11-19 10:55:40 +00:00
Simon MacMullen e9fe19a4b4 Fix rabbitmqadmin, config import, and tests. The first two are trivial, the last is a mess and convinces me to start work on bug 23384. 2010-11-17 10:51:23 +00:00
Simon MacMullen d479c86a0c Merged from default 2010-11-05 14:40:09 +00:00
Simon MacMullen fe1edc5c59 Rather more tests of aggregation. 2010-11-03 12:18:21 +00:00
Simon MacMullen 777e96ca70 Refactor + simplify existing rates tests 2010-11-03 10:54:17 +00:00
Simon MacMullen f832e0a788 Merge from default again 2010-11-02 17:32:05 +00:00
Simon MacMullen 7253d17ab6 Merge default into bug23374. 2010-11-02 17:29:38 +00:00
Simon MacMullen 887e55312b Merged from default 2010-11-02 15:51:31 +00:00
Simon MacMullen 4930cf197f Tiny additional test 2010-10-28 15:41:04 +01:00
Simon MacMullen ef0378d52b Fix a test 2010-10-28 15:36:38 +01:00
Simon MacMullen 8ae35dd964 Various API changes 2010-10-26 13:52:08 +01:00
Alexandru Scvortov 6616a97dcd merge default into bug23319 2010-10-18 15:54:53 +01:00
Matthew Sackman 063938da3c Merging default into bug23274 and debitrot 2010-10-18 13:12:46 +01:00
Simon MacMullen 2a84a18973 Merge from default 2010-10-14 11:42:53 +01:00
Simon MacMullen 656e7fb124 Bugfix: encode empty routing key and no arguments as "_" not "". This is consistent with the scheme and means bindings with no routing key or arguments get a valid URI. 2010-10-14 11:29:30 +01:00
Simon MacMullen e76286fd49 List source and destination bindings for an exchange. 2010-10-13 18:21:11 +01:00
Simon MacMullen 00d8c1a214 Partial support for e2e bindings in the HTTP API. 2010-10-13 18:01:41 +01:00
Simon MacMullen 3faf880f03 Take the args into account in the location we send back. 2010-10-13 17:18:30 +01:00
Simon MacMullen 5f6da19df8 Fix warning 2010-10-13 17:17:57 +01:00
Alexandru Scvortov 1f460a6901 typo 2010-10-13 15:58:52 +01:00
Alexandru Scvortov 5eef944c81 merge default into bug23319 2010-10-13 15:46:21 +01:00
Simon MacMullen ab6f1c1cd5 Get rid of "e2q", rewrite help a little. 2010-10-13 15:03:13 +01:00
Alexandru Scvortov 42de4acdda remove scope from management plugin 2010-10-13 14:51:23 +01:00
Simon MacMullen dc250f3a7c Shuffle URIs around to make space for e2e bindings when they appear. 2010-10-13 14:23:37 +01:00
Simon MacMullen 493f5cf343 Although we don't want to export amq.* exchanges, we do want to export bindings to them. 2010-10-13 14:07:05 +01:00
Matthew Sackman b71c3aff66 Debitrotting bug 23274 with merge from default yet a-sodding-gain 2010-10-12 11:41:17 +01:00
Simon MacMullen 7d8b29ed91 Sorting with dots. Lets you sort to find fast publishers / slow consumers. 2010-10-12 11:23:57 +01:00
Simon MacMullen 8284fed96e Sorting. 2010-10-11 17:05:06 +01:00
Simon MacMullen 1280faad4b More tests, fixes, coverage, remove unreachable code, etc. 2010-10-11 13:22:37 +01:00
Simon MacMullen cd7eaeaec0 Add and fix another test case, remove some unreachable code. 2010-10-11 12:12:25 +01:00
Simon MacMullen 95127f103c Fix tests and refactor slightly. 2010-10-11 11:57:02 +01:00
Simon MacMullen bb0e1cd0c7 Blatant coverage-increasing. Some tests that actually fail. 2010-10-08 19:00:16 +01:00
Simon MacMullen 77591ba23f Remove "key_" from generated binding names. In the simplest case the generated name is now the same as the routing key. 2010-10-08 18:11:17 +01:00
Simon MacMullen e04f4f8ce3 If a test suite fails, stop. 2010-10-08 16:53:45 +01:00
Simon MacMullen 3517bdd4c2 Fix 500 errors when the vhost is wrong. 2010-10-08 16:53:31 +01:00
Matthew Sackman 355132a7dd Merging default into bug23274 2010-10-07 17:20:57 +01:00
Simon MacMullen f62ffb1a6e Queue purge. 2010-09-30 17:49:28 +01:00
Simon MacMullen 6a99542b5a Hide unusable bits of the web UI from non-administrator users. 2010-09-30 13:19:54 +01:00
Simon MacMullen 2d050a0793 Allow non-administrators to GET /vhosts. In the non-admin case this only returns vhosts the user can access. This makes the web UI mostly work for non-admins. 2010-09-30 12:57:50 +01:00
Simon MacMullen 93da1aa066 Improve consistency. 2010-09-29 12:43:21 +01:00
Simon MacMullen 9c60298944 Make it clearer that we export server-named queues. 2010-09-29 11:53:50 +01:00
Matthew Sackman 5437d147b1 Move test code so that test coverage works 2010-09-28 18:00:59 +01:00
Simon MacMullen 4385403b54 Support arguments in the HTTP API (but not the web UI yet). 2010-09-28 15:11:16 +01:00
Simon MacMullen 601a8e61a5 Remove obsolete test, rename all the others. 2010-09-28 12:20:33 +01:00
Simon MacMullen a369923393 Rename module/ 2010-09-28 12:19:24 +01:00
Simon MacMullen 4ea3bc8e36 Don't export exclusive queues or the built-in exchanges, or bindings that refer to them. 2010-09-28 11:42:44 +01:00
Simon MacMullen 72290daada Web ui for uploading configuration, more tests, more correctness. 2010-09-27 18:08:41 +01:00
Matthias Radestock f7735c2806 cosmetics and minor refactorings 2010-09-27 16:05:05 +01:00
Simon MacMullen 778a32a2e0 Merge heads 2010-09-27 13:54:24 +01:00
Simon MacMullen 8d01de35a4 Support PUTting all-configuration. 2010-09-27 13:49:53 +01:00
Simon MacMullen e57af602ab Fix the {function_clause,[{proplists,get_value,[rate,0,unknown]}... problem. Testign this requires makign the DB tests support an arbitrary number of stages. 2010-09-27 12:52:31 +01:00
Simon MacMullen 26596754e9 Aliveness test for monitoring. 2010-09-23 16:27:26 +01:00
Simon MacMullen 1de415916c Make vhost api more consistent with everything else, allow downloading broker configuration. 2010-09-21 21:20:07 +01:00
Simon MacMullen a726c5c358 Remove some TODOs around permissions. 2010-09-14 17:21:36 +01:00
Simon MacMullen 85943e1e91 Don't talk to mnesia directly. 2010-09-14 16:48:41 +01:00
Simon MacMullen a6d7112c4b Oops. 2010-09-14 16:35:02 +01:00
Simon MacMullen 165a1de0d7 Fix non-ASCII characters in names, unused variables. TODO. 2010-09-14 15:46:19 +01:00
Simon MacMullen c54b1c3541 Enforce permissions around channels / connections. 2010-09-13 15:48:11 +01:00
Simon MacMullen a60536f59a Merge heads. 2010-09-13 14:42:06 +01:00
Simon MacMullen 08f7de3d67 Enforce permissions more: users can only see things if they have permissions for that vhost. 2010-09-13 14:41:19 +01:00
Matthew Sackman b62dcb2875 Merging bug 23234 into default 2010-09-10 15:34:12 +01:00
Simon MacMullen 13529a9731 Lock non-admins out of users, permissions, vhosts. 2010-09-09 15:52:02 +01:00
Simon MacMullen db9cb66543 Better tests 2010-09-09 14:15:18 +01:00
Simon MacMullen 3908dea152 Oops, forgot to alter tests... 2010-09-09 12:51:58 +01:00
Vlad Alexandru Ionescu 1105b64b3b updating use of Erlang client API 2010-09-08 15:54:19 +01:00
Simon MacMullen baf3dabbf6 Rearrange rates into a details object. Change overview to show global message rates rather than data rates. 2010-09-02 12:58:34 +01:00
Simon MacMullen cecfb612a5 Rearrange the URL scheme a little. 2010-09-01 17:45:05 +01:00
Simon MacMullen 9f22841c0b First pass at bindings. 2010-09-01 17:26:51 +01:00
Simon MacMullen cd3d2c015d Try to make what you PUT == what you GET. 2010-08-31 16:44:12 +01:00
Simon MacMullen 19a4ad769d Missed one. 2010-08-31 14:44:29 +01:00
Simon MacMullen a0ab8bc1af Shuffle URIs around so we don't eat the whole namespace. Show URIs on startup. Simple documentation mechanism for REST. 2010-08-27 16:18:41 +01:00
Simon MacMullen c3d234b3e4 Queue details GET / PUT / DELETE, UI. 2010-08-27 10:55:32 +01:00
Simon MacMullen dce819ab2f Exchanges. 2010-08-26 17:42:03 +01:00
Simon MacMullen 07bf31d274 Stop the fine stats from being their own REST endpoint, create a channels endpoint instead. Greatly improves the channels list page, probably a net simplification, although some tests are commented out on the basis that such data is no longer available (yet). 2010-08-25 18:18:31 +01:00
Simon MacMullen 142411dff0 Add mechanism to forcibly close a connection. 2010-08-25 15:11:30 +01:00
Simon MacMullen 082fc669aa Convert to identifying connections by name in the REST schema. 2010-08-25 12:24:34 +01:00
Simon MacMullen e943c41d15 REST for permissions. 2010-08-24 15:26:14 +01:00
Simon MacMullen c52999cfa7 Apparently plurals are more RESTful than singulars. 2010-08-24 11:52:06 +01:00
Simon MacMullen 33c6043877 REST for users. 2010-08-23 15:14:59 +01:00
Simon MacMullen 92508c6113 REST for vhosts. 2010-08-23 13:48:17 +01:00
Simon MacMullen 0b3c8a0bbe I just noticed I marked all these as (C) LShift 2009. Um, no. 2010-08-12 16:31:31 +01:00
Simon MacMullen 0c2fc1ed0f POC HTTP test. 2010-08-12 16:16:45 +01:00
Simon MacMullen d11de7cb61 More tests. 2010-08-12 14:54:39 +01:00
Simon MacMullen ef9390b5ed Shorten module names, rename a bunch of things to be more logical. 2010-08-12 12:34:50 +01:00
Simon MacMullen 48878b0e03 Another test. 2010-08-12 11:47:23 +01:00
Simon MacMullen b76b406b4a Show the tests that are run. 2010-08-12 10:54:14 +01:00
Simon MacMullen 884731fbfb Fix tests. 2010-08-12 10:47:33 +01:00
Simon MacMullen 5b4d6f228b That's how to test; unfortunately tests fail. 2010-08-11 19:00:53 +01:00
Simon MacMullen d5ad9d8021 More tests, fix a bug that was uncovered, cosmetics. 2010-08-11 18:28:03 +01:00
Simon MacMullen 61d8735679 More tests. 2010-08-11 15:51:30 +01:00
Simon MacMullen 48273a4f1f Start of an integration test; just queues for now. 2010-08-11 14:40:20 +01:00