summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-2920: First cut experimental prototype for new cluster.Alan Conway2011-02-227-32/+580
| | | | | | | | | | Experimental code to investigate & measure performance of new cluster design ideas. Experimental classes are in src/qpid/cluster/exp. New broker::Cluster interface provides call points for cluster. Similar to store but has more operations, may be merged at a future point. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-2920@1073448 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3078: remote ambiguous -t short option, fix typoKenneth Anthony Giusti2011-02-212-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1073139 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2935: fix the flow limit tests to run on python versions 2.4+Kenneth Anthony Giusti2011-02-211-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1073134 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3051: Ensure credit window is moved correctly even if it contains ↵Gordon Sim2011-02-211-0/+41
| | | | | | rejected messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1073085 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2935: fix queue flow test to be compatible with older versions of pythonKenneth Anthony Giusti2011-02-211-44/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1073033 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2935: Handle missing assertGreater for older versions of pythonGordon Sim2011-02-211-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1072928 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2935: Annotate uint64 literal required for some compilersGordon Sim2011-02-211-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1072925 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2935: merge producer flow control (C++ broker).Kenneth Anthony Giusti2011-02-1912-142/+909
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1072356 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3015: Added create and delete methods to management schema for brokerGordon Sim2011-02-185-3/+170
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1072179 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3061 - Added missing xqilla and Boost definitions to cmakeTed Ross2011-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1071252 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: add cluster_tests.py to list of installed scripts.Alan Conway2011-02-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1071018 13f79535-47bb-0310-9956-ffa450edef68
* No JIRA: Added --durable option to qpid-cp-benchmarkAlan Conway2011-02-141-6/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1070634 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3049 - qpid-send --durable does not send durable messages.Alan Conway2011-02-111-6/+13
| | | | | | | The qpid-send test client with argument --durable only sends the first message as durable. Subsequent messages are not durable. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1069916 13f79535-47bb-0310-9956-ffa450edef68
* QPID-529: Priority queue implementationGordon Sim2011-02-103-0/+43
| | | | | | | | | | QPID-2104: LVQ enhancement These both required some refactoring of the Queue class to allow cleaner implementation of different types of behaviour. The in-memory storage of messages is now abstracted out behind an interface specified by qpid::broker::Messages which qpid::broker::Queue uses. Different implementations of that are available for the standard FIFO queue, priority queues and LVQ (I have also separated out the 'legacy' implementation of LVQ from the new version driven by QPID-2104). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1069322 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3040: The C++ messaging client library now releases pending messages ↵Jonathan Robie2011-02-091-11/+40
| | | | | | | | when a Receiver is closed. This only releases messages in the client's cache that have not been read. It does not release messages that have been read by the client application, but not acknowledged. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1069030 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3045 - sporadic failure of cluster_tests.ShortTests.test_route_updateAlan Conway2011-02-081-1/+1
| | | | | | | | | | | Sporadically the test was failing because the session associated with an inter-broker bridge was created out of order with other objects. This is unlikely to cause a fatal cluster inconsistency in practice but it has been corrected in any case. The fix was to delay creation of the management object for a bridge session till a point which is consistent on all cluster members. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1068554 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3045: Disable failing test cluster_tests.ShortTests.test_route_update ↵Alan Conway2011-02-081-1/+1
| | | | | | until issue is fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1068463 13f79535-47bb-0310-9956-ffa450edef68
* Reverts r1068042.Jonathan Robie2011-02-081-47/+11
| | | | | | We will fix this bug in the C++ client messaging library rather than the broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1068417 13f79535-47bb-0310-9956-ffa450edef68
* Ensures that messages acquired, but not acked, are released before a queue ↵Jonathan Robie2011-02-071-11/+47
| | | | | | | | | | | is deleted. Otherwise, these messages are not routed to an alternate exchange, and the queue is not actually deleted. Resolves QPID-3040 / Red Hat BZ 674678. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1068042 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3035: fix incorrect removal at end of SequenceSetKenneth Anthony Giusti2011-02-031-0/+44
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1066841 13f79535-47bb-0310-9956-ffa450edef68
* Do one long run in cluster_tests.py test_management.Alan Conway2011-02-021-14/+16
| | | | | | Instead of all short runs, use duration/4 for the first runs, then use 5 secs for remaining runs to get plenty of broker kills. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1066599 13f79535-47bb-0310-9956-ffa450edef68
* Resolves QPID-3031. Allows client connection options to specify an SSL ↵Jonathan Robie2011-02-021-6/+34
| | | | | | cert-name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1066508 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3007: Ignore expected connection close warning in cluster_test_logs.pyAlan Conway2011-02-011-40/+36
| | | | | | Also moved regex compilation out of the loop to be more efficient. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1066219 13f79535-47bb-0310-9956-ffa450edef68
* Move brokertest.py from qpid/python to qpid/cpp.Alan Conway2011-01-215-4/+704
| | | | | | | | | | brokertest.py is a framework for tests using the C++ broker, so it belongs in the cpp tree rather than the python tree. It is installed to libexec/qpid/tests/ so it can be used from an installation of qpid cpp. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1061933 13f79535-47bb-0310-9956-ffa450edef68
* Bug 654872, QPID-3007: Batch management messages by count, not size.Alan Conway2011-01-202-5/+15
| | | | | | | | | | | | QMF V1 management messages were being batched by accumulating up to a certain total size of data. Since management messages may have different sizes on brokers in a cluster, this was leading to inconsistencies. This patch batches V1 messages by count rather than by size, similar to V2 messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1061308 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3007 Disabled cluster log verification tests, causing sporadic failures.Alan Conway2011-01-192-2/+5
| | | | | | The tests will be re-enabled when QPID-3007 is fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1060879 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2982 Bug 669452 - Creating a route and using management tools can crash ↵Alan Conway2011-01-182-1/+42
| | | | | | | | | | | | cluster members. Cluster update did not include federation link and bridge objects. Fixed update to include them. Management linkUp and linkDown events were generated only on the broker receiving the link. Suppressed these events in a cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1060568 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2997: remove oid disambiguation, re-order mgmt object status updates.Kenneth Anthony Giusti2011-01-181-13/+133
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1060401 13f79535-47bb-0310-9956-ffa450edef68
* Fixes QPID-2499: Stale federation routes remain after route deletion.Jonathan Robie2011-01-131-40/+33
| | | | | | | | | | | | | Federated binds and unbinds need to know which federation origins are associated with the bindings for each queue. When origins are added or deleted, the corresponding bindings need to be propagated. fedBindings[queueName] contains the origins associated with the given queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1058747 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2982: Fix discrepancy in management object and deleted object counts.Alan Conway2011-01-132-10/+13
| | | | | | | | | | | | | | | cluster_tests.test_management was showing discrepancy in management object and deleted object count after a new member update. In ManagementAgent.cpp, code to move deleted objects into pendingDeletedObjs was duplicated in 2 places. Moved duplicated code into a function moveDeletedObjectsLH() Call moveDeletedObjectsLH from clusterUpdate to correct discrepancy in object count around update. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1058664 13f79535-47bb-0310-9956-ffa450edef68
* qpid-test-cluster script: added -d option to delete data-directory.Alan Conway2011-01-121-15/+31
| | | | | | Also allow hosts to be specified on command line. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1058287 13f79535-47bb-0310-9956-ffa450edef68
* Remove unnecessary sleeps.Michael Goulish2011-01-111-6/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1057747 13f79535-47bb-0310-9956-ffa450edef68
* Added cluster_test_logs.py to EXTRA_DIST for use by store tests.Alan Conway2011-01-111-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1057687 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2982: Improved cluster/management logging and automated test for log ↵Alan Conway2011-01-072-7/+119
| | | | | | | | | | | consistency. The cluster_tests.py test_management test is augmented to compare broker logs after the test completes. Any inconsistency in the logs causes the test to fail. This check is currently disabled as it is failing due to known issues. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1056378 13f79535-47bb-0310-9956-ffa450edef68
* config.null line wasn't needed, and was messing up vpath builds.Michael Goulish2011-01-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1056019 13f79535-47bb-0310-9956-ffa450edef68
* Allow command line utilities to require a given SASL mechanism.Jonathan Robie2010-12-211-0/+49
| | | | | | | | | | Useful if the client's most secure mechanism is suspect, e.g. if Kerberos configuration problems may exist. Also useful in a variety of test scenarios. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1051700 13f79535-47bb-0310-9956-ffa450edef68
* Change tmp directories from /tmp/sasl_fed/RANDOM to /tmp/sasl_fed_RANDOM.Michael Goulish2010-12-172-3/+3
| | | | | | | | | Otherwise, if user A runs these tests first, user B can't come along and run them later -- if he doesn't have write permission to the /tmp/sasl_fed directory which user A already created. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1050493 13f79535-47bb-0310-9956-ffa450edef68
* Made qpid-xxx management scripts callable as python functions.Jonathan Robie2010-12-171-18/+124
| | | | | | | | | | | | | | | | | | | | | Examples (from cli_tests.py): def qpid_config_api(self, arg = ""): script = import_script(checkenv("QPID_CONFIG_EXEC")) broker = ["-a", "localhost:"+str(self.broker.port)] return script.main(broker + arg.split()) def qpid_route_api(self, arg = ""): script = import_script(checkenv("QPID_ROUTE_EXEC")) return script.main(arg.split()) Useful primarily for qpid-config, qpid-route, and qpid-cluster. Probably not useful for qpid-stat, qpid-printevents, qpid-queue-stats, which just create screen output. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1050425 13f79535-47bb-0310-9956-ffa450edef68
* Include the new sasl_fed_ex test in EXTRA_DIST.Michael Goulish2010-12-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1050424 13f79535-47bb-0310-9956-ffa450edef68
* In broker::ConectionHandler, use the security settings, if any, Michael Goulish2010-12-162-1/+251
| | | | | | | | | | | provided by the transport layer when starting SASL. This allows the SASL mechanism EXTERNAL to be satisfied with SSL transport security. The test, sasl_fed_ex, uses this SASL/SSL security on a federated link between two brokers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1050162 13f79535-47bb-0310-9956-ffa450edef68
* Temporarily raise the logging level for ↵Alan Conway2010-12-151-0/+2
| | | | | | cluster_tests.LongTests.test_management and test_management_qmf to debug a sporadic failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1049698 13f79535-47bb-0310-9956-ffa450edef68
* Fix flow control for qpid-cpp-benchmark with multiple senders.Alan Conway2010-12-153-17/+21
| | | | | | Ensure senders & receivers agree on number of messages sent/received. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1049656 13f79535-47bb-0310-9956-ffa450edef68
* Add end-to-end flow control to qpid-send, qpid-receive and qpid-cpp-benchmark.Alan Conway2010-12-143-9/+49
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1049286 13f79535-47bb-0310-9956-ffa450edef68
* Modified qpid-cluster to support the way it is called from Jonathan Robie2010-12-101-1/+1
| | | | | | | | | | | | cluster_tests.StoreTests.test_persistent_partial_failure. Corrected test_persistent_partial_failure so that it no longer sends the name of the script as the first parameter - optparse expects this for arguments from sys.argv, but not for other argument lists. Fixed bug assigning host name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1044468 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2966: Disable test when python lib is not availableGordon Sim2010-12-101-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1044308 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2966: Add QMF method to dynamically set the log level.Gordon Sim2010-12-105-2/+178
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1044248 13f79535-47bb-0310-9956-ffa450edef68
* fix signed vs unsigned compare errorsKenneth Anthony Giusti2010-12-031-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1041835 13f79535-47bb-0310-9956-ffa450edef68
* add unit tests for cluster replication of deleted broker mgmt objectsKenneth Anthony Giusti2010-12-031-9/+362
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1041817 13f79535-47bb-0310-9956-ffa450edef68
* fix distcheck build problem with broker mgmt unit testKenneth Anthony Giusti2010-12-021-6/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1041424 13f79535-47bb-0310-9956-ffa450edef68
* revert nodist makefile change to fix bootstrap errorKenneth Anthony Giusti2010-12-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1041386 13f79535-47bb-0310-9956-ffa450edef68