summaryrefslogtreecommitdiff
path: root/qpid/java/systests/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-1823: Allow recycling of channel IDsAidan Skinner2009-04-212-0/+82
| | | | | | | | | | | | AMQConnection.getNextChannelID: add method to abstract channel id assignment, allow max to be set AMQConnectionDelegate*: add getMaxChannelID AMQConnectionDelegate_0_10: use getNextChannelID for this session-id SessionCreateTest: add test that attempts to create 65555 sessions on one connection AMQConnectionTest: add unit test for getNextChannelID SessionCreateTest takes a long, long time to run so is excluded by default git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@767201 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1813 : Provide test that uses the DerbyMessageStore to check NoLocal ↵Martin Ritchie2009-04-174-47/+309
| | | | | | | | | | | | | | | | | | | | | | functionality after a broker restart. merged from trunk r765604 QPID-1817 : Update QTC to provide the configuration file to an external broker merged from trunk r765605 QPID-1813/QPID-1817 : Removed the new properties from the test-provider as this will affect all tests. The NoLocalAfterRecoveryTest now updates a ConnectionURL based on the JNDI data and uses that to start a connection. NLART also provides a default location for the derbyDB store as the DMS class does not correctly attempt to put the store in QPID_WORK. This will be re-addressed when ServerConfiguration is again available from a VHC object. ConnectionTest was updated to remove the literal values for the BrokerDetail options. merged from trunk r765608 QPID-1813 : Add missing DerbyDB library dependency. merged from trunk r765628 QPID-1818 : Exclude NoLocalAfterRecoveryTest as 0-10 client code path does not restore a transacted session after failover. merged from trunk r765656 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@766021 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1817 : Update to QpidTestCase to use setUp to start the broker this ↵Martin Ritchie2009-04-176-46/+63
| | | | | | | | | | | | | allows tests to update the _configFile that is being used before the broker is started. By default the etc/config-systests.xml is used. This differs from the stock config.xml only in that it disables the Managment JMX interface by default. If a test requires this functionality it can provided an edited configuration. An example of how that might be done can be seen in SyncWaitDelayTest and will additionally be provided for QPID-1813. A couple of tests were modified to remove their setUp/tearDown where the code did no additional work. This made the tests cleaner. Additionally FrameworkBaseCase never actually called super.setUp() so that was fixed. merged to trunk from r765602 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@766014 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1779 : Update to ensure CACFTest reports failures correctly and ↵Martin Ritchie2009-04-171-11/+22
| | | | | | | | | resolved the issue that it was not showing. merged from trunk r764790 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@766005 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1807 : Copied the broker from trunk and update SlowMessageStore to use ↵Martin Ritchie2009-04-171-66/+66
| | | | | | | | | | | | MessageStores rather than TransactionLogs. Merge from trunk inlucding recent fixes This mirrors the change done in r764850 in bring the broker from 0.5-fix to trunk git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@765984 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1807 : Remove old broker and FlowToDisk related testsMartin Ritchie2009-04-176-630/+0
| | | | | | | merged from trunk r764838 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@765982 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1204 : Augmented test to cope with case were Session was closed before ↵Martin Ritchie2009-04-111-2/+10
| | | | | | | | | | we could extract the AuthenticationException merged from trunk r764141 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@764146 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1779 : Application of patches attached to JIRA. Should address ↵Martin Ritchie2009-04-111-0/+110
| | | | | | | | | | | connection close issues experienced on 0-8/9 branch Excluded test from TCP runs as it is hardwired to InVM. merged from trunk r764109 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@764129 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1806 : Ensure Flow to disk location is deleted when the queue is closedMartin Ritchie2009-04-111-0/+78
| | | | | | | | | Note: As our queues do not stop processing on the close() call it is possible that the backing store may not beable to be deleted. In this case all that will occur is that it will log the failure to disk so an operations team can manually clean it up. When we improve the Queueing model for AMQP 1-0 we can address this behaviour. merged fro trunk r764095 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@764128 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1805 : Updated BackingStore to error if we cannot create the backing ↵Martin Ritchie2009-04-111-0/+143
| | | | | | | | | | store. Also updated so that we store the queues evenly over 256 bins, thus giving us the ability to have around 8.1 million actives queues. The Hash function was borrowed from Apache Harmony. Added manual testing to ensure we are not limited by Linux's max file/dir per Inode of 31998. Made the test manual as creating 32000 queues does take a little while. merged from trunk r764083 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@764124 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1803 : Test that selectors work when a QueueDepth is setMartin Ritchie2009-04-112-29/+132
| | | | | | | merged from trunk r764081 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@764122 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1804 : Provide testing for Flow to Disk when using ack modes Client, ↵Martin Ritchie2009-04-112-3/+60
| | | | | | | | | Transacted and No-Ack merged from trunk r764080 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@764120 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1791 : Replaced the get call before the dequeueAndDelete with a ↵Martin Ritchie2009-04-111-0/+160
| | | | | | | | | | | remove. So the remove call after the delete is now nolonger requried. Added manual test to assist identifing the problem merged from trunk r764079 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@764119 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1764 : Add a BaseTransactionLog that takes care of handling persistent ↵Martin Ritchie2009-04-031-20/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | message references so that the underlying TransactionLog need not worry about that. Updated MemoryMS to use this even to ensure that the code is exercised. To ensure that the new BaseTransactionLog was correctly used when used by a TransactionLog. The configure() method now returns an Object(TransactionLog) that is the newly configured TL. Existing tests and code where the original TL reference was used have been changed to use the output of the configure() call. NOTE: the return type should be changed to TransactionLog but until we have completely split the TransactionLog and RoutingTable implementations then this is not possible. The implementation also includes a number of items from the Flow To Disk review: - The old get* Methods have been removed from the TransactionLog interface. - Rollback should now rollback enqueues. (No test provided) - StoreContext now has enqueue/dequeue methods that track the messageId/Queue pairing - The linked list per message has been reduced to a link list per message that is enqueued on multiple queues. Messages that exist on only one queue have no additional overhead. - Optimisation also included to: Include message delete in 'dequeue transaction' where the message was only ever enqueued on a single queue. All other message deletes are peformed as part of an asynchrounous commit. The asynchrounous commit is setup via the StoreContext, which has had some work done to move it towards becomming a Qpid Transaction Object where all operations are performed against rather than going via the TransactionLog. Merged from r760951 on trunk git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@761673 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1778 : Increased delay as tcp testing takes longer than inVm. Now ↵Martin Ritchie2009-04-031-1/+2
| | | | | | | | | checks failover doesn't occur and we know about it in less time than the connectiondelay which would be waited for if we attempted failover. Merge of r761668 from trunk git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@761669 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1778 : Add NoFailover FailoverMethod that blocks that still allows ↵Martin Ritchie2009-04-021-2/+74
| | | | | | | | | | connection retry but only on the initial connection... Merged from trunk r759097 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@761253 13f79535-47bb-0310-9956-ffa450edef68
* SyncWaitDelay*Test is failing spuradically with a management port clash. ↵Martin Ritchie2009-03-121-0/+2
| | | | | | Simplest solution here is to disable the management interface for these tests. The more complex change to ensure the MC is shut down correctly and port freed during test startup will not be a problem for production. It only occurs here as we start a broker then stop and start a new one immediately. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@752810 13f79535-47bb-0310-9956-ffa450edef68
* QPID-949 : Extend the basic QueueBrowser_Test to run on a queue that has ↵Martin Ritchie2009-03-061-0/+69
| | | | | | been flowed to disk git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750869 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1639 : Added test to ensure that properties passed on QueueDeclare are ↵Martin Ritchie2009-03-061-0/+179
| | | | | | applied to queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750867 13f79535-47bb-0310-9956-ffa450edef68
* This is related QPID-1640Rajith Muditha Attapattu2009-03-042-29/+80
| | | | | | | This includes a the failover test run in a loop. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750203 13f79535-47bb-0310-9956-ffa450edef68
* don't run tests when broker doesn't startRafael H. Schloming2009-02-261-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@748178 13f79535-47bb-0310-9956-ffa450edef68
* Made the various receive variants check that the server queue is empty ↵Rafael H. Schloming2009-02-252-6/+8
| | | | | | before returning null. Also modified AMQQueueBrowser to use receiveNoWait() when browsing queues using 0-10. These changes uncovered numerous second order bugs, mostly in failover. These are also fixed. This fixes QPID-1642 and QPID-1643. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@747963 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1640Rajith Muditha Attapattu2009-02-252-45/+134
| | | | | | | Please read the JIRA for more details. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@747961 13f79535-47bb-0310-9956-ffa450edef68
* qpid-1684: Tests demonstrating the issueArnaud Simon2009-02-251-0/+136
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@747717 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1621,QPID-1632 : Added a setManagementEnabled option to allow the MC to ↵Martin Ritchie2009-02-201-7/+0
| | | | | | be disabled. Updates as a result of merging configuration changes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@746265 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1621: add ServerConfiguration, QueueConfiguration and ↵Aidan Skinner2009-02-195-43/+36
| | | | | | | | SecurityConfiguration classes. Move almost all uses of o.a.commons.configuration.Configuration behind there. @Configured delenda est git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@745799 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1631 : Convert MessageStore to TransactionLog and RoutingTable. Updated ↵Martin Ritchie2009-02-131-29/+32
| | | | | | all references and provided a test to ensure that whilst we are transitioning the configuration we can use the old MessageStore classes that now implement both interfaces without any config updates. Updates to the configuration can come when the store are renamed *TransactionLog git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@744184 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1662 : Converted Thread.sleep in to an awaitNanos()Martin Ritchie2009-02-131-6/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@744141 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1630 : Updated MessageFactory to be responsible for assigning ↵Martin Ritchie2009-02-131-8/+0
| | | | | | | | | | messagIDs. Several tests needed updating as they relied upon specified messageIDs. Added a recovery mode to the MessageFactory where by new messages can have their ids specified but only as long as the new id is larger than the last one. Recovered messages are always persistent. Simplified a interfaces as a result of not requiring the messageID to be passed through. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@744140 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1418: Destroy and recreate consumer once all messages areAidan Skinner2009-01-221-3/+9
| | | | | | | sent so that they have enough time to expire. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@736618 13f79535-47bb-0310-9956-ffa450edef68
* Reorder receives, check that we don't get 3 messages first. Trying to debug ↵Aidan Skinner2009-01-201-11/+12
| | | | | | occasional failures on a slow cruise control machine. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@735994 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1573: Move unit tests that were living in systests into appropriate ↵Aidan Skinner2009-01-1914-2930/+0
| | | | | | module. Fix up a few bugs in other tests that this exposed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@735735 13f79535-47bb-0310-9956-ffa450edef68
* added a timeout to BytesMessageTestRafael H. Schloming2009-01-161-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@735024 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1575: Reduce TTL from 1 second to 100msAidan Skinner2009-01-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@734677 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1573: Change AMQQueueDeferredOrderingTest, ↵Aidan Skinner2009-01-145-173/+72
| | | | | | | | | ReturnUnroutableMandatoryMessageTest, DispatcherTest, PriorityTest and TimeToLiveTest to extend QpidTestCase Add ReturnUnroutableMandatoryMessageTest, PriorityTest and TimeToLiveTest to the 010ExcludeList git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@734379 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1572.Rajith Muditha Attapattu2009-01-131-1/+8
| | | | | | | The SSL test profile runs the java client against the C++ broker using SSL connections git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@734166 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1557: fixed the cpp.cluster test profileRafael H. Schloming2009-01-062-4/+15
| | | | | | | | | | | | | | | | | | | | | | - pulled out the XA excludes into a separate excludes file - made the cluster profile exclude the XA tests - made the build system automatically set all system properties that start with profile - added a profile.clustered property that defaults to false - made the cpp.cluster test profile set the profile.clustered property to true - modified the failover tests to exclude some erroneous asserts if the broker is clustered - modified the java client to not advertize a non-zero timeout git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@731810 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1501 : Remove @Override annotations to allow compilation under JDK 1.5Martin Ritchie2008-12-021-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@722670 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1439 : Revert change but add ability to track what test started the ↵Martin Ritchie2008-11-071-3/+2
| | | | | | broker to aid in problem diagnosis git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@712206 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1439 : Updates to ensure we maintain the log files from each external ↵Martin Ritchie2008-11-071-3/+9
| | | | | | Java broker test run. The C++ log directory could do with a similar setup change. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@712110 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1425 : Upping the timeout to ensure that the failures we are ↵Robert Godfrey2008-11-071-1/+1
| | | | | | occaisionally seeing on this test are not soley due to timing related issues. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@712105 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1384: Changed for storing UTF8 Strings in filesArnaud Simon2008-11-033-4/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@710075 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1339:Rafael H. Schloming2008-10-274-84/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Modified QpidTestCase to start/stop multiple brokers for failover testing. - Modified QpidTestCase to substitute port variables into broker start/stop commands. - Modified test profiles to use the new port variables. - Modified QpidTestCase to permit multiple exclude files. - Modified test profiles to make use of a common exclude list: ExcludeList - Added ConnectionTest.testResumeEmptyReplayBuffer. - Made default exception handling for Connection and Session log the exception. - Added SenderExcetion to specifically signal problems with transmitting connection data. - Modified Session to catch and deal with connection send failures for sessions with positive expiry. - Modified FailoverBaseCase to work for non VM brokers. - Made FailoverTest fail if failover times out. - Modified JMS implementation to make use of the recently added low level session resume. - Unexcluded failover tests from 0-10 test profiles. - Excluded MultipleJCAProviderRegistrationTest due to its testing strategy resulting in spurious failure when running as part of the larger test suite. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@708093 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1394 : Renamed file, that was miss named, to end in Test so that it is ↵Martin Ritchie2008-10-241-1/+1
| | | | | | picked up by the test phase. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@707695 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1394 : Added test to validate that Provider is registered after ↵Martin Ritchie2008-10-241-0/+101
| | | | | | connection is created and logging to highlight if we are unable to register our client connections. We do not need to unregister our clients as the same providers are used for all new connections. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@707692 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1394 : Registration of JCAProvider is incorrect in client and broker ↵Martin Ritchie2008-10-241-32/+62
| | | | | | SASL configurations git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@707658 13f79535-47bb-0310-9956-ffa450edef68
* This is for QPID-1296Rajith Muditha Attapattu2008-10-231-1/+1
| | | | | | | | | | | | | added a boolean to the connect method to indicate whether an SSL connection should be created. currently there seems to be two issues. 1. The shutdownInput method used in IoReceiver is not supported by the SSLSocket implementation. 2. I haven't able to get client side authentication working. For item 1 we may need to use nio classes to get around the issue. For item 2 I am yet to figure out the correct config options to get client side auth working. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@707453 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1384: updated AMQDestination + added test for 0.10 code pathArnaud Simon2008-10-222-1/+114
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@706894 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1320: Remove unusued variables, check that right number of messages ↵Aidan Skinner2008-10-171-23/+11
| | | | | | have been recieved in the right place as per ritchiem's review comments. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@705659 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1373: Remove message for unack'd map when acking individual messages. ↵Aidan Skinner2008-10-171-0/+16
| | | | | | Add test. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@705658 13f79535-47bb-0310-9956-ffa450edef68