summaryrefslogtreecommitdiff
path: root/java/systests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-2625 : Moved Logging generation to moudule.xml to allow plugins to ↵Martin Ritchie2010-06-141-2/+1
| | | | | | | | | | | | | | | | | | utilise the same functionality. To enable generation for your plugin just add : <target name="precompile" depends="gen_logging"/> to your build.xml Logging is now defined in a X_logmessage.properties file. Where X is used to make the XMessages.java class. Also updated all existing usages to remove the 3 digit prefix that wasn't adding any info. Updated ConfigStore and Transaction Log to use named properties rather than numeric values. If we are going to continue with <3 alpha>-<4 numeric> ids for messages then we'll need to have some registry to prevent clases. Perhaps it is simpler to relax this and require a plugin creator to provide a unique identifier for their messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954432 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2650: Make use of connections with auto-commit transactions disabled ↵Robert Gemmell2010-06-091-2/+2
| | | | | | | | | | | for metadata, content, and queue entries. Additionally, make remaining uses of auto-commit enabled connections more visible and remove the erroneous explicit commits on these. Close completed Statements after use. Add/correct various related debug log statements. Stop adding vhost name to all environment paths, now just the default value. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952930 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2650: make PST check the recovered messages more precisely, and more ↵Robert Gemmell2010-06-081-2/+10
| | | | | | informative about the unexpected message it recieves when it fails git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952694 13f79535-47bb-0310-9956-ffa450edef68
* Adjusted the capacity test case, verify the change made in rev 949083.Rajith Muditha Attapattu2010-06-071-7/+16
| | | | | | | This is related to QPID-2496 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952451 13f79535-47bb-0310-9956-ffa450edef68
* For testOderingWithSyncConsumer I added a timeout for the individual ↵Rajith Muditha Attapattu2010-06-071-3/+12
| | | | | | | | | receive() methods, and another timeout for the while loop to prevent the test from hanging in case of an error. For testOderingWithAsyncConsumer I increased the timeout to 8 secs as there have been occasional failures with the test not being completed inside 5 secs. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952430 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2599: restore log4j settings files which are not named log4j.xml or ↵Robert Gemmell2010-06-041-0/+28
| | | | | | log4j.properties and so need not be removed completely since they wont be automatically applied by log4j if found on the classpath like the others will git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951419 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : External broker profile actually needs an InVM broker created to ↵Martin Ritchie2010-06-033-10/+59
| | | | | | | | | | process the configuration. As we don't automatically create the AppRegistry any more we need to explicitly create an InVM broker for these two tests. It may be necessary to move the IBBC creation from AbstractTestLogging to QBTC for external profile runs. However, testing to date has only shown these two tests failing due to missing AR. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951170 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup code. Configuration security.access is not used anymoreMartin Ritchie2010-06-035-17/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951167 13f79535-47bb-0310-9956-ffa450edef68
* Add the ASF License to various classes currently missing itRobert Gemmell2010-06-021-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950740 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2639: copy the old QpidTestCase@950614 to the new QpidBrokerTestCase, ↵Robert Gemmell2010-06-021-0/+1345
| | | | | | removing the exclusion features now handled by the new QpidTestCase git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950730 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2639: add ASF licence and correct Logger class to updated QpidTestCase, ↵Robert Gemmell2010-06-022-1346/+21
| | | | | | delete QpidBrokerTestCase such that the old QpidTestCase as at r950614 can be copied into its place with updates to retain history. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950727 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : A couple of tests in Systests are actually InVM only tests but ↵Martin Ritchie2010-06-024-42/+39
| | | | | | | | | | are not marked as so. They only work InVM but require a client. These should be either updated to be broker tests and not need the client or updated to not relay on the InVM transport. Also updated the code in old_test to be in line with these changes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950640 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2639Rajith Muditha Attapattu2010-06-0284-169/+179
| | | | | | | Changed all existing test cases that extened QpidTestCase to QpidBrokerTestCase. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950617 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2639Rajith Muditha Attapattu2010-06-022-1322/+1348
| | | | | | | | Renamed the old QpidTestCase to QpidBrokerTestCase Created a new class QpidTestCase and moved the test exclusion logic to this class. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950615 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2569: Implement the SimpleXML as an OSGi pluginRobert Gemmell2010-05-311-7/+2
| | | | | | | Applied patch from Andrew Kennedy <andrew.international@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@949784 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2606: Access Control ModificationsRobert Gemmell2010-05-3126-571/+1952
| | | | | | | Applied patch from Andrew Kennedy <andrew.international@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@949781 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2581: Update configuration manager to allow multiple plugins to handle ↵Robert Gemmell2010-05-314-15/+15
| | | | | | | | | the same configuration Applied patch from Andrew Kennedy <andrew.international@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@949779 13f79535-47bb-0310-9956-ffa450edef68
* Make PersistentStoreTest.testForcibleStartStopMidTransaction() do a ↵Robert Gemmell2010-05-311-2/+4
| | | | | | syncchronous op before killing the broker to ensure all the additional messages reach the broker before it is killed. Update message numbering to be based from 1 to aid log clarity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@949735 13f79535-47bb-0310-9956-ffa450edef68
* Reduce the large number of persistent messages sent by DupsOkTest from 4999 ↵Robert Gemmell2010-05-251-2/+1
| | | | | | to 100 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@948038 13f79535-47bb-0310-9956-ffa450edef68
* Improved the asserts so we can see from the message what the failure ↵Martin Ritchie2010-05-202-17/+10
| | | | | | condition was git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@946670 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2622 : Add Closeable interface and update Broker components to use it ↵Martin Ritchie2010-05-201-1/+2
| | | | | | and add close method in ApplicationRegistry to safely perform the close. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@946667 13f79535-47bb-0310-9956-ffa450edef68
* Implemented the feature described in QPID-2515Rajith Muditha Attapattu2010-05-181-6/+63
| | | | | | | However a few issues needs to be ironed out - see the JIRA for these issues. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945945 13f79535-47bb-0310-9956-ffa450edef68
* Modified the test slightly to make it work against the 0-10 code path.Rajith Muditha Attapattu2010-05-181-1/+10
| | | | | | | Verified that it works against the C++ broker and the Java broker (both 0-8 and 0-10 codepaths). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945789 13f79535-47bb-0310-9956-ffa450edef68
* This test is failed due to the checkin made in rev 942293 as a fix for ↵Rajith Muditha Attapattu2010-05-181-2/+1
| | | | | | | | | | | | QPID-2559. Since (from rev 942293) credit is not sent if the dispatcher is null, for consumerB, credit is not sent until it invokes receive(). However it only tries to receive after consumerA has received 2 messages. Since AUTO-ACK is used, completions are sent immediately which results in A receiving credit, hence receiving the next 2 messages as well. I changed the test to create consumer A & B using the same session. This ensures that both consumers gets a chance to request credit before they consume any messages. This modification does not alter the intent of the original test case. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945444 13f79535-47bb-0310-9956-ffa450edef68
* 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-2530 : Updated build system to have a new findSubProjects macro in ↵Martin Ritchie2010-04-261-2/+1
| | | | | | | | | | build.xml that will correctly locate and add all subprojects (those with a build.xml file) to the modules.plugin variable. This will correctly allow new plugins to be automatically picked up without any further build system changes. To further simplify the build process and make better use of the module.depends option the build.deps file has been updated to contain only the libraries the module actually depends on. The dependant libraries due to a module.depends are now automatically pulled in by the build system. A further enhancement would be to do transitive dependencies, which would also allow dependencies to be built when in a sub module directory. e.g. client depends on common, but client.libs should not contain mina, common contains mina and so those libraries are pulled in via the fact that client's module.depends contains common. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@938059 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-3026-390/+637
| | | | | | | | | 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