summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4032 Broker ACL does not accept sub-groups in group declarationCharles E. Rolke2012-06-011-1/+29
| | | | | | | | | | | | Patch from Paul Colby and new self test demonstrating the fix. Note that this patch broke the user_realm self test. That is, a naked name like 'bob' has changed from being a username missing a domain to being a group name. The self test used to fail and still fails but now for a different reason. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1345190 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Fix signed/unsigned warnings on RHEL 5 w/ Boost 1.33.1Stephen D. Huston2012-05-301-22/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1344458 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Close replication link when a backup broker is promoted to primary.Alan Conway2012-05-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343348 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Allow Queue::setPosition() to truncate the queue.Alan Conway2012-05-282-54/+194
| | | | | | | | | | | | In the new HA code a backup may sometimes be ahead of the new primary after a fail-over. In that case the backup truncates it's queues to the same position as the primary so it can continue replicating. (Note the assertions added to verify setPosition showed up a minor bug in the old cluster code, which was leaving messages on the cluster update queue after an update. This patch fixes the issue.) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343347 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3767: add additional test case for link sharing.Kenneth Anthony Giusti2012-05-241-0/+113
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342442 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove final vestiges of non-portable alloca().Andrew Stitcher2012-05-243-11/+9
| | | | | | Fixed unit_test changes to avoid incorrect array initialisation. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342135 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Renamed brokers and public-brokers to brokers-url and public-url ↵Alan Conway2012-05-221-19/+19
| | | | | | for clarity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1341581 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA backups pass identifying info to primary.Alan Conway2012-05-221-0/+5
| | | | | | Pass hostname, management UUID and status in link connection arguments. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1341580 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4011: TestIsLocalHost unit_test fails with if machine name resolves to ↵Andrew Stitcher2012-05-181-0/+2
| | | | | | | | loopback address QPID-3404 - This change also adds support for IPv6 interface addresses to getLocalIpAddresses git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1340279 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4005: Eliminate "using" especially "using namespace" from header fileAndrew Stitcher2012-05-183-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1340276 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA failover test, increase timeout to avoid false failures.Alan Conway2012-05-171-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339757 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4005: Eliminate "using" especially "using namespace" from header fileAndrew Stitcher2012-05-168-8/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339403 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA don't replicate excluseive, auto-delete, non-timeout queues.Alan Conway2012-05-161-9/+27
| | | | | | | | | Such queues don't need to be replicated because they are destroyed when as the owning session disconnects, so won't survive a failover. This eliminsates managment subscriptio queues from replication. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339268 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA rename "promoting" to "recovering"Alan Conway2012-05-151-2/+2
| | | | | | Better term, a broker in failover recovers to become the primary, hence recovering. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1338898 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Test fixes to ha_tests.pyAlan Conway2012-05-151-43/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1338893 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA primary marks ReplicatingSubscription ready immediately if ↵Alan Conway2012-05-151-1/+0
| | | | | | queue is empty. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1338890 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA broker backup/primary ready checks.Alan Conway2012-05-152-57/+125
| | | | | | | | | | | | | | | | | - Introduce HA broker state machien - Inform backup queues when ready. - Incomplete implementation of backup ready check. - does not count correctly after a failover, see countUnready. - Existing replicator bridges updated out of sync with BrokerReplicator initialize. - Does not handle multi-messages responses. - Newly promoted HA primary waits for backups to be ready before accepting clients. - Uniform log prefixes for HA messages. - qpid-ha tests, call qpid-ha python code directly. - Move excluder from Backup to HaBroker, it is also used in PROMOTING. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1338889 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix bug in RangeSet when insterting a range that covers multiple ↵Alan Conway2012-05-141-63/+71
| | | | | | | | ranges. See new tests added to tests/RangeSet.cpp testRangeSetAddRange git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1338364 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Added SystemInfo::isLocalHost to check if a host name refers to ↵Alan Conway2012-05-083-1/+53
| | | | | | the local host. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1335562 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Skip HA tests if required python tools are not available.Alan Conway2012-05-072-3/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1335218 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3767: re-index bridge and link by constant name, not addressKenneth Anthony Giusti2012-05-042-47/+319
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1334138 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2616 Count and limit client connections.Charles E. Rolke2012-05-021-10/+22
| | | | | | | | Bug fix: use Connection.getUserId() and not getUsername() to identify user and upgrade selftest to match. Add comment to Connection.h to suggest the particular pitfall. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1333110 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3963: fix test, add cluster log filters for link and broker stateKenneth Anthony Giusti2012-05-012-17/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1332659 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3963: add testcase for federation and cluster failoverKenneth Anthony Giusti2012-05-011-0/+115
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1332658 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2616 Count and limit client connections.Charles E. Rolke2012-04-302-3/+69
| | | | | | | | Add self tests for connection counting feature. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1332342 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3960: Fix performance regression in priority queue implementation.Alan Conway2012-04-231-0/+1
| | | | | | | | | | | | Revision r1307582 created a serious degredation in priority queue performance. It replaced a muti-deque implementation with o(1) complexity for consuming with a map implementation with o(log(n)) performance. This revision returns to a mutli-deque algorithm but with the addition of a FIFO index for fast browsing of acquired and unacquired messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1329301 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Install HA connection excluder at the beginning of initialization.Alan Conway2012-04-231-2/+2
| | | | | | | Previosly excluder was being installed late allowing connections to a backup and diverting backups from the real primary. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1329300 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3964: Enforce 'access' premission rather than 'create' for passive ↵Gordon Sim2012-04-201-9/+32
| | | | | | declares; remove the now redundant 'passive' property from ACL model git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1328384 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Improvements to qpid-cpp-benchmark test.Alan Conway2012-04-191-20/+28
| | | | | | | - Removed un-necessary --group-receivers option to simplify the test. - Added --fill-drain: fil then drain the queues instead of running concurrent send/receive git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1328126 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3606: More consistent logging and error handling for HA code.Alan Conway2012-04-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1328124 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3352: Fix test for failed session to avoid confusion with as yet ↵Alan Conway2012-04-181-9/+6
| | | | | | | | | | | | | | | | | uninitialised session Previously, Link was using sessionHandler::isReady() to determine if a bridge had failed and needed recovery. However this incorrectcly recovers bridges that are not yet initialized as well as those that have failed. This was causing sporadic core dumps in serveral of the ha_tests.py tests, in particular test_backup_acquired. This patch adds a callback to notify the bridge when the session is detached, and use this as the criteria for recovering a bridge. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1327532 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix assertion messages in brokertest.pyAlan Conway2012-04-181-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1327518 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Minor code clean-up in brokertest.py and ha_tests.py.Alan Conway2012-04-172-97/+97
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1327137 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3950: Allow browsing of queues with exclusive subscriptionsAlan Conway2012-04-171-1/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1327135 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed useless flow control code from qpid-send.Alan Conway2012-04-163-33/+0
| | | | | | | This code serves no purpose now that qpidd has producer flow control. Removed it to simplify the tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326757 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Control running of cluster tests.Alan Conway2012-04-1624-58/+105
| | | | | | | | | | | Previously cluster tests would run if cluster services were running, even if build was explicitly configured without CPG. Don't run cluster tests unless the build is configured with CPG. If the build is configured *with* CPG, you can still skip the CPG tests by setting QPID_USE_CPG=no in the environment. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326756 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Minor improvements to HA tests, documentation and examples.Alan Conway2012-04-164-25/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326755 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Add heartbeat and reconnect options to qpid-cluster-benchmarkAlan Conway2012-04-162-9/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326754 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: ha_tests.py: Suppress python WARNING messages during failoverAlan Conway2012-04-161-8/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326753 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3926 - Fixes how unsigned 16 bit ints are assigned in the UUID test.Ted Ross2012-04-161-1/+1
| | | | | | | Applied patch from Darryl Pierce. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326654 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3947: Bounds checking for str8/str16 on creating AMQP 0-10 structsGordon Sim2012-04-131-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326014 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Update HA documentatiionAlan Conway2012-04-051-7/+7
| | | | | | Also renamed --ha-replicate-default to --ha-replicate git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1310026 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3918 Add management queries to ACL module.Charles E. Rolke2012-04-041-0/+194
| | | | | | | | | * Make queries available to self tests. * Exercise query interface during acl self tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1309549 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Broker option --ha-replicate-default to specify default replication.Alan Conway2012-04-021-63/+79
| | | | | | | Takes values 'all', 'configuration', 'all'. This is the replication level to use if a queue or exchange is created without an explicit 'qpid.replicate' argument. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1308597 13f79535-47bb-0310-9956-ffa450edef68
* Set BOOST_TEST_DYN_LINK only if linking dynamically with Boost. NO-JIRAStephen D. Huston2012-03-301-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1307592 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Keep acquired messages on queues for all queue types.Alan Conway2012-03-302-6/+57
| | | | | | | | Updated priority and lvq queues to keep acquired messages, and supply them to browsers if requested. This is necessary so replicating subscriptions can back-up these queue types without message loss. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1307582 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3921: C++ header files need tidyupAndrew Stitcher2012-03-285-6/+9
| | | | | | | | | | Tidied up header use of FieldValue.h - Removed all unnecessary includes of FieldValue.h from other header files especially Array.h. (This avoids the world recompiling when working on FieldValue!) - Corrected up header guards in Array.h git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1306595 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Substitute installation directories in qpidd init scripts.Alan Conway2012-03-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1306007 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Minor updates to doc and example cluster configuration.Alan Conway2012-03-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1305890 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA - Fixed a reference bug in qpid-config and added a test that exposes ↵Ted Ross2012-03-211-0/+3
| | | | | | the error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1303596 13f79535-47bb-0310-9956-ffa450edef68