summaryrefslogtreecommitdiff
path: root/java/systests/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-2184: make sure global security plugins are reconfigured properlyAidan Skinner2009-11-112-0/+188
| | | | | | | | | | | ServerConfigurationTest: add test for reloading firewall config in main section, not just as a combined file FirewallConfigTest: add a systest for firewalls with real broker QpidTestCase: add a reloadBroker() method git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@835115 13f79535-47bb-0310-9956-ffa450edef68
* This adds some minor enhancements to our test framework.Rajith Muditha Attapattu2009-11-031-13/+44
| | | | | | | | | | | | | | | | | | | | | | It introduces two jvm args "broker.log.interleave" and "broker.log.prefix". broker.log.interleave if set to false, will print the broker output into a separate file. The file name will be in the following format and placed alongside the test output. "%s/TEST-%s.broker.out" Ex. TEST-org.apache.qpid.test.client.failover.FailoverTest.testP2PFailover.out TEST-org.apache.qpid.test.client.failover.FailoverTest.testP2PFailover.broker.out "broker.log.interleave" is set to true in module.xml to default to the current behaviour. "broker.log.prefix" which is set to "BROKER: " in the module.xml will prefix each broker output line. This would help to follow the log files more easily as it would help to distinguish between broker and client output. It would also be handy for grep. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@832452 13f79535-47bb-0310-9956-ffa450edef68
* Change ProducerFlowControlTest to merely check it gets at least 1 client log ↵Robert Godfrey2009-10-261-1/+1
| | | | | | message git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@829853 13f79535-47bb-0310-9956-ffa450edef68
* Merged from java-broker-0-10 branchRobert Godfrey2009-10-2511-110/+196
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@829675 13f79535-47bb-0310-9956-ffa450edef68
* Updated PersitentStoreTest so that it has its own sendMessages that does not ↵Martin Ritchie2009-10-222-21/+101
| | | | | | commit before returning, updated JavaDoc on QTC and PST to describe the contract of sendMessages git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@828770 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1872: remove systest and reinstate equivalent unit testRobert Gemmell2009-10-211-48/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@827968 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1304: update ACL test + configuration file to use a static ACL ↵Robert Gemmell2009-10-211-6/+10
| | | | | | configuration (with a secondary virtualhost) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@827967 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-151-0/+44
| | | | | | 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-154-21/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825362 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1204: add temporary workaround for connection close race condition at ↵Robert Gemmell2009-10-131-0/+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-131-5/+18
| | | | | | | | 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
* 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-091-17/+93
| | | | | | 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-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 : Problem is that the thrown exception whilst an IOException does ↵Martin Ritchie2009-10-083-3/+334
| | | | | | 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-071-4/+81
| | | | | | 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-053-5/+38
| | | | | | | | | 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-051-0/+403
| | | | 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-054-18/+414
| | | | | | 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-051-21/+89
| | | | 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-056-201/+190
| | | | | | | | | | | | | | | | | | 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
* QPID-942 : Add Simplistic Producer Flow Control to the java Broker / java ↵Robert Godfrey2009-10-011-0/+324
| | | | | | 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
* QPID-2118 : Corrected 010Exclude for runtime selector exception. Tidied up ↵Martin Ritchie2009-09-301-97/+27
| | | | | | 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
* QPID-2120 : Updated SimpleAMQQueue to ensure that the sub.isSuspended() ↵Martin Ritchie2009-09-301-0/+6
| | | | | | | | check is done before any attempt to retrieve the getLastSeenNode(). This and the commits for QPID-1871,QPID-2116 are tested by RollbackOrderTest that now can be enabled for the Java profile. Additional changes were done to SAMQQ to improve readability and add some debug loggging. Performance testing should be done to identify any penality for this additional logging. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820320 13f79535-47bb-0310-9956-ffa450edef68
* Update QTC to allow the setting of debug logging for the external broker ↵Martin Ritchie2009-09-302-0/+28
| | | | | | process. Update BrokerStartupTest to ensure that these values are set to the default info as the test looks for the existence of DEBUG messages as a sign of failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820315 13f79535-47bb-0310-9956-ffa450edef68
* Add INDEX property to created messagesMartin Ritchie2009-09-281-2/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819593 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1871 : Updated RollbackOrderTest to include an onMessage test. Fixed ↵Martin Ritchie2009-09-281-31/+133
| | | | | | | | deadlock issue with 0-10 rollback method and onMessage usage. Moved 0-10 rollback strategy to the abstract AMQSession and updated 0-8 to use that approach. 0-8 Still excluded from test runs as the race condition is not that the dispatcher would hold a message and reject after the TxRollback. The problem is the Java Broker sends a message out after the FlowOk message so the Dispatcher then sits on it, see QPID-2116. This exact problem was hidden due to the way the Dispatcher is stopped. This problem has not been addressed. The request to stop the dispatcher can only actually stop the dispatcher whilst it is in the middle of processing a message. The stop needs to interrupt the _queue.take() and hold the dispatcher AFTER the processing of any message that it needs to do: see QPID-2117. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819590 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2115: add 'broker.clean.between.tests' to toggle whether QTC should ↵Robert Gemmell2009-09-251-0/+15
| | | | | | execute the 'broker.clean' command after every test method is run git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@818840 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2114 Rajith Muditha Attapattu2009-09-221-1/+3
| | | | | | | I have also added a simple check for the default message priority in an existing test in JMSPropertiesTest git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817478 13f79535-47bb-0310-9956-ffa450edef68
* FailoverBaseCase has not been using the testprofile defined test.port.alt ↵Martin Ritchie2009-09-211-1/+1
| | | | | | for the failover server. As a result the connection has been failing. Updated to use correct system property and added text to both default.testprofile and test-provider.properties to ensure that the changes are made in both locations, Ideally JNDI connection would use the same system property that is used by QTC for starting the broker. However I don't believe that it is currently doing that. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817295 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2111 SelectorTest Unify selector tests into one class. AddAidan Skinner2009-09-182-314/+322
| | | | | | | testRuntimeSelectorError git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@816579 13f79535-47bb-0310-9956-ffa450edef68
* Update to QpidTestCase to only check for broker.stopped lines until we have ↵Martin Ritchie2009-09-171-1/+1
| | | | | | found the ready line. Added broker.stopped line to cpp.testprofile 'Exception constructed' this identifies port conflict issues. Local testing has shown that this works as expected. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@816150 13f79535-47bb-0310-9956-ffa450edef68
* Reveted changes to QPID-2099, QPID-2100. The value of PNAME must not be changed.Martin Ritchie2009-09-151-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@815206 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2099 : Updated QTC now that QPID_PNAME will wrap its value QTC doesn't ↵Martin Ritchie2009-09-141-1/+1
| | | | | | need to do it aswell. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@814670 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Update ManagementLoggingTest to cope with relative paths.Martin Ritchie2009-09-111-1/+1
| | | | | | Just check for the file name rather than the path. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813856 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2093: Updated AMQBRokerManagerMBean to check if the queue is durable ↵Martin Ritchie2009-09-113-344/+690
| | | | | | | | | | | before performing store.deleteQueue(). Created ModelTest to validate the change, (testDeletionDurableViaJMX). To facility the testing, extracted JMX Operations from ManagementActorLoggingTest to a new JMXTestUtils and updated both ModelTest and MALT to use this interface. Updated 010(cpp) and 08(Java-InVM) excludes as the CPP does not have JMX and the InVM JMX is unreliable (see QPID-2097) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813801 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2094 : Check if _output is null, if so write test configuration to ↵Martin Ritchie2009-09-111-1/+2
| | | | | | java.io.tmpdir. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813798 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2095 : Update QTC to set the management.jmxport configuration property ↵Martin Ritchie2009-09-111-0/+2
| | | | | | on InVM test cases git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813797 13f79535-47bb-0310-9956-ffa450edef68