summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-5714: In ha_tests, skip if the target test code is missingJustin Ross2014-04-241-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1589856 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5714: Skip python tests if test code is missingJustin Ross2014-04-222-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1589068 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5714: Revert change that I intended for trunk (it still needs approval)Justin Ross2014-04-212-6/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1588879 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5714: Skip python tests if test code is missingJustin Ross2014-04-212-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1588875 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5666: HA fails with resource-limit-exceeded: Exceeded replicated queue ↵Alan Conway2014-04-182-2/+15
| | | | | | | | | | | | limit This is regression introduced in r1561206: CommitDate: Fri Jan 24 21:54:59 2014 +0000 QPID-5513: HA backup fails if number of replicated queues exceeds number of channels. Fixed by the current commit. PrimaryQueueLimits was not taking account of queues already on the broker prior to promotion. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1588471 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5659: Fixes to compile with C++11 (needed to compile with clang on ↵Andrew Stitcher2014-04-035-10/+7
| | | | | | | | | | | FreeBSD 10) - shared_ptr no longer has a default conversion to bool. - Change in default destructor semantics: by default destructors are now not allowed to throw exceptions. - stringstream no longer has a default conversion to string. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1584361 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5641: [legacystore] Valgrind reports memory leaks on older store testsKim van der Riet2014-03-275-1727/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1582324 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: No store tools exist for examining the journals - Bugfix and ↵Kim van der Riet2014-03-182-25/+57
| | | | | | reorganization of qls python modules. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1578899 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5613: Self test broker start command fails without --interface option.Charles E. Rolke2014-03-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1575443 13f79535-47bb-0310-9956-ffa450edef68
* Revert "NO-JIRA: CMakelists.txt check that ../python exists before building it."Alan Conway2014-03-051-6/+16
| | | | | | | | | | | | | | | | This reverts most of commit r1574138. The changes were intended to simplify handling of setup.py by letting it detect when things were out of date, but even when there are no changes setup.py does touch some files: changing mode of /home/andrew/Work/qpid/bld-ninja/src/tests/python/commands/qpid-python-trunning install_egg_info removing /home/andrew/Work/qpid/bld-ninja/src/tests/python/qpid_python-0.27-py2.7.egg-info writing /home/andrew/Work/qpid/bld-ninja/src/tests/python/qpid_python-0.27-py2.7.egg-info This commit restores the previous logic that avoids running setup.py if not needed but retains the if (EXISTS ${python_src}) check to avoid all this logic if there is no python source directory available. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1574656 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: CMakelists.txt check that ../python exists before building it.Alan Conway2014-03-041-20/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1574138 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix Coverty "Uncaught exception" errors in test clients.Alan Conway2014-02-262-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1572061 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5561: QPID-5565: Broker->ACL module improvementsPavel Moravec2014-02-261-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1572059 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix compile error on RHEL5 in qpid-pingAlan Conway2014-02-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1570775 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5568: HA C++ qpid::messaging AMQP 1.0 client failover logging is not clearAlan Conway2014-02-203-41/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The qpid::messaging AMQP 1.0 protocol logging did not give clear information about reconnection during failover. This patch simplifies the reconnect logic by collapsing all known addresses from broker URL and reconnect URLs into a single URL with no duplicates. It rationalizes the info and notice logging as follows: # Initial connection with multiple addresses, info logs show the # full URL, each attempt to connect and the finally connected address. [Messaging] info Starting connection to amqp:tcp:20.0.10.33:5672,tcp:20.0.10.34:5672,tcp:20.0.10.35:5672 [Messaging] info Connecting to tcp:20.0.10.33:5672 [Messaging] info Failed to connect to tcp:20.0.10.33:5672 [Messaging] info Connecting to tcp:20.0.10.34:5672 [Messaging] info Failed to connect to tcp:20.0.10.34:5672 [Messaging] info Connecting to tcp:20.0.10.35:5672 [Messaging] info Connected to tcp:20.0.10.35:5672 # Re-connection due to a failure. notice logs for the start of reconnection (with full URL) # and eventual sucess (with individual address). info logs for individual connection attempts. [Messaging] notice Auto-reconnecting to amqp:tcp:20.0.10.33:5672,tcp:20.0.10.34:5672,tcp:20.0.10.35:5672 [Messaging] info Connecting to tcp:20.0.10.33:5672 [Messaging] info Failed to connect to tcp:20.0.10.33:5672 .... [Messaging] info Connected to tcp:20.0.10.33:5672 [Messaging] notice Auto-reconnected to amqp:tcp:20.0.10.33:5672 The idea here is that there are no logs by default (info is not on by default) for "normal" behavior, but failover does get a (short) notice log by default. By turning on info logs you can follow the detailed blow-by-blow of failover without getting drowned in the detail of debug logs. Note that final failure to connect is signalled to the application via an exception. There was not previously any log message for that and I didn't add one. Additional changes: updated qpid-ping test client to use the messaging library. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1570231 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix build error in ha_test_max_queues for release builds.Alan Conway2014-02-181-1/+4
| | | | | | argc was only being tested in an assert which was compiled out for release builds. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1569400 13f79535-47bb-0310-9956-ffa450edef68
* Author: Alan Conway <aconway@redhat.com>Alan Conway2014-02-062-2/+2
| | | | | | | --- log message follows this NO-JIRA: Remove use of python built-in 'next', not available before python 2.6. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1565382 13f79535-47bb-0310-9956-ffa450edef68
* NO_JIRA: Added Apache license text to tx-text-soak.sh, updates to ↵Kim van der Riet2014-02-051-0/+20
| | | | | | linearstore ISSUES file git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1564935 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5361: Added a bash script which allows for transactional soak testing.Kim van der Riet2014-02-051-0/+234
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1564893 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5519: ACL property/properties for paged queues - fixed typo, added ↵Pavel Moravec2014-02-031-0/+223
| | | | | | tests and documentation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1563866 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5485: By default use a subdirectory of the data dir called "pq" forAndrew Stitcher2014-01-301-1/+1
| | | | | | | page queue files. If neither data dir nor paging dir are set then error on any attempt to create a paged queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1563012 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5513: HA backup fails if number of replicated queues exceeds number of ↵Alan Conway2014-01-271-1/+1
| | | | | | | | channels. Fix link error (incorrect libraries listed) in ha_test_max_queues on windows. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1561754 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5513: HA backup fails if number of replicated queues exceeds number of ↵Alan Conway2014-01-245-7/+92
| | | | | | | | | | | | | | | | | | | | | | | | | channels. The problem: - create cluster of 2 brokers. - create more than 32768 queues (exceeds number of channels on a connection) - backup exits with critical error but - client creating queues receives no error, primary continues with unreplicated queue. The solution: Primary raises an error to the client if it attempts to create queues in excess of the channel limit. The queue is not created on primary or backup, primary and backup continue as normal. In addition: raised the channel limit from 32k to 64k. There was no reason for the smaller limit. See discussion: http://qpid.2158936.n2.nabble.com/CHANNEL-MAX-and-CHANNEL-HIGH-BIT-question-tp7603121p7603138.html New unit test to reproduce the issue, must create > 64k queues. Other minor improvements: - brokertest framework doesn't override --log options in the arguments. - increased default heartbeat in test framework for tests that have busy brokers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1561206 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Make the python test install depend on the python files.Andrew Stitcher2014-01-241-2/+5
| | | | | | | | - So just after the previous checkin Gordon changed the python code. This made me think that the python install needs to have the dependencies! git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1561130 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Changes to python related build processes:Andrew Stitcher2014-01-231-4/+16
| | | | | | | | | | - Use an intermediate build area in the build area not in the source. -- With this change the source tree is now completely untouched during a build. - Fiddle with CMake so that the python install into the build area doesn't happen on every build. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1560851 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5506: Use a randomness source to certutil that will definitely exist.Andrew Stitcher2014-01-231-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1560692 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5489: Uuid code improvementsAndrew Stitcher2014-01-172-9/+6
| | | | | | | | | | | | | - Don't use uuid_compare() as it will get the wrong version of the function under FreeBSD which has a uuid library build into libc with different function signatures from libuuid but some overlapping names. - Reorganise the uuid code to limit the used external symbols to uuid_generate(), uuid_parse(), uuid_unparse() - Minimise the framing::Uuid code so that it is a simple wrapper around types::Uuid - Use uuid_generate() as the symbol to search in CMake (uuid_compare() isn't used in qpid anymore). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1559017 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5452: Change installation directory for qpid-send/qpid-receiveAndrew Stitcher2014-01-141-9/+13
| | | | | | | | | | qpid-send/qpid/receive are useful utilities in their own right and not just used for testing so install them in an easily accessible location. Patch from Irina Boverman git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1558193 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5428: Heartbeats not in use when attempting to connect with python client.Alan Conway2014-01-091-0/+27
| | | | | | | | | | | | | | | | | | | | | Heartbeats ignored when opening a connection, could hang indefinitely Need to cover 3 cases (test included): - Connect sucessful but then broker stalls. - Connect to a stalled broker that never responds. - Fail-over to a stalled broker that never responds All cases are handled by the following fixes to driver.py: - Check for heartbeats even before engine._connected since we may time out before receiving open-ok if the peer is stalled and never sends data. - Set _last_in and _last_out so that we time heartbeats from the start of the connection if no data is ever sent or received. - Call self.update_status in Driver.timeout to detect connection closed due to heartbeat timeout (rather than a readable or writeable event.) Make update_status a no-op if engine or transport are not yet set up. - Don't consider reconnect complete in connect(), wait till we get the open-ok. See the comment on Driver._check_retry_ok() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1556971 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix brokertest.py so it doesn't try to load two stores.Alan Conway2014-01-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1556344 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Install python code as part of cmake make phaseAlan Conway2014-01-061-9/+5
| | | | | | | | | Previosly the qpid/python code was being installed only during cmake configuration phase and was not updated if the python code changed later. Added a custom target to run setup.py whenever make is run. setup.py is smart enough not to do un-necessary work if the python files have not changed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1555989 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5415: Implement control of internal log output in qpid::messaging APIAndrew Stitcher2014-01-032-0/+155
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1555202 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5435: use the setContentObject() method to set string content (i.e. ↵Gordon Sim2013-12-191-2/+2
| | | | | | assume it is utf8) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1552401 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5430: HA primary broker does not go active if there are no replicated ↵Alan Conway2013-12-181-2/+7
| | | | | | | | | | queues. Primary::opened was not checking if the primary was ready after a knonw backup reconnected, only when a replicated queue became ready. Thus if there were no replicated queues the primary never became ready. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1552025 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add missing apache copyright licence text.Alan Conway2013-12-166-1/+117
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1551304 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5421: HA replication error in stand-alone replicationAlan Conway2013-12-131-26/+27
| | | | | | | | | | | | | | | | | There were replication errors because with stand-alone replication an IdSetter was not set on the original queue until queue replication was set up. Any messages on the queue *before* replication was setup had 0 replication IDs. When one of those messages was dequeued on the source queue, an incorrect message was dequeued on the replica queue. The fix is to add an IdSetter to every queue when replication is enabled. The unit test ha_tests.ReplicationTests.test_standalone_queue_replica has been updated to test for this issue. This commit also has some general tidy-up work around IdSetter and QueueSnapshot. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1550819 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5404: HA broker message duplication when deleting a queue with an ↵Alan Conway2013-12-101-72/+40
| | | | | | | | | | | | | | | alt-exchange The old code ran auto-delete on the backup on disconnect. This reroutes messages onto the alt queue with incorrect replication IDs from the original queue, and then replicates duplicate rerouted messages from the primary. The solution is to process auto deletes on the new primary and let them replicate to the backups. - Move all auto-delete logic into QueueReplicator - Primary process auto-delete on QueueReplicator as part of promotion. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1549844 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove useless commentsAndrew Stitcher2013-12-091-6/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1549638 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5383, QPID-5384: added some test cases for assertionsGordon Sim2013-12-031-2/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1547497 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5278 , QPID-5281: Queue flow limit validation ignores size parameters , ↵Pavel Moravec2013-11-191-26/+17
| | | | | | Creating a queue with invalid settings results in no queue but only its management object exists git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1543449 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5354: added testGordon Sim2013-11-181-1/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1543019 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Don't need full trace for regular test runsAndrew Stitcher2013-11-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541766 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5330: Typo in original checkinAndrew Stitcher2013-11-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541765 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5306: Improve test wrapper to avoid using getopt for long optionsAndrew Stitcher2013-11-142-5/+41
| | | | | | | Using getopt with long options is a gnu extension and so best avoided for portability reasons. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541764 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5336: Don't hardcode location of bash in shell scriptsAndrew Stitcher2013-11-1454-54/+54
| | | | | | | As bash isn't specified by POSIX its location is variable. Specifically under BSDs it isn't found in /bin/bash. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541763 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5330: Simplify testing for presence of python testing code -Andrew Stitcher2013-11-1218-265/+78
| | | | | | | this makes it much easier not to call the python testing code when it isn't available git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541241 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5275: HA transactions failing in qpid-cluster-benchmarkAlan Conway2013-11-122-23/+62
| | | | | | | | | | | | | | | | | | The test was failing due to incorrect handling of the transaction lifecycle: - Failing to handle the automatic rollback of the empty TX at session close. - Deleting the tx-q before all backups were finished with it. The fixes include - Make tx-q auto-delete, deleted only when the TxReplicators cancel their subscriptions. - Use markInUse/releaseFromUse on the primary to keep the tx-q until the primary is done. - Count TxReplicators for auto-delete (unlike normal QueueReplicators) - Improved error handling and log messages - Handle *incoming* exceptions on a federation link by passing to ErrorListener - QueueReplicator catches incoming not-found and resource-deleted exceptions - close the backup bridge, handle race between subscribe and delete. - Simplify QueueSnapshots, remove need for snapshot map. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541146 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5251: allow policies to be specified that will create topics or queues ↵Gordon Sim2013-11-122-1/+210
| | | | | | on demand if they match the specified pattern git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541059 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5301: support autodeleted exchangesGordon Sim2013-11-123-13/+80
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541058 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5318: HA tests fail sporadically with "AttributeError: 'NoneType' ↵Alan Conway2013-11-081-2/+3
| | | | | | | | | object has no attribute 'name'" This was due to a race condition where a session was deleted while the QmfAgent was looking it up. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1540171 13f79535-47bb-0310-9956-ffa450edef68