summaryrefslogtreecommitdiff
path: root/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-1464 - Moved qmf console API out of python/qpid and into python/qmfTed Ross2008-11-201-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719359 13f79535-47bb-0310-9956-ffa450edef68
* Replaced boost.spirit-based URL parser with simple recursive descent parser.Alan Conway2008-11-201-25/+28
| | | | | | | | | | | | | boost.spirit has some known thread-safety issues and appears to be causing qpid clients to crash in several scenarios. The new parser is trivially thread safe and relatively easy to extend. It's a simple recursive descent parser, sufficient for simple grammars like those used in URL formats. It's not intended to be a full-featured parser framework like spirit. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719317 13f79535-47bb-0310-9956-ffa450edef68
* Added some extra test options.Gordon Sim2008-11-203-15/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719298 13f79535-47bb-0310-9956-ffa450edef68
* File descriptor leak in ForkedBroker test utility.Alan Conway2008-11-191-6/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719062 13f79535-47bb-0310-9956-ffa450edef68
* tests/failover_soak: run a cluster with clients, kill and restart cluster ↵Alan Conway2008-11-197-9/+1058
| | | | | | members, verify client fail-over. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719055 13f79535-47bb-0310-9956-ffa450edef68
* Optional cluster integration with cman quorum service.Alan Conway2008-11-182-7/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@718693 13f79535-47bb-0310-9956-ffa450edef68
* Remove optimistic consume options. Better default message for SSL errors.Alan Conway2008-11-172-48/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@718277 13f79535-47bb-0310-9956-ffa450edef68
* Fixed erroneous test preventing cleanup of broker.Gordon Sim2008-11-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@718237 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1465: Fixed initialisation of minimum value so it is tracked correctlyAndrew Stitcher2008-11-141-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@714126 13f79535-47bb-0310-9956-ffa450edef68
* Ensure config file can be found (its in source tree not build tree)Gordon Sim2008-11-141-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@714121 13f79535-47bb-0310-9956-ffa450edef68
* Added further test script missing from distribution list and thus causing ↵Gordon Sim2008-11-141-0/+1
| | | | | | distcheck to fail if cluster module is enabled. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@714072 13f79535-47bb-0310-9956-ffa450edef68
* Added some failover capable testsGordon Sim2008-11-145-0/+516
| | | | | | | | Added grantCredit() method to subscription to allow simpler control of message delivery git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@714065 13f79535-47bb-0310-9956-ffa450edef68
* Add config.null file to distributed list or distcheck fails (todo: might be ↵Gordon Sim2008-11-141-0/+1
| | | | | | nicer to just generate that since its just an empty file) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@714030 13f79535-47bb-0310-9956-ffa450edef68
* Added QPID_NO_MODULE_DIR to prevent client from loading libraries fromTed Ross2008-11-131-0/+1
| | | | | | | outside the tested software. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713717 13f79535-47bb-0310-9956-ffa450edef68
* Added null config for SSL test. This test will malfunction if there isTed Ross2008-11-132-1/+2
| | | | | | | already a config file in the default location with SSL configuration in it. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713583 13f79535-47bb-0310-9956-ffa450edef68
* Cluster replicates queues/exchanges with same encode/decode functions as the ↵Alan Conway2008-11-121-0/+24
| | | | | | | | | store. Removed un-necessary heap allocation in QPID_LOG statements. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713425 13f79535-47bb-0310-9956-ffa450edef68
* fixed encoding of 64 bit types and added additional tests for 64 bit integersRafael H. Schloming2008-11-111-3/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713160 13f79535-47bb-0310-9956-ffa450edef68
* * don't call exit after catching exception on any particular thread as the ↵Gordon Sim2008-11-101-5/+6
| | | | | | | | | | other threads may still be running and this causes core dumps * catch any errors that occur in shutdown git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@712691 13f79535-47bb-0310-9956-ffa450edef68
* Add Message callbacks for async completion.Alan Conway2008-11-062-0/+101
| | | | | | | | Add unit test for async completion. Add sync parameter to generated session functions, defaults as before but allows greater control. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711998 13f79535-47bb-0310-9956-ffa450edef68
* Restrict connection close codes to the set defined in the specGordon Sim2008-11-061-28/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711989 13f79535-47bb-0310-9956-ffa450edef68
* Removed the --enforce-acl option. Instead if a policy file is specified acl ↵Rajith Muditha Attapattu2008-11-061-1/+1
| | | | | | | | | will be enabled. Also removed Route from the Object list and did a bit of code cleanup. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711957 13f79535-47bb-0310-9956-ffa450edef68
* * fix bug causing last message to occasionally be lost on replayGordon Sim2008-11-061-0/+20
| | | | | | | | | * make presence of gaps an error condition in the resuming_receiver example * add ability to apply functor to replay buffer git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711903 13f79535-47bb-0310-9956-ffa450edef68
* SubscriptionManager and Dispatcher were missing wait() methods meaning that ↵Gordon Sim2008-11-061-2/+2
| | | | | | if start was called there was no way to join with the dispatch thread and shutdown cleanly. Fixed by adding that method. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711838 13f79535-47bb-0310-9956-ffa450edef68
* Added ability to release messages through the Subscription class (+test)Gordon Sim2008-11-051-0/+84
| | | | | | | | | | Added another mode for managing completion (+test) Fixed regression where bytes credit was not reallocated in windowing mode after an accept/release Fixed regression where subscribe request is issued before listener is registered with dispatcher git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711698 13f79535-47bb-0310-9956-ffa450edef68
* Fix error in run_test.Alan Conway2008-11-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711658 13f79535-47bb-0310-9956-ffa450edef68
* Cluster: clean up connections when a member leaves the cluster.Alan Conway2008-11-053-4/+6
| | | | | | | Fixed a memory error in cluster_test and some reporting errors in test scripts. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711623 13f79535-47bb-0310-9956-ffa450edef68
* Cluster: replicate transaction state to newcomers.Alan Conway2008-11-052-28/+24
| | | | | | | | | | | | | constants.rb: generate type code constants for AMQP types. Useful with Array. framing/Array: - added some std:::vector like functions & typedefs. - use TypeCode enums, human readable ostream << operator. rubygen - fixed error in generation of exceptions for bad codes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711587 13f79535-47bb-0310-9956-ffa450edef68
* fixed compilation warnings from comparison of signed and unsigned intsGordon Sim2008-11-051-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711540 13f79535-47bb-0310-9956-ffa450edef68
* renamed suite to avoid collision for newer versions of boostGordon Sim2008-11-041-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711379 13f79535-47bb-0310-9956-ffa450edef68
* constants.rb: generate type code constants for AMQP types. Useful with Array.Alan Conway2008-11-042-4/+49
| | | | | | | | | framing/Array: - added some std:::vector like functions & typedefs. - use TypeCode enums, human readable ostream << operator. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711365 13f79535-47bb-0310-9956-ffa450edef68
* Added unit test for replay utility class.Gordon Sim2008-11-042-1/+81
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711328 13f79535-47bb-0310-9956-ffa450edef68
* Allow local broker to be run in any position in a ClusterFixture.Alan Conway2008-11-041-84/+77
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711283 13f79535-47bb-0310-9956-ffa450edef68
* correction for Active-Active clustering, allowing late joining nodes in the ↵Carl C. Trieloff2008-11-031-37/+54
| | | | | | cluster to sync counter values for sequenced messages git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@710157 13f79535-47bb-0310-9956-ffa450edef68
* Various fixes arising from testing client failover:Gordon Sim2008-11-031-5/+4
| | | | | | | | | | | | | | | | | | | | * introduced new exception type for signalling connection failure (as distinct from any logical connection errors) * ConnectionImpl::closeInternal(): take copy of session map to prevent concurrent modification (by the same thread) as sessions are deleted and erase themselves. * ConnectionImpl::shutdown: hold lock before calling closeInternal(); mark handler failed before informing sessions of failure * SessionImpl::connectionBroker(): remove code as its rather meaningless * Don't swallow exceptions in Dispatcher * Handle exceptions in FailoverListener * Take weak_ptr to ConnectionImpl on constructor of Connector, then convert to shared_ptr when 'receiver' thread is started. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@710106 13f79535-47bb-0310-9956-ffa450edef68
* Cluster returns connection exception for un-supported AMQP features.Alan Conway2008-10-311-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709474 13f79535-47bb-0310-9956-ffa450edef68
* Added return Message overload of SubscriptionManager get().Alan Conway2008-10-311-6/+3
| | | | | | | Fixed compile error in broker/Vhost.cpp git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709440 13f79535-47bb-0310-9956-ffa450edef68
* Replicate session state for un-acknowledged messages to new cluster members.Alan Conway2008-10-302-9/+68
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709242 13f79535-47bb-0310-9956-ffa450edef68
* Allow AbsTime and Duration to be used cross-platform; add usleep() wrapper. ↵Stephen D. Huston2008-10-291-3/+3
| | | | | | Related to QPID-1209 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709028 13f79535-47bb-0310-9956-ffa450edef68
* * added flag to SubscriptionSettings to control automatic completion of messageGordon Sim2008-10-293-8/+12
| | | | | | | | | | * removed automatic acquiring under autoAck mode * added test for results from acquire requests * added short txtest to the set of system tests run under make check git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@708919 13f79535-47bb-0310-9956-ffa450edef68
* Recent change from AckPolicy to Subscription means completions are not sent ↵Gordon Sim2008-10-281-0/+1
| | | | | | automatically which is required in window mode. Added manual send as temporary measure. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@708540 13f79535-47bb-0310-9956-ffa450edef68
* Test for presence of python directoryGordon Sim2008-10-281-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@708496 13f79535-47bb-0310-9956-ffa450edef68
* client::SubscriptionManager::findSubscription() throws if not found.Alan Conway2008-10-271-1/+1
| | | | | | | Added progress indicator to boost tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@708210 13f79535-47bb-0310-9956-ffa450edef68
* Client API change: Centralize access to subscription status, better control ↵Alan Conway2008-10-259-103/+57
| | | | | | | | | | | | | | | | | | | of acquire/accept. client/AckPolicy: removed, functionality moved to Subscription and SubscriptionSettings client/SubscriptionSettings: struct aggregates flow control & accept-acquire parameters for subscribe. client/Subscription: represents active subscription. Query settings, unacked messages, manual accept/acquire client/SubscriptionManager: use AcceptMode, AcquireMode enums rather than confusing bools. Issues addressed by the change: - old use of bool for acceptMode was inverted wrt AMQP enum values, bools are confusing. - old AckPolicy was broken - not possible to access the instance associated with an active subscription - old AckPolicy did not provide a way to do manual acquire, only accept. - setting values on SubscriptionManager to apply to subsequent subscriptions is awkward & error-prone, now can use SubscriptionSettings to control on each subscribe individually. - a subscription is a central concept in AMQP, it deserves to be a class. Subscription and SubscriptionSettings provides a single point for future expansion of interactions with a a Subscription. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707808 13f79535-47bb-0310-9956-ffa450edef68
* Fix script to clean up data_dir.Alan Conway2008-10-251-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707806 13f79535-47bb-0310-9956-ffa450edef68
* Fix compile error.Alan Conway2008-10-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707793 13f79535-47bb-0310-9956-ffa450edef68
* Add check for presence of certutil when running ssl testGordon Sim2008-10-241-1/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707704 13f79535-47bb-0310-9956-ffa450edef68
* fix for make distcheck (I had listed wrong filenames in earlier commit)Gordon Sim2008-10-241-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707699 13f79535-47bb-0310-9956-ffa450edef68
* Revised transactional options to perftest as they could not be used on older ↵Gordon Sim2008-10-241-30/+44
| | | | | | | | | | boost versions due to ambiguity. Refactored TxAccept to avoid excessive testing and searching for delivery records. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707615 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug in encoding/decoding of floats and doubles.Gordon Sim2008-10-244-1/+166
| | | | | | | | | | Added test to verify double/float headers set by c++ are correctly read by python [TODO: add wider range of header types, add bidirectional tests, add tests against other languages] [Also fixed one or two SSL related files missing from distribution list] git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707604 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1348 - Dynamic binding for federation. Parameterized exchange names ↵Ted Ross2008-10-241-104/+230
| | | | | | for CPP examples git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707515 13f79535-47bb-0310-9956-ffa450edef68