summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4944: HA Sporadic failure in ha_tests: tes_failover_send_receive and ↵Alan Conway2013-06-212-7/+4
| | | | | | | | | | | | test_expected_backup_timeout Very sporadic failures so difficult to verify the fix. - Simplified Membership, centralized status change, make it atomic. - Fix test bug in test_expected_backup_timeout: not waiting on final status check, race. - Remove out-of-date status info from log prefixes: Guard, ReplicatingSubscription git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1495466 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4938: No longer build acl or ssl support as pluginsAndrew Stitcher2013-06-199-58/+9
| | | | | | (also remove final references to dead watchdog plugin) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1494697 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4931: Only allow broker to listen to a single address if "--port 0" ↵Andrew Stitcher2013-06-193-3/+2
| | | | | | | | | | | specified - If more than one address is specified or implied by the defaults the broker will log a warning - This is intended to avoid testing problems where the broker fails to connect to the port of subsequent listening addresses git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1494656 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4745: Remove spurious --port option in qpidd-p0Alan Conway2013-06-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1494606 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4745: Alternative port allocation for tests, instead of 'qpidd --port=0'Alan Conway2013-06-183-2/+56
| | | | | | | | | | | | | | | | | | qpidd-p0 script binds a new port to a socket using bind(0), and then execs qpidd using the --socket-fd option to pass the socket to qpidd. It is intended to replace /path/to/qpidd --port 0 <args...> with qpidd-p0 /path/to/qpidd <args...> Most tests do not yet use qpidd-p0, they will be updated in a future commit. Changes: - Added qpidd-p0 - Fixed qpidd port printing logic: print port only if --port=0, regardless of --transport. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1494306 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4926: Add path when invoking sasl_test_setup.shAlan Conway2013-06-181-1/+1
| | | | | | Build was failing with "sasl_test_setup.sh not found", added an explict path. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1494305 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4926: Get Unix sasl/ssl test workingAndrew Stitcher2013-06-171-13/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1493903 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4348: HA Use independent sequence numbers for identifying messagesAlan Conway2013-06-174-38/+37
| | | | | | | | | | | | | | | Previously HA code used queue sequence numbers to identify messasges. This assumes that message sequence is identical on primary and backup. Implementing new features (for example transactions) requires that we tolerate ordering differences between primary and backups. This patch introduces a new, queue-scoped HA sequence number managed by the HA plugin. The HA ID is set *before* the message is enqueued and assigned a queue sequence number. This means it is possible to identify messages before they are enqueued, e.g. messages in an open transaction. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1493771 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4926: Add in overlooked cli_testsAndrew Stitcher2013-06-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1493267 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4926: Add in tests missing from the cmake buildAndrew Stitcher2013-06-141-5/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1493264 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: restrict broker to listen only on loopback interface (which is all ↵Gordon Sim2013-06-1313-20/+22
| | | | | | that gets used by clients) in order to avoid port collisions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1492778 13f79535-47bb-0310-9956-ffa450edef68
* Add a test for recovering a message with 0-length body. NO-JIRA.Stephen D. Huston2013-06-061-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1490365 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added connection timeout to python client, used in brokertests.Alan Conway2013-05-291-2/+2
| | | | | | | Added an optional timeout parameter to Connection.establish. Set a timeout of 5 seconds in brokertest.py to prevent hanging tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1487578 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: CMake: Added missing test_wrap around stop_broker test.Alan Conway2013-05-291-1/+1
| | | | | | | | The stop_broker test was being run without the test_wrap wrapper. That meant it was loading the default /etc/qpidd.conf, so the test would fail if that config had any options defined by a module (since the tests dont load default modules.) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1487501 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4713: fix handling of reply to when converting from 1.0 to 0-10 formatGordon Sim2013-05-282-7/+80
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1486989 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: match the frequency of rate failure warnings to stats report frequencyGordon Sim2013-05-271-5/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1486666 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4890: added workaround to test to handle issues with closing stdin of ↵Gordon Sim2013-05-271-0/+1
| | | | | | subprocesses under older python interpreters git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1486625 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4650: C++ Broker method to redirect messages between two queues.Charles E. Rolke2013-05-251-2/+2
| | | | | | | | | Self test on RHEL 6 hangs frequently. Fall out of test and leave a dangling session. This appears to avoid the hang. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1486327 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4650: C++ Broker method to redirect messages between two queues.Charles E. Rolke2013-05-242-376/+0
| | | | | | | | Previous commit had file content for these two files twice. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1486089 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4650: C++ Broker method to redirect messages between two queues.Charles E. Rolke2013-05-242-0/+750
| | | | | | | | Commit new files. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1486081 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4650: C++ Broker method to redirect messages between two queues.Charles E. Rolke2013-05-231-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1485836 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4866: HA support for failover exchangeAlan Conway2013-05-222-11/+26
| | | | | | | Add support for the "amq.failover" exchange with new HA, to support migration of clients that used this facility with the old cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1485511 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4878: fix SASL for connections established by the brokerGordon Sim2013-05-221-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1485467 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: cleanup temp files to fix the distcheck buildKenneth Anthony Giusti2013-05-201-7/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1484491 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove unnecessary includes from test scriptGordon Sim2013-05-201-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1484391 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA clean up ha_tests.py to use HaCluster more consistently.Alan Conway2013-05-161-29/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1483455 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4850: HA Sporadic stall in ha_tests.test_failover_send_receiveAlan Conway2013-05-151-7/+1
| | | | | | | | Fixed a deadlock in the test: test was killing a backup broker then waiting to pass a checkpoint: however if the backup was expected by the primary, the primary holds queues till it connects, so we deadlock. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1483107 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4745: Clean up test_backup_acquired to use HaCluster.Alan Conway2013-05-151-15/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1482882 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4745: HA safe port allocation for brokers in HA tests.Alan Conway2013-05-153-86/+123
| | | | | | | | | | | | | | | | | | Many HA tests use --port=0 to start a broker on an available port, but then need to shutdown and restart the broker on the same port. This is not safe, on a busy system it is possible for another process to take the port between the time the broker is shut down and the time it is restarted. The solution is to do bind(0) and listen in the python test framework (class HaPort) and let the broker use the socket using qpidd --socket-fd. When the broker is shut down the port remains bound by the python process. When the broker is re-started it again is given access to the socket via --socket-fd. Other changes - move ha_store_tests into ha_tests. - add heartbeats to avoid stalling. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1482881 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4846: prevent assertion when translating empty 0-10 message content ↵Gordon Sim2013-05-151-0/+31
| | | | | | into 1.0 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1482795 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA moved ha_store_tests.py into ha_tests.py test suite.Alan Conway2013-05-134-129/+88
| | | | | | It was too easy to forget the store tests in a separate file. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1482023 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4822: Allow Variant::parse() to produce VAR_UINT64 types.Andrew Stitcher2013-05-081-0/+27
| | | | | | | | - Extend qpid::messaging::Variant string parser to output unsigned 64 bit type where relevant (positive integer larger than signed 64 bits) - Added some unit tests for the qpid::messageing::Variant string parser git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1480376 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4820: fix incorrect AMQP 0-10 typecodesGordon Sim2013-05-081-0/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1480327 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4668: Correct use of delivery count (should be 0 on first delivery)Gordon Sim2013-05-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1480236 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4798: Fix up c++ code generation to use stripped spec files.Alan Conway2013-05-021-1/+1
| | | | | | | | The stripped specs have no <doc> elements, this was tripping up the code generator. Fixed the generator to process <doc> elements if they are present but to carry on without them if they are not. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1478582 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4775: C++ Broker add ACL property checks for delete queue and exchange.Charles E. Rolke2013-05-021-7/+239
| | | | | | | | | 0-18-based patch from Pavel Moravec was adjusted for trunk. Removed size properties from list of queue deletion check parameters. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1478418 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4790: replace old client queue.delete api with QMF callKenneth Anthony Giusti2013-05-013-25/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477979 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4786: Only have one thread processing session queue at a timeGordon Sim2013-05-011-0/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477975 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4720: C++ Broker headers exchange tests not using run-time comaprisons.Charles E. Rolke2013-04-292-44/+129
| | | | | | | | Main code modified only slighty so that tests can hook into actual logic. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477317 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4339: simple paged queue implementationGordon Sim2013-04-294-5/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477236 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4787: HA brokers find self-address in brokers_url.Alan Conway2013-04-291-16/+15
| | | | | | | | | HA brokers need to know their own addresses, but it is not safe to simply use local hosts name and Broker::getPort() since the broker may be listening on multiple addresses. The solution is to have brokers check the ha-rokers-url for their own address while doing the initial status check of the cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477165 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4631: C++ Broker federated links are protected by ACL policy.Charles E. Rolke2013-04-293-16/+113
| | | | | | | | | This issue evolved a bit between the original discussion and the final commit. See https://reviews.apache.org/r/10658/ for the details. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477112 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4651: C++ Broker add --log-disable optionCharles E. Rolke2013-04-263-8/+164
| | | | | | | | Reviewed at https://reviews.apache.org/r/10799/ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1476409 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4756: only invoke property update callback if properties are presentKenneth Anthony Giusti2013-04-261-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1476373 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4748: Fix compilation warnings introduced by r1469661.Alan Conway2013-04-261-12/+12
| | | | | | Added explicit conversion from double to int64_t. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1476295 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4748: Fix to test broken (trivially) by r1469661Gordon Sim2013-04-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1470610 13f79535-47bb-0310-9956-ffa450edef68
* Fix warning about uninitialised variable when running test under valgrind; ↵Gordon Sim2013-04-221-1/+1
| | | | | | caused by r1469088, QPID-3689 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1470605 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4756: enable updateStats callback for QMFv2 object notificationsKenneth Anthony Giusti2013-04-191-15/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1469974 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4748: Consistent handling of durations in broker configuration, ↵Alan Conway2013-04-191-0/+44
| | | | | | | | | | | | | | | | | | | | allowing sub-second intervals. Provides string conversion for sys::Duration, allowing intervals to be expressed like this: 10.5 - value in seconds, backward compatible. 10.5s - value in seconds 10.5ms - value in milliseconds 10.5us - value in microseconds 10.5ns - value in nanoseconds Converted the folllowing broker options to Duration: mgmtPubInterval, queueCleanInterval, linkMaintenanceInterval, linkHeartbeatInterval Did not convert: maxNegotiateTime. This is expressed in milliseconds so it would not be backward compatible to make it a Duration. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1469661 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix sporadic federation test_pull_from_queue_recovery test failuresKenneth Anthony Giusti2013-04-171-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1469045 13f79535-47bb-0310-9956-ffa450edef68