summaryrefslogtreecommitdiff
path: root/qpid/java/broker/src/test
Commit message (Collapse)AuthorAgeFilesLines
...
* QPID-4390: Introduce a configuration store in java broker allowing runtime ↵Alex Rudyy2013-02-1976-3845/+4310
| | | | | | modifications and replace existing xml file configuration with json configuration store git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1447646 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4550 : AMQP 1.0 Persistent Messages cause failure on restartRobert Godfrey2013-01-251-5/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1438556 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4281: Fix setting of log4j configuration in system tests. While testing ↵Alex Rudyy2013-01-241-1/+2
| | | | | | | | the fix, some tests were found to be failing on spawned profile due to config problems - also fixed these. Applied patch from Philip Harvey <phil@philharveyonline.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1438053 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3569: Refactor TransactionTimeoutKeith Wall2013-01-076-50/+294
| | | | | | | | | | | | | * Moved the duplicated transactionUpdateTime member from AMQChannel/ServerSession to ServerTransaction. ** LocalTransaction now maintains advances transactionUpdateTime on each enqueue/dequeue operation ** Other non-transactional ServerTransaction impls return transactionUpdateTime of 0 (as they already do for transactionStartTime). ** Changed LocalTransaction so that transaction start time is recorded on first enqueue or dequeue operation (rather than only first enqueue) * Moved duplicated logic from AMQChannel/ServerSession#checkTransactionStatus to TransactionTimeoutHelper * Make TransactionTimeoutTests use a durable queue so it is actually testing with store transactions. * Removed warnings if operational logging is turned off. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1429726 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4521: ensure that the routing key is properly passed to the alternate ↵Robert Gemmell2012-12-231-0/+97
| | | | | | Topic exchange by the adapter. Add unit tests for the adapter methods. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1425515 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4472 : [Java Test] Fix MultiVersionProtocolEngineTest to work with AMQP ↵Robert Godfrey2012-11-261-0/+26
| | | | | | 1.0 connections. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1413724 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4335, QPID-4353: Refactored broker plugins to use simplified ↵Robert Gemmell2012-10-1220-775/+1024
| | | | | | | | | | | | | | | | ServiceLoader-based model rather than embedding Felix to use OSGi. Removed the ability to reload security configuration because this feature is not very useful in its current form and was making our code hard to refactor. Modified all tests to use jars rather than classes. This makes them closer to real-world deployments, e.g. the META-INF/services file is read from within the jar. Also moved various system tests from their respective modules into "systests". This removes the need for most modules to depend on systests, thus simplifying our dependency graph. Applied patch from myself, Keith Wall and Phil Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1397519 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4333: remove the 'queue reconfiguration' process and various clases ↵Robert Gemmell2012-09-242-137/+2
| | | | | | | | leftover from SCD Work by Keith Wall and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1389451 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4313: Address review comments from QPID-4109 (Reenable LoggingManagement)Keith Wall2012-09-211-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1388457 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4333: remove the Slow Consumer Detection plugin and associated ↵Robert Gemmell2012-09-205-1021/+0
| | | | | | | | documentation Work by Keith Wall and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1388047 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4292: add ACL rule to authorise access to the web management UIKeith Wall2012-09-101-27/+54
| | | | | | | | | | | * added object name MANAGEMENT to represent both JMX and Web Management layers * Change both JMX/Web entry points to permission access with an access management check * Updated examples and docbook * Made Principals serialised to avoid container warnings when Qpid principals are placed within a HttpSession. Work of Robbie Gemmell <robbie@apache.org> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1382947 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4255: Add "log out" functionality to web UIKeith Wall2012-09-061-0/+13
| | | | | | | | | | | * Added logout link to the Web Management UI (displayed once a user is logged in). * Added operation logging (open/close event) to report the fact that the user has logged in, logged out (or gone away i.e. web session timeout). * Allow Jetty web session timeout to be overridden from the config.xml Work of Robbie Gemmell <robbie@apache.org> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1381637 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4283: Make web management capable of using external authentication manager.Keith Wall2012-09-041-0/+39
| | | | | | | | | | | also: * remove test servlets * rename management.html => index.html * allow sasl-auth to be disabled Work of Robbie Gemmell <robbie@apache.org> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1380626 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4238: escape tags for queue and virtualhost names with dots in them ↵Robert Gemmell2012-09-021-0/+45
| | | | | | | | | when accessing the XML configuration, works around CommonsConfiguration behaviour with element names containing dots Applied patch from Jakub Scholz git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1380037 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4270: Change web management plugin to log management operational log ↵Keith Wall2012-08-301-15/+6
| | | | | | messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1379139 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4242 : [Java Broker] Remove QMFv1 implementationRobert Godfrey2012-08-2913-331/+52
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1378496 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4236, QPID-4237, QPID-4245: Added group management functionality, and ↵Robert Gemmell2012-08-2423-201/+1550
| | | | | | | | | | | | | | | | | | | exposed it via the web management interface. Removed group definition functionality from the ACL plugin. The ACL plugin uses groups but no longer defines them. Introduced SubjectCreator as a facade to AuthenticationManager and group management classes. Applied access control to user and group management. Fixed bug in choosing between update and creation in RestServlet. Moved lots of RestTest helper methods to RestTestHelper. Fixed authentication, authorisation, and status logging when using the web ui. Applied patch from Philip Harvey <phil@philharveyonline.com>, Keith Wall and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1376968 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4187: Improve operational management logging: - make ManagementActor ↵Robert Gemmell2012-08-031-9/+63
| | | | | | | | thread-safe, stop caching of log string without context principal set, use separate instance of ManagementActor with pre-set principal for opening and closing notifications for JMX connections Applied patch from Philip Harvey <phil@philharveyonline.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1368979 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4172: HouseKeepingTask now reverts thread name before exiting to reduce ↵Robert Gemmell2012-08-021-0/+46
| | | | | | | | confusion when inspecting thread dumps. Applied patch from Philip Harvey <phil@philharveyonline.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1368519 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4182: Set the default minimumAlertRepeatGap value to 30 secondsRobert Gemmell2012-08-022-12/+21
| | | | | | Applied patch from Philip Harvey <phil@philharveyonline.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1368506 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4171: Fix enqueue ordering for persistent messsagesKeith Wall2012-08-012-1/+141
| | | | | | Applied patch from Philip Harvey <phil@philharveyonline.com> and Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367990 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4124: Improved logging that is produced when the various transaction ↵Robert Gemmell2012-07-311-0/+101
| | | | | | | | timeouts are exceeded. Remove duplication of messages and reorder logging/closing. Work by myself, Keith Wall, Phil Harvey. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367522 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3998, QPID-3999: System tests for Rest API, small fixups for the ↵Robert Gemmell2012-07-111-0/+6
| | | | | | | | adapters and web ui. Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1360121 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4111: Move trunk version numbers to 0.19Justin Ross2012-07-091-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1359235 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3923, QPID-3998: split out the IDs used for QMF (which have a different ↵Robert Gemmell2012-07-089-49/+55
| | | | | | format) from those for the new config model, make it clearer which is being used where git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1358759 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3923, QPID-3998: update the Adapter layer to either use UUIDGenerator ↵Robert Gemmell2012-07-081-43/+145
| | | | | | itself, or use the ID directly from the entity being adapted git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1358758 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4112: Virtualhosts recover exchanges before queuesKeith Wall2012-07-061-3/+3
| | | | | | | Switch the recover order from queues,exchanges,... to exchanges,queues,.. so that when a queue with an alternate exchange is recovered, the exchange's uuid is already in the registry. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1358118 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4109: Re-enable LoggingManagement MBeanKeith Wall2012-07-052-0/+286
| | | | | | | | | | | | | * Re-wire up LoggingManagementMBean. * Centralise log4j specific functionality into LoggingFacade class (moving implementation from LoggingManagementMBean and QpidLog4JConfigurator together). * Implement unit-tests for MBean and Facade levels. Reenforce units tests with system tests testing logging management end to end. * Changed QpidBrokerTestCase so that log4j.configuration is _always_ used to obtain the log4j config file regardless of whether test type is spawned or internal (previously log4j.configuration was respected only for internal tests). This was require to be able to write a logging management system test that could safely change the contents of the log4j config without running the risk of effecting other tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1357528 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add missing Apache licenses to Java source files; correct ↵Keith Wall2012-07-022-17/+17
| | | | | | positioning of the license wrt to the package statement git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1356257 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3923: remove deprecated test-only AMQQueueFactory method and update ↵Robert Gemmell2012-07-0110-94/+67
| | | | | | tests accordingly, rename method for generating random IDs. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1355995 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3923: update ID generation to be consistent across all ↵Robert Gemmell2012-07-011-0/+111
| | | | | | queues/exchanges/bindings as opposed to deterministic for some and not for others git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1355994 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4902: NPE from SimpleAMQQueue and RejectedExecutionExecution handlingKeith Wall2012-06-301-1/+1
| | | | | | | | Guard against NPE in setLastSeenEntry. #execute() method change to ignore REE in the case where the queue has already been stopped (logged at ERROR otherwise). Change Subscription*#_queueContext member to volatile as this member is get/set from different threads during the queue's lifecycle git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1355721 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3998, QPID-3999, QPID-4093: add new management plugins for ↵Robert Gemmell2012-06-2823-2921/+642
| | | | | | jmx/rest/webui functionality, partial merge from the java-config-and-management branch at r1355039 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1355072 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3997: [Java Broker] Allow assignment of AuthenticationManager on a ↵Keith Wall2012-06-103-6/+74
| | | | | | | | per-port basis Address review comments from Rob Godfrey. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1348603 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4042 : [Java Broker] Add SSL Client Auth supportRobert Godfrey2012-06-064-15/+131
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1346817 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3997: Fix test failure under JDK 1.7 when AuthenticationManagers would ↵Keith Wall2012-06-036-264/+328
| | | | | | | | | | not always be properly closed ApplicationRegistry refactored: Resposibilities for lifecycle of AuthenticationManager objects transfered to AuthicationManagerRegistry (better separation of concerns). Implemented new pure unit test to expose the failing test and then changed algorithm so that AuthenticationManagers are closed on all paths. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1345607 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4029: add ability to selectively include a protocol version on a given ↵Robert Gemmell2012-05-293-0/+140
| | | | | | port, overriding an exclusion on the same port or it being disabled on all ports. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1344040 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3986: Improved tests and resolved some potential thread-safety issuesRobert Gemmell2012-05-292-0/+240
| | | | | | Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343675 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4006: add support for using BDB HA to form an active-passive cluster ↵Robert Gemmell2012-05-1711-93/+52
| | | | | | | | | | | for persistent messaging - Includes support for setting BDB configuration parameters via the store configuration, both for the existing store and the new HA variant. - Removes the MessageStoreFactory and reverts store configuration to historical values. Applied patch from Keith Wall, Andrew MacBean <andymacbean@gmail.com>, Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com>, and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339728 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3997 : [Java Broker] add ability to configure multiple ↵Robert Godfrey2012-05-177-9/+356
| | | | | | Authenticationmanagers and map different AuthenticationManagers to different ports git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339578 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3997 : [Java Broker] Refactor code to make all calls to ↵Robert Godfrey2012-05-161-1/+2
| | | | | | | | getAuthenticationManager() pass in local socket address (note that this commit does not actually implement per socket authentication managers) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339146 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3979: [Java Broker] Last value queue memory leakKeith Wall2012-05-091-0/+211
| | | | | | The failure to remove entries from the _latestValuesMap caused leak of ConflationQueueList entries. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1336127 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3985 : [Java Tests] Fix locale specific testsRobert Godfrey2012-05-072-32/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1335303 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3986 : [Java Broker] Add producer flow control based on total disk usageRobert Godfrey2012-05-071-1/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1335290 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3864: add missing licence headers to files in the java tree that are ↵Robert Gemmell2012-04-192-0/+40
| | | | | | included in 0.16 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1327905 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3959: ensure the test creates/removes its own ApplicationRegistry with ↵Robert Gemmell2012-04-181-2/+22
| | | | | | | | a null AuthenticationManager. Applied patch from Andrew MacBean <andymacbean@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1327556 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3923: Store queue, exchange and binding as configured objects in bdb storeRobert Gemmell2012-04-178-18/+458
| | | | | | Applied patch by Oleksandr Rudyy <orudyy@gmail.com>, Phil Harvey <phil@philharveyonline.com>, and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1327003 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3917 : Refactor changes to MessageStore to use listeners and not decoratorsRobert Godfrey2012-04-128-249/+296
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1325467 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3933 : [Java] Add interim AMQP 1-0 implementationRobert Godfrey2012-04-045-3/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1309594 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3927: ensure that priority is properly accounted for when comparing ↵Robert Gemmell2012-04-031-0/+117
| | | | | | messages on different QueueEntryLists contained within the encompassing PriorityQueue git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1309050 13f79535-47bb-0310-9956-ffa450edef68