summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-5277: remove install directive for qpidtGordon Sim2013-11-041-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1538656 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5277: removed qpidt as qpid-config now offers similar functionalityGordon Sim2013-11-041-141/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1538627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5284: ensure timestamp is added to the data that is persistedGordon Sim2013-11-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1537889 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5283: ensure queue has no consumers before granting exclusive ownershipGordon Sim2013-10-311-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1537579 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed reference to non-existent test.Alan Conway2013-10-311-2/+0
| | | | | | Removed test "NAME" from qpid/cpp/src/tests/legacystore/CMakeLists.txt. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1537512 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5279: test exclusivity checks in 1.0Gordon Sim2013-10-312-1/+53
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1537497 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5139: HA transactions block a thread, can deadlock the brokerAlan Conway2013-10-293-24/+42
| | | | | | | | | | | | | | | | | | | | | PrimaryTxObserver::prepare used to block pending responses from each backup. With concurrent transactions this can deadlock the broker: once all worker threads are blocked in prepare, responses from backups cannot be received. This commit generalizes the async completion mechanism for messages to allow async completion of arbitrary commands. It leaves the special-case code for messages undisturbed but adds a second path (starting from SessionState::handleCommand) for async completion of other commands. In particular it implements tx.commit to allow async completion. TxBuffer is now an AsyncCompletion and commitLocal() is split into - startCommit() called by SemanticState::commit() - endCommit() called when the commit command completes TxAccept no longer holds pre-computed ranges, compute fresh each time. - Avoid range iterators going out of date during a delayed commit. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1536754 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5139: Make TxBuffer inherit from AsyncCompletion.Alan Conway2013-10-292-13/+13
| | | | | | Switched from shared_ptr to intrusive_ptr for TxBuffer and DtxBuffer. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1536752 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5139: Add unit test for deadlock caused by blocking HA commit.Alan Conway2013-10-292-4/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1536751 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5260: Significant tidy up of cmake buildAndrew Stitcher2013-10-284-36/+43
| | | | | | | | | | | | | | | | | | | | | * Move to cmake 2.6 as minimum required version (2.4 is extremely long in the tooth now) * Add control over building individual language bindings * Make settings you don't usually want to change advanced so they are hidden by default * Changed to a uniform naming scheme for options: ** Options controlling what to build are all BUILD_ ** Options controlling features of he build are ENABLE_ ** Options controlling internal aspects of the qpid runtime are QPID_ * Respect the BUILD_TESTING option so that we won't build the tests unless it is set (it is by default) * If we don't find the boost_unit_test_framework then don't fail, just don't build the unit tests (this is motivated by one of the Apache Jenkins ubuntu builders which has this set up) * Tidied up some of the detection of external dependencies to make it more idiomatic cmake (but there is more to do here) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1536329 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4927: paged queue tests take too long under valgrind, so run them ↵Gordon Sim2013-10-252-8/+15
| | | | | | separately git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535750 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4927: Get cmake testing working with valgrindAndrew Stitcher2013-10-246-230/+104
| | | | | | [also remove unused files] git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535398 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4265: fix broken windows buildGordon Sim2013-10-241-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535389 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4265: test closing of receiver with concurrent fetchGordon Sim2013-10-241-2/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535355 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4984: WIP: Copy of work over from branch to trunk. Non-tx works with ↵Kim van der Riet2013-10-221-0/+24
| | | | | | some known bugs, tx not yet operational. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1534736 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5246: update ACL code to recognise self-destruct policyGordon Sim2013-10-221-2/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1534613 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4582, QPID-5215: fix linking errors for clock_gettimeGordon Sim2013-10-151-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1532408 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5229: tests for reject and release over 1.0Gordon Sim2013-10-152-1/+66
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1532311 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5227: QPID-5230: added tests for redelivered flag on browse and releaseGordon Sim2013-10-151-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1532310 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4582: Fixed unit legacystore unit test to remove warning under RHEL5Andrew Stitcher2013-10-091-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1530681 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5215: Import rest of legacy store tests and utilities from original codeAndrew Stitcher2013-10-0863-39/+12588
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1530301 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4582: Get legacystore unit tests workingAndrew Stitcher2013-10-086-120/+55
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1530300 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5115: AMQP 1.0 client support built in to qpidmessaging for all platformsCharles E. Rolke2013-10-044-5/+1
| | | | | | | | | | | This commit disposes of the amqpc library and moves the functions into the qpidmessaging library. Now any client that loads qpidmessaging gets amqp0-10 and amqp1.0 selectable through the connection protocol option. C++ brokers still must load the amqp library to enable 1.0 support. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1529235 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5197: Remove obsolete --cluster-durable/persistLastNode options in C++ ↵Alan Conway2013-10-041-17/+0
| | | | | | and python. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1529198 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5199: take 0-10 header segment into account for message sizeGordon Sim2013-10-033-87/+98
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1528852 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA Fix typo in qpid-cluster-benchmark.Alan Conway2013-09-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1526725 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5169: CRAM-MD5, not CRAM-MD; a patch from Ernie AllenJustin Ross2013-09-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1526637 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5156: prevent tests for assert functionality with swigged client ↵Gordon Sim2013-09-251-0/+13
| | | | | | failing on RHEL5 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1526166 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5142: require swig client to be explicitly selected for testsGordon Sim2013-09-241-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525969 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5156: add tests for assert functionalityGordon Sim2013-09-242-1/+129
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525859 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5149: truncate over large routing keys when translating from 1.0 to 0-10Gordon Sim2013-09-201-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525043 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4952: Fix swigged python tests which were disabled by previous commitGordon Sim2013-09-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1524669 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: added -l USER option to rsynchosts script.Alan Conway2013-09-181-2/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1524567 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5143: don't include transport in default url as it overrides any ↵Gordon Sim2013-09-182-2/+2
| | | | | | connection option git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1524506 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: missing includes that are really neededAndrew Stitcher2013-09-164-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1523828 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4944: HA fix failure of test_failover_send_receive on slow machines.Alan Conway2013-09-132-2/+2
| | | | | | | | | | At the end of this test, receivers read remaining messages on queues. Previously the test limited the max depth at 1024, but this was too high on some slower machines and caused a timeout. The test now limits the max depth to 50, which seems to work on a range of machines. There's no impact on the effectiveness of the test for failover. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1523094 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4944: HA re-enable test_failover_send_receiveAlan Conway2013-09-123-26/+35
| | | | | | | | | | | | | Appears to have been fixed at this point on trunk, not clear which checkins are responsible. Test ran for 48 hours with no failures. Other minor changes: - Enable test_failover_send_receive - Increase heartbeat interval. - Reduce capacity of senders in failover test to be more aggressive. - Use HaBrokerTest as test base git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1522711 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5132: HA crash in test_tx_join_leave caused by double delete of queue. Alan Conway2013-09-111-5/+2
| | | | | | | | | | | | | Fix crash caused by double-delete of transaction queue when a broker joins while a transaction is in progress. - Ignore mode for non-participants in TX. - Try/catch around queue & exchange deletion. - Consistent use of QueueRegistry::get when queues are required. - Remove unnecessary exchange delete warning. - Remove HaBroker::delete, use realm@username when deleting queues. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1522031 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4327: HA support for TX transactions - fix TX error messages.Alan Conway2013-09-092-8/+7
| | | | | | | | | - Ignore un-replicated queues when replicating transactions. - Clean up cancel logic in QueueReplicator, causing "no such subscription" errors. - Remove unnecessary exchange delete warnings - ha_test.py: Shorter timeout for starting cluster brokers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1521192 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4327: HA support for TX transactions - fix auth bugs.Alan Conway2013-09-092-7/+13
| | | | | | | | - Set auth info on status check connections - Clean up status check loging - Use realm@username for authentication name (was using just username) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1521190 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA minor fixes to test framework & comments.Alan Conway2013-09-042-3/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1520108 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5111: Make library dependencies clearer in build systemAndrew Stitcher2013-09-031-25/+24
| | | | | | | - Use -as-needed to link libraries to avoid unnecessary libraries - Tidyup mess with nss and qpid-proton libraries git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1519866 13f79535-47bb-0310-9956-ffa450edef68
* QPID:4327: HA support for TX transactions - fix cleanup at transaction end.Alan Conway2013-09-031-14/+34
| | | | | | | Was not removing transaction exchange at end of transaction. Fix to transaction end logic. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1519846 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove obsolete cluster_test.cpp test.Alan Conway2013-09-031-1231/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1519806 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove obsolete qpid-cluster and qpid-cluster-store tools.Alan Conway2013-09-032-94/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1519739 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5109: remove invalid options from qpid-configGordon Sim2013-09-021-20/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1519480 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5106: handle annotations properly and add option to control whether ↵Gordon Sim2013-09-022-1/+3
| | | | | | annotations are nested or not on fetch() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1519466 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4327: HA clean up transaction artifacts at end of TX.Alan Conway2013-08-303-29/+71
| | | | | | | | | | - Backups delete transactions on failover. - TxReplicator cancel subscriptions when transaction is finished. - TxReplicator rollback if destroyed prematurely. - Handle special case of no backups for a tx. - ha_tests.py: new and modified tests to cover the new functionality. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1518982 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5040: fix for string and symbol types on AmqpValue section (also clear ↵Gordon Sim2013-08-301-4/+5
| | | | | | message on fetch()) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1518955 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4708: support for reconnect over AMQP 1.0Gordon Sim2013-08-281-3/+64
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1518233 13f79535-47bb-0310-9956-ffa450edef68