summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4984: WIP - Merge from trunk r.1534626.linearstoreKim van der Riet2013-10-221-2/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/linearstore@1534627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4984: WIP - Merge from trunk r.1534385.Kim van der Riet2013-10-2181-273/+12963
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/linearstore@1534394 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4984: WIP - Compiles, but functionally incompleteKim van der Riet2013-10-071-0/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/linearstore@1530024 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4984: WIP - Merge from trunk r.1525056Kim van der Riet2013-09-2043-1302/+1086
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/linearstore@1525101 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4976: support standard lifetime policiesGordon Sim2013-07-101-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1501768 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4944: HA skip test test_failover_send_receive till fixed.Alan Conway2013-07-091-1/+3
| | | | | | | This test is still failing very occasionally (approx 1 in 5000 runs) It is being disabled to cut down on noise in automated builds untill the problem is fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1501259 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA Changed output directory for ha_tests.py to avoid other testsc ↵Alan Conway2013-07-051-2/+5
| | | | | | overwriting. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1500085 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4944: HA Sporadic failure: test_failover_send_receiveAlan Conway2013-07-042-7/+6
| | | | | | | | | | | | | | | | | Test failing if run as: ha_tests.py -DDURATION=2 AssertionError: Stalled test0 waiting for 248, sent 1228 The problem was a missing call to notify() when a ReplicatingSubscription skipped a message. That resulted in very long (>1s) delays between skipped messages which caused the test to time out. Changes: - ReplicatingSubscription::deliver call notify() to keep consumer active. - Re-enable test_failover_send_receive. - Increase default credit for replicating subscription to match qpid-send. - Rename ReplicatingSubscription::unacked as unready, clearer meaning. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1499789 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4944: HA Sporadic failure - logging improvements used to investigate.Alan Conway2013-07-042-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1499788 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4969: C++ Broker headers exchange allows creation of bindings Charles E. Rolke2013-07-011-1/+1
| | | | | | | | | | | with duplicate keys Patch from Gordon Sim to correct issues in initial fix. Now successive bind requests are accepted when the key, queue, and exchange are identical if and only if all of the binding args are also identical. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1498671 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4961: Fix make distcheck problems with qpidd-p0 script.Alan Conway2013-06-271-9/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1497549 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4944: HA skip test test_failover_send_receive till fixed.Alan Conway2013-06-271-1/+3
| | | | | | | This test has been failing sporadically for some time, it is being disabled to cut down on noise in automated builds untill the problem is fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1497477 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: restrict broker to listen only on loopback interface (ensures they ↵Gordon Sim2013-06-273-4/+4
| | | | | | are listening on the right interface when port is 0) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1497339 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4953: recognise temp queue shorthand in 0-10 codepathGordon Sim2013-06-261-1/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1496985 13f79535-47bb-0310-9956-ffa450edef68
* 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