summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
...
* QPID-2042: remove use of FileUtils.copyCheckedEx for security reasons, ↵Robert Gemmell2009-10-201-20/+24
| | | | | | generate new file in same filesystem as existing file to avoid copying between filesystems git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@827589 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2041: update test to ensure all test files created are cleared upRobert Gemmell2009-10-201-10/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@827588 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2041: remove use of FileUtils.copyCheckedEx for security reasons, ↵Robert Gemmell2009-10-201-20/+25
| | | | | | generate new file in same filesystem as existing file to avoid copying between filesystems git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@827587 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2040: update test to ensure all test files created are cleared upRobert Gemmell2009-10-201-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@827586 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2040: remove use of FileUtils.copyCheckedEx for security reasons, ↵Robert Gemmell2009-10-201-21/+25
| | | | | | generate new file in same filesystem as existing file to avoid copying between filesystems git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@827584 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1301 Fixes for issues with temporary queue permissions, including ↵Marnie McCormack2009-10-203-223/+298
| | | | | | promotion of temporary element out from individual queue elements. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@827041 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1859 - Converted System.out.println to _logger.info.Martin Ritchie2009-10-191-5/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@826646 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2085 : Revert the addition of APPEND. We should use a rolling file ↵Martin Ritchie2009-10-192-6/+1
| | | | | | appender instead. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@826640 13f79535-47bb-0310-9956-ffa450edef68
* Remove Java 1.6 @Overrides on interface implmentationsMartin Ritchie2009-10-192-17/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@826639 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : When client fails over due to an error, that error is still held ↵Martin Ritchie2009-10-192-0/+22
| | | | | | bt the StateManager and will prvent the connection from working. During failover check and see if the Connection had been marked closed if so remove any set exception. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@826638 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1304: add vhost access check for missed corner cases, allowing for ↵Robert Gemmell2009-10-161-1/+10
| | | | | | users granted vhost access and otherwise abstaining. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825805 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2148 Override tearDown to ignore JMSExceptionMarnie McCormack2009-10-151-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825510 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1304: implement the ACCESS section of SimpleXML ACL. Enables ↵Robert Gemmell2009-10-154-12/+152
| | | | | | virtualhost level access control, giving the defined users full access to all artifacts in the vhost git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825453 13f79535-47bb-0310-9956-ffa450edef68
* Merge java-network-refactor branchAidan Skinner2009-10-1560-2587/+2578
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825362 13f79535-47bb-0310-9956-ffa450edef68
* add property to enable overriding QPID_WORK during test runsRobert Gemmell2009-10-142-3/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825115 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1204: add temporary workaround for connection close race condition at ↵Robert Gemmell2009-10-134-7/+174
| | | | | | tearDown() noted in QPID-2081 to allow enabling SimpleACLTest for java brokers. Update exclude lists accordingly, also removing a single-method exclude from the 010Excludes file made redundant by the complete SimpleACLTest exclusion when using cpp brokers git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824706 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1950 : Simplified the connection by using the default URL and ↵Martin Ritchie2009-10-132-7/+28
| | | | | | | | configuring retry rather than using the default failover URL that has multiple brokers defined. Whilst this may not stop the test failing it will make the log files simpler. Updated FailoverHandler to ensure that any pending write is sync'd if possible. Also updated Test to perform a synchronous operation after the ack to ensure it arrives at the broker, QPID-2138 highlights that it doesn't get there due to what appears to be Mina propagating the exception ahead of the data. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824704 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : Ensured the lastCount value is always correctly set to ↵Martin Ritchie2009-10-133-15/+26
| | | | | | NUM_MESSAGES, calling getCount() after the connection has started may result in getting a value lower than NUM_MESSAGES and then cause the test to end early. Fixed spelling errors git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824703 13f79535-47bb-0310-9956-ffa450edef68
* Fix compiler compliance levels, not allowed @Override on interfaces in 1.5Aidan Skinner2009-10-1111-22/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824129 13f79535-47bb-0310-9956-ffa450edef68
* Refactor a little, extract large inline case statements to individual methods.Aidan Skinner2009-10-111-492/+516
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824128 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2016: apply missed version number increment for the new methodRobert Gemmell2009-10-094-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@823605 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1950 : Updated to ensure test uses a unique queue and updated count ↵Martin Ritchie2009-10-091-2/+2
| | | | | | indexing so each message is uniquely numbered git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@823496 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1872: check for existence of outer consume permissions map before ↵Robert Gemmell2009-10-092-17/+99
| | | | | | proceeding to further checks, and if not present then deny immediately as it signifies a complete lack of consume rights in the ACL settigns for the user in question. Update SimpleACLTest to add a check for consumption with create but without consume right, and to allow each test to customise the ACL settings before QTC.setUp() starts the broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@823464 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1440 : Code review changes from QPID-1289. All actioned except adding ↵Martin Ritchie2009-10-087-24/+53
| | | | | | new createConsumer() method. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@823149 13f79535-47bb-0310-9956-ffa450edef68
* QPID-942 : Updated test to use built in client property setting mechanismRobert Godfrey2009-10-081-11/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@823146 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1950 : Remove exclude from global exclude file. Should just be excluded ↵Martin Ritchie2009-10-082-3/+2
| | | | | | from the 010 run as only 0-8/9 uses Mina. The test is validating that a Mina IOException correctly causes failover, even when the IOException does not represent a socket failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@823089 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1950 : Problem is that the thrown exception whilst an IOException does ↵Martin Ritchie2009-10-088-5/+358
| | | | | | not signify that the socket has closed. So the broker had two open connections to send messages on. Change was to ensure that the previous Socket/IOSession has been closed before failover starts. Also added protected to ChannelOpenHandler to guard against out of order frames causing a NPE. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@823087 13f79535-47bb-0310-9956-ffa450edef68
* QPID-942 : Added tests for broker and client log messages produced when flow ↵Robert Godfrey2009-10-072-7/+88
| | | | | | control invoked git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@822949 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : Fixed wait for messages loop so on error the test does not get stuckMartin Ritchie2009-10-061-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@822170 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : Update to AOMT based tests, Test now continues as long as ↵Martin Ritchie2009-10-054-6/+44
| | | | | | | | | messages are received. If there has been no message received for 5 seconds then it counts the test as failed. Excluded AutoAck failover tests due to QPID-143 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821829 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : Add testing for publication on a dirty session after failover.Martin Ritchie2009-10-052-0/+409
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821828 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : Add testing for ack after failover, and testing for ↵Martin Ritchie2009-10-053-79/+282
| | | | | | acknowledgement in a dirty session after failover. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821826 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : Add Acknowledge tests and QuickAcking manual test helper.Martin Ritchie2009-10-055-19/+426
| | | | | | Updated AcknowldegeAfterFailoverTest to correctly cover the failure cases. Sending messages on a dirty transaction and Receiveing messagges on a dirty session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821824 13f79535-47bb-0310-9956-ffa450edef68
* Fix for dirty sessions, start to test that sessions are dirty when required.Martin Ritchie2009-10-052-21/+90
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821823 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : Updated AcknowledgeTests to cover all ack modes and the ↵Martin Ritchie2009-10-055-88/+601
| | | | | | synchronous receive and asynchronous onMessage approaches. Also added tests that failover between acking. Currently these tests are setup to repoulate the broker between failover. However, in a clustered environment that would not be requried. Investigation is need on how best to setup failover tests in general so that clustered and non-clustered environments can be easily tested. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821822 13f79535-47bb-0310-9956-ffa450edef68
* Updated testing harness: QpidTestCase and FailoverBaseCase.Martin Ritchie2009-10-057-204/+192
| | | | | | | | | | | | | | | | | | Updates to QpidTestCase: to allow the sending of messages that are tagged from an offset value. to correctly commit the sent messages if the sent number does not fit within the batch window. update to createMessage to add an INDEX int property. update to rename ssl connectionfactory default.ssl to align with other factories. updated test-provider accordingly. added a getTestQueue method that creates an AMQQueue using getTestQueueName to further simplify tests. Updates to FailoverBaseCase removed setFailingPort, failBroker now takes the port to fail, this allows both brokers to be failed more easily. Update to ensure that all subclasses get a failover connection url, through the getConnection(), some were not. Fixed by overriding getConnectionFactory() call. Fixed second broker work directory to write to defined QPID_WORK rather than java.io.tmpdir. If QPID_WORK is not set then tests will fall back to java.io.tmpdir getFailingPort now returns the correct value if you are running InVM (2)or externally(test.alt.port) Updated tests that used failBroker to use failBroker(getFailingPort()) so tests will work InVM and externally. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821821 13f79535-47bb-0310-9956-ffa450edef68
* Update to ensure system properties are always reset even if exception ocurrs ↵Martin Ritchie2009-10-051-6/+11
| | | | | | during tearDown git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821820 13f79535-47bb-0310-9956-ffa450edef68
* Update to FBC to ensure second broker is shutdown in the event of an ↵Martin Ritchie2009-10-051-2/+18
| | | | | | exception during super.tearDown. This may have been the cause of CI stuck brokers git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821819 13f79535-47bb-0310-9956-ffa450edef68
* Removed BasicConfigurator.configure() this should not be used in testing as ↵Martin Ritchie2009-10-051-0/+1
| | | | | | it will enabled full DEBUG logging. If the logging needs tweeked for the test the test must remember the previous configuratio and restore it after the test run. Here I can see no reason to enable DEBUG logging. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821818 13f79535-47bb-0310-9956-ffa450edef68
* Updated BlockingWaiter to provided more details when a new exception arrives ↵Martin Ritchie2009-10-051-1/+1
| | | | | | and the old one has not been consumed git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821817 13f79535-47bb-0310-9956-ffa450edef68
* Added close actor to NAR to prevent exception during InVM broker shutdown.Martin Ritchie2009-10-051-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821816 13f79535-47bb-0310-9956-ffa450edef68
* Updated broker log4j.xml to remove the DEBUG logging from o.a.commonsMartin Ritchie2009-10-051-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821815 13f79535-47bb-0310-9956-ffa450edef68
* QPID-942: fix test exclusionRobert Gemmell2009-10-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820932 13f79535-47bb-0310-9956-ffa450edef68
* QPID-942 : Add Simplistic Producer Flow Control to the java Broker / java ↵Robert Godfrey2009-10-0116-29/+695
| | | | | | 0-8/0-9 client git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820739 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2125: Make FailoverBaseCase set the second brokers QPID_WORK as a ↵Robert Gemmell2009-10-012-5/+2
| | | | | | subdirectory of the first instead of /tmp, allowing common cleanBroker() execution via QpidTestCase. Update QueueBrowserAutoAckTest to use the getTestQueueName() helper method instead of creating its own time-based queue names git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820685 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2121 : Noticed that the logging level for the test VM was being set ↵Martin Ritchie2009-10-012-7/+46
| | | | | | directly. This will result in all subsequent tests having WARN logging. Added new setLoggerLevel method to QTC to allow the setting of a Log4j logger level for a given test run. Reverting the changes when the test is complete git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820606 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2121 : Correctly set the broker properties for the test, rather than ↵Martin Ritchie2009-10-011-1/+1
| | | | | | using the currently defined System value. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820573 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2121 : Update to QTC to allow the setting of System Properties for just ↵Martin Ritchie2009-09-303-15/+84
| | | | | | | | | | the Test run or the External Broker or both. renamed _setProperties as it was confusing. Now two maps are used _propertiesSetForTestOnly and _propertiesSetForBroker calls to setSystemProperty puts the value in to both maps so test VM and the external VM will have a system property defined to have that value. If a test is configured to run against an external broker then two new methods help control how each vm is setup. setTestClientSystemProperty is used to set a value in the TestVM that is not copied to any external VM. setBrokerOnlySystemProperty can now be used to set a System property value in the external broker VM only. As before all values are reverted at the end of the test run. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820323 13f79535-47bb-0310-9956-ffa450edef68
* Correct order of log4j entries so our parser doesn't print an errorMartin Ritchie2009-09-303-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820322 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2118 : Corrected 010Exclude for runtime selector exception. Tidied up ↵Martin Ritchie2009-09-303-100/+33
| | | | | | SelectorTest so that it uses more of QTC functionality and stops creating random queue names. The init() methods could be totally removed with a bit more work. Updated test() to be testOnMessage() to better identify what test was supposed to be using onMessage() previously they all were! JMSMessageID test should now pass again on CPP profile. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820321 13f79535-47bb-0310-9956-ffa450edef68