summaryrefslogtreecommitdiff
path: root/java/systests/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-2599Rajith Muditha Attapattu2010-05-111-28/+0
| | | | | | | Removing all log4j xml and property files from the code base, except for the ones in test-profile folder and broker/etc folder. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943339 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1447 : Add initial test for SlowConsumersMartin Ritchie2010-05-071-1/+68
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942106 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2583 : Update tests to correctly throw ConfigurationException where ↵Martin Ritchie2010-05-074-2/+15
| | | | | | requried and to correctly configure configuration git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942105 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2582 : Print stack traces if the registry fails to clean up as a result ↵Martin Ritchie2010-05-071-1/+10
| | | | | | of a failed InVM broker startup git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942104 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2575 : Add getClientID to SessionModel and standardise use accross ↵Martin Ritchie2010-05-071-2/+47
| | | | | | | | 0-8/0-10, 0-10 does not appear to provide a client ID so maintaining use of Principal Name. This means migration between 0-8 and 0-10 will not behave as expected. Correct erroneous usages of session.getPrincipal when comparing with queue.getOwner is requried. Queue owners are the client id not the authenticated user. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942102 13f79535-47bb-0310-9956-ffa450edef68
* Modified the testHeartbeat method to use an external script to start & stop ↵Rajith Muditha Attapattu2010-05-062-11/+31
| | | | | | the broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941934 13f79535-47bb-0310-9956-ffa450edef68
* The heartbeat wasn't being set properly and these mistakes went uncaught due ↵Rajith Muditha Attapattu2010-05-062-2/+107
| | | | | | | | | | | | to lack of proper test. I have added a test case to AMQConnectionTest called testHeartBeat. This test fails once in a while even when I have an external script to clean the broker instance. It seems once it's wedged with kill -STOP, it somestimes doesn't get cleaned up properly with kill -9. Despite the occasional failure, I think it's worth to have this test as a lot of our users rely on heartbeat functionality. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941553 13f79535-47bb-0310-9956-ffa450edef68
* Removed assertions based on wrong assumptions.Rajith Muditha Attapattu2010-05-031-8/+7
| | | | | | | The c++ broker does not make any guarantees about how it distributes the messages among consumers on a single queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@940674 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2471Rajith Muditha Attapattu2010-04-291-1/+140
| | | | | | | Added two test cases to verify ordering while using recover with sync and async consumer. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@939410 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2508, Committing a patch from Emmanuel BourgRajith Muditha Attapattu2010-04-221-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936575 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2097: Enable MALT and update it to fix breakages while it was disabled. ↵Robert Gemmell2010-04-202-9/+18
| | | | | | Enable the excluded PFC JMX test in the InVM profile now that InVM JMX is available. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935929 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2097: Use the standard RMIServerSocketFactory for InVM testing to ↵Robert Gemmell2010-04-201-0/+1
| | | | | | workaround the alternating pass-fail issue encountered when running back to back tests using JMX with the InVM broker. Enable the ModelTest. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935928 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2097: fix issues with ModelTest to allow it to pass normally: it isnt ↵Robert Gemmell2010-04-201-6/+5
| | | | | | possible to create autoDelete queues with the JMX interface, and owner should not be expected to be null based on autodelete status. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935927 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2496Rajith Muditha Attapattu2010-04-151-51/+69
| | | | | | | | | | The changes include support the new addressing structure and most items on the list specified in the JIRA. The following is not included in the commit 1. Add subject as filter in JMS - for exchanges use it as binding key and for queues use it as a selector - this needs to be thought through. Besides JMS already provides a way to handle this. 2. Implementation of DELETE option. Further testing needs to be done to figure out the impact. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@934563 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2484 : Commit from Andrew Kennedy to work around the inability to ↵Martin Ritchie2010-04-123-15/+17
| | | | | | | | toString sent messages, the test now use getJMSMessageID() rather than toString(). Merged from 0.5.x-dev rev 931508 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933289 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2438 : Implemented option 1. Fixed the divide to correct our message size.Martin Ritchie2010-04-121-2/+2
| | | | | | Merged from 0.5.x-dev rev 920765 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933288 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2425 : Augmented JUnit-Toolkit to emit latency information already ↵Martin Ritchie2010-04-121-0/+10
| | | | | | | | gathed by the PingAsyncTestPerf for each batch. Merged from 0.5.x-dev r 917464 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933283 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2346 : Addressed the problems with ↵Martin Ritchie2010-04-123-52/+182
| | | | | | | | AcknowledgeAfterFailoverOnMessageTest, The issues were the same as AckAfterFailoverTest. So used same prepBroker approach. Test also need timeout increased as broke restarts took to long for a message to be sent/received. Finally the last change was thatthe queue needed to be re-declared so that the final queue depth check would have a queue to query. Merged from 0.5.x-dev @ r907004 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933281 13f79535-47bb-0310-9956-ffa450edef68
* Modified the test to make the results more predictable.Rajith Muditha Attapattu2010-04-091-19/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932634 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2493Rajith Muditha Attapattu2010-04-091-0/+112
| | | | | | | Added test cases as well. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932467 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2418: revert changes to testResubscribeWithChangedSelector()Robert Gemmell2010-04-011-11/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929979 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2360, QPID-2361: Restore the virtualhosts.xml file. When a ↵Robert Gemmell2010-03-306-142/+193
| | | | | | | | | virtualhosts.xml file is specified load it as its own Configuration object to ensure the property heirarchy is not lost. Enforce that virtualhost config can only be specified in either the main config.xml file or the virtualhosts.xml file, but not both. Allow the virtualhosts.xml file to be a combined configuration and use to provide override abilities for testing. Applied patch from Andrew Kennedy <andrew.international@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929136 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2417 , QPID-2418 , QPID-2449 : expand topic testing, specifically ↵Robert Gemmell2010-03-302-2/+390
| | | | | | around the change and unsubscription of durable subscriptions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929095 13f79535-47bb-0310-9956-ffa450edef68
* Added test case for QPID-2242 using a custom exchange to verify the fix.Rajith Muditha Attapattu2010-03-231-0/+43
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@926829 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2447Rajith Muditha Attapattu2010-03-221-0/+43
| | | | | | | | | | | | Added QpidClientX509KeyManager (a customer KeyManager) which will return the ssl_client_alias specified in the Connection URL. Note the alias here is actually the certificate name and not the alias used in the keytool. I also fixed a minor bug in SSLUtil to retrive the identitiy of the local certificate instead of the peer's certificate. Added a test for the above JIRA. Added AMQTestConnection_0_10 which allows the SecurityLayer to be exposed for testing purposes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@926380 13f79535-47bb-0310-9956-ffa450edef68
* Modified SSLTest to temporarily set all ssl jvm args to invalid values, to ↵Rajith Muditha Attapattu2010-03-191-8/+16
| | | | | | test all connection level ssl params. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@925473 13f79535-47bb-0310-9956-ffa450edef68
* Added test cases for QPID-2444 and QPID-2446Rajith Muditha Attapattu2010-03-191-0/+110
| | | | | | | Modified SSLUtil to handle the case where distinguished name only contains the CN component. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@925469 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2397: add Binding.msgMatched() support to the TopicExchange, and remove ↵Robert Gemmell2010-03-181-0/+1
| | | | | | its internal usage of the TopicBinding class git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@924881 13f79535-47bb-0310-9956-ffa450edef68
* Fixed test cases to include the queue name in the expected error stringRajith Muditha Attapattu2010-03-081-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@920466 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2432Rajith Muditha Attapattu2010-03-051-2/+26
| | | | | | | | | | | Modified the XAResourceImpl to maintain the timeout value and set it to any XID in the start method if the time value > 0 Also the XID nulled after commit, rollback and forget, to prevent a timeout being set on an invalid xid. The setTimeout method will only set the timeout if xid is not null and if the timeout value is different from the previous value. Modified the test cases in FaulTest to adhere to the correct behaviour and also added a new test case to cover the issue mentioned in the JIRA. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@919666 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2379: add BytesTxnDequeues and MsgTxnDequeues on Queue delegateRobert Gemmell2010-03-041-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918942 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2417: add a test that restarts the broker at the end to validate the ↵Robert Gemmell2010-02-251-4/+27
| | | | | | store if it is persistent git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916359 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2417: add ability to run DurableSubscriberTest on the java-derby ↵Robert Gemmell2010-02-252-2/+9
| | | | | | profile once QPID-2422 is fixed git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916358 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2417: unsubscribe the durable subscriptions when done to delete the queuesRobert Gemmell2010-02-251-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916356 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2417: add TTL testing of durable topic subscriptionRobert Gemmell2010-02-241-0/+155
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@915867 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2417: update the auto-ack tests to leave an unacked message on the ↵Robert Gemmell2010-02-241-23/+80
| | | | | | durable subscriptions queue between disconnect and reconnect, create consumer1 on the correct connection in SessionPerConnection tests, add single connection NO_ACK test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@915866 13f79535-47bb-0310-9956-ffa450edef68
* I have added the license header to the files included in this commit.Rajith Muditha Attapattu2010-02-123-0/+63
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@909641 13f79535-47bb-0310-9956-ffa450edef68
* exclusivity is associated with the Session and not the consumer. Hence ↵Rajith Muditha Attapattu2010-02-091-0/+1
| | | | | | session2 needs to be closed to release the lock on the queue git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@907851 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2059 : Updated test to try and wait for the subscriber message to ↵Martin Ritchie2010-02-0519-97/+207
| | | | | | | | | | | | | | | | appear in the log file. QPID-2059 : One of the main causes of SubscriptionLoggingTest failing was that the aynchronous broker call preceding the log scraping would not always have time to complete the logging to file. So I have added a waitAndFindMessages method that will attempt to retreive the required string for a set period of time. If it is found then it will perform the findMessages as before. I have updated the LoggingTests to use this method first. This will ensure that we have a more sophoiticated wait that just adding Thread.sleep()s to the tests. QPID-2059 : Being even more explicit in some of the Logging tests as the previous update caused a sinle ExchangeLoggingTest failure. Updated tests where I can to explicitly wait for a message ID they are testing for. Then used a findMatches with the more general match. i.e. wait for QUE-1001 but find all QUE- messages. merged changes from 0.5.x r 906559,906459,905600 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906898 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2346 : AcknowledgeAfterFailoverTest was putting more messages on the ↵Martin Ritchie2010-02-052-30/+47
| | | | | | | | | | | external broker than the testing AcknowledgeTest code was expecting. Additionally when run in the java-derby(persistent) case the unacknowledge messages were recovered when the broker was restarted. To address this the store of each broker is deleted when the it is stopped. To ensure that the persistent tests do not impact each other enabled the broker.clean.between.tests on the java-derby profile Merged change over from 0.5.x r901461 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906895 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1535 : Update to FailoverMethodTest to address testNoFailover failures. ↵Martin Ritchie2010-02-051-4/+24
| | | | | | | | | Unable to locally reproduce failure so commiting to allow CI boxes to hammer result. As the broker shutdown can sometimes take a full 1s ensuring that we are notified in less time that 500ms is not going to work. Increased delay to 2s to ensure that we can confirm that we waited for less than that time when the connection is closed. This change was committed to 0.5.x branch a r905559 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906872 13f79535-47bb-0310-9956-ffa450edef68
* Removed the ClientProperties.java I added to a wrong package nameRajith Muditha Attapattu2010-02-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906156 13f79535-47bb-0310-9956-ffa450edef68
* This contains a test for QPID-1831 and import modifications as a result of ↵Rajith Muditha Attapattu2010-02-034-3/+354
| | | | | | the commit in rev 906135 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906144 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2379 : Initial work on adding QMF and federation to the Java BrokerRobert Godfrey2010-01-314-40/+486
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904934 13f79535-47bb-0310-9956-ffa450edef68
* This commit contains the changes agreed upon in QPID-2363 except for the ↵Rajith Muditha Attapattu2010-01-281-65/+55
| | | | | | connection parameter which will be added shortly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903924 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2363Rajith Muditha Attapattu2010-01-271-0/+138
| | | | | | | | I am comitting the patch as it is. I will make the agreed changes in a subsequent commit shortly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903911 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2347 broke some java tests; I believe these make incorrect assumptions ↵Gordon Sim2010-01-222-6/+4
| | | | | | about durable subscriptions and have changed them accordingly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@902231 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2262 : Removed SALCT from from exclude list and added required null check.Martin Ritchie2010-01-191-11/+35
| | | | | | | Updated references to QPID-1204 to QPID-2345 which talks more to the issue of setting exception cause when the connection is closed by the broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900943 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1825 : Updated test to only start the 'clock' for timeout when the ↵Martin Ritchie2010-01-191-3/+14
| | | | | | message count on the queue hasn't changed after a 100ms sleep. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900919 13f79535-47bb-0310-9956-ffa450edef68
* This is a first step towards QPID-2343Rajith Muditha Attapattu2010-01-184-4/+4
| | | | | | | | The common module also contains code for the client, and therefore contains configuration required for the client to be accessible from within the common module. Therefore the ClientProperties.java is best be placed inside the common module. The goal is to have a place holder for all configuration properties. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900595 13f79535-47bb-0310-9956-ffa450edef68