summaryrefslogtreecommitdiff
path: root/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* NO-JIRA Fix a degenerate test case where the message count is smallCharles E. Rolke2011-03-031-1/+6
| | | | | | | | | and the host system timing base yields and elapsed time of zero. The change is to throw a meaningful error message rather than throwing an obscure DIV0 error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1076652 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3105: Alternate-Exchange configuration not communicated between nodes ↵Alan Conway2011-03-021-1/+28
| | | | | | in a cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1076375 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3081: add statistic for queue flow control transitionsKenneth Anthony Giusti2011-03-021-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1076329 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3096Michael Goulish2011-03-0117-2334/+0
| | | | | | | removing qrsh -- was never used. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1075874 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1672Michael Goulish2011-02-284-0/+108
| | | | | | | fixing non-executable script checkin... git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1075471 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1672Michael Goulish2011-02-284-108/+0
| | | | | | | fixing non-executable checkin... git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1075470 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1672Michael Goulish2011-02-287-51/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | What was a single test -- sasl_fed_ex -- is now 4 tests with a common core. They are: sasl_fed_ex_dynamic sasl_fed_ex_link sasl_fed_ex_queue sasl_fed_ex_route ( and the common core is sasl_fed_ex ) These tests correspond to the 4 different ways that the qpid-route command has of making links, or links+routes. All those pathways have to be modified so that the new "mechanism" argument information can be passed down and used -- so that you can specify a SASL mechnism to be used on the interbroker link that you create. ( So -- the qpid-route command also had to be modified to propagate the mechanism info with all 4 subcommands. ) Since the SASL mechanism is owned by the link, these tests check that the link comes up and becomes operational. Finally, I modified the sasl-mechanism flag in qpid-route to call it "client-sasl-mechanism" to better distinguish between the SASL mechanism used in the created route -- and the SASL mechanism (if any) that is used when the qpid-route client itself connects to the broker that it is talking to. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1075452 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3087: Fixes to store interaction changesGordon Sim2011-02-281-4/+4
| | | | | | | | | * don't create queue on recovery * ensure laternate exchange is set before creating store record for queue git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1075331 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3087: add extra test for qpid-config and handling string values in ↵Gordon Sim2011-02-252-1/+22
| | | | | | arguments git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1074698 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2999: set redelivered on replayGordon Sim2011-02-252-0/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1074611 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3015: assertTrue not available on older versions of python; change to ↵Gordon Sim2011-02-231-2/+2
| | | | | | assert git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1073945 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3015: cleanup and additional test of acl enforcementGordon Sim2011-02-231-26/+129
| | | | | | | | [Also modified acl unit test module to allow the policy file used to be configurable, making it easier to run standalone. Reset policy to allow all on tear down to allow repeated runs.] git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1073726 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added a couple of additional exclusions to the log filter.Alan Conway2011-02-221-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1073490 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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@1050425 13f79535-47bb-0310-9956-ffa450edef68