summaryrefslogtreecommitdiff
path: root/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* NO-JIRA - Removed tabs from sourceTed Ross2011-10-141-24/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1183453 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3540 Typecasting and alignment requirements for various platformsCharles E. Rolke2011-10-141-1/+3
| | | | | | | | | | | | | In RefCountedBuffer: 1. Pad the instantiantion address of RefCountedBuffer class up to an 8-byte boundary. 2. Add (void *) casts to 'store' pointer to prevent warnings about alignment. In qpid-perftest: 1. Don't pull a size_t object from an arbitrary buffer address. Instead, memcopy the object by bytes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1183378 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3528Michael Goulish2011-10-132-2/+221
| | | | | | | | | | | | sasl_set_path() does no check on the given directory, so when you get bad behavior later it can be hard to track down. Especially bad is its policy of defaulting to an alternate standard location if yours fails. That's a potential security bug. So this patch checks that your dir exists, and is readable, before calling sasl_set_path(). Either you get the sasl config dir you were expecting, git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1183121 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3417: C++ broker - support adding arrival timestamp to received messages.Kenneth Anthony Giusti2011-10-124-2/+146
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1182490 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3544: ACL denials while replicating exclusive queues to a newly joined ↵Alan Conway2011-10-121-5/+8
| | | | | | | | node. Disabled ACL during cluster update process. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1182451 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove un-used and incorrect tests from cluster_tests.pyAlan Conway2011-10-121-86/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1182450 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3522: Distinguish between null and empty string for sasl responseGordon Sim2011-10-121-4/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1182212 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3346: move message group feature into trunk.Kenneth Anthony Giusti2011-10-078-27/+1224
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1180050 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3508: Ensure subscription queue is deleted on closing receiver (unless ↵Gordon Sim2011-09-271-0/+18
| | | | | | it has explicitly been configured non-exclusive) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1176363 13f79535-47bb-0310-9956-ffa450edef68
* NO_JIRA - fix PYTHONPATH to pick up qmf and enable to store recovery tests ↵Stephen D. Huston2011-09-171-1/+1
| | | | | | to run. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1172143 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3484 - QMF Main-Loop IntegrationTed Ross2011-09-131-1/+103
| | | | | | | Applied patch from Darryl Pierce. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1170314 13f79535-47bb-0310-9956-ffa450edef68
* Bug 730017, QPID-3475: Cluster authentication ignores cluster-* settings.Alan Conway2011-09-071-0/+115
| | | | | | | | | When a broker joins a cluster, it should be authenticated authenticate using the options --cluster-username, --cluster-password and --cluster-mechanism. The broker was ignoring the settings and joining the cluster even if an invalid user or password are supplied. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166279 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Restrict the allowed mechanisms, primarily to prevent GSSAPI being ↵Gordon Sim2011-09-071-0/+1
| | | | | | picked as it is most likely not configured correctly for these tests git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166176 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Get more information from failed assertionsGordon Sim2011-09-071-18/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166172 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix minor FIXME in brokertest.pyAlan Conway2011-09-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1164249 13f79535-47bb-0310-9956-ffa450edef68
* Bug 727182, QPID-3384 - Support DTX transactions - test for set-dtx-timeoutAlan Conway2011-09-011-5/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1164247 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3384: DTX transactions - additional transaction tests.Alan Conway2011-09-011-18/+30
| | | | | | - Update suspended & ended transactions. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1164246 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3384: DTX transactions - replicate suspended transactions.Alan Conway2011-08-302-33/+66
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163347 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3384: Enable DTX transactions in a cluster.Alan Conway2011-08-253-33/+203
| | | | | | | | - Replicate DTX state to new members joining. - Use cluster timer for DTX timeouts. - Incidental: quote nulls in qpid::Msg messages (XIDs often have null characters) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1161742 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix test failure if PORT is already set in the environment.Alan Conway2011-08-181-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1159324 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: eliminate SocketProxy from tests.Alan Conway2011-08-189-253/+28
| | | | | | | | | Was causing problems with changes to introduce IPv6. In most cases this was being used unnecessarilly due to cut-and-paste of tests. In the 2 cases it was useful, replaced by simply shutting down the broker to simulate network failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1159268 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3425: Special handling of reserved exchange names in auto-createGordon Sim2011-08-161-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1158370 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3405: Added simple C++ system tests for IPv6:Andrew Stitcher2011-08-123-1/+159
| | | | | | | | | - short perftest run which connects to ::1 (old client API) - qpid-send/qpid-receive sending messages between them (new messaging API) - Simple 2 broker federation over IPv6 test - Simple cluster failover via IPv6 test git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1157279 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3405: Implemented simple IPv6 literal parsing/printing for c++ ↵Andrew Stitcher2011-08-121-0/+26
| | | | | | connection URLs git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1157275 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3405: IPv6 support for Unix C++ ports:Andrew Stitcher2011-08-121-0/+1
| | | | | | | | | | | | - On the Listen side we create separate listening sockets for IPv4 and IPv6 making sure to not allow the IPv6 socket to run dual stack. This makes the reported IPv4 addresses look "normal" and would allow us to turn control IPv4/IPv6 listening separately. - On the connect side we make sure to try all the addresses returned by getaddrinfo() in order until we either find one that connects or have tried all of them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1157272 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fixed obsolete federation test to carry on workingAndrew Stitcher2011-08-091-14/+13
| | | | | | - probably should be removed instead git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1155572 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3363: prevent bind/unbind on default exchangeGordon Sim2011-08-091-281/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1155545 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2643 Building QPID with Visual Studio 2010Charles E. Rolke2011-08-042-5/+5
| | | | | | | | | | | | | | | | | | This patch changes: List.h - add a typedef from the original post IntegerTypes.h - adds 'signed' to int_8 to avoid MSVC complaint SessionState.cpp, qpid-perftest.cpp - adds explicit boost:: to disambiguate methods recently defined by 'using std'. CMakeLists.txt - Adds a CMake option that allows user to include '#define _WIN32_WINNT=0x0502' or not. Linux users see no change. This replaces CMake code that includes a similar definition when the build system _has VS2005 installed_. Even if the Generator is VS2010 the def was added because VS2005 is installed. This in not right. Without this definition several components define _WIN32_WINNT=0x0501 to target network and system api components. Those components will still work correctly with 0x0502. Defining _WIN32_WINNT=0x0501 across the board causes a build error in cpp\qpid\store that 0x0502 avoids. This patch will move the minimum required version of Windows from WinXP to WinXP-SP3. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1153993 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Minor improvements to test scripts.Alan Conway2011-08-022-2/+5
| | | | | | | | allhosts: added -X option for running X clients. qpid-cpp-benchmark: accept comma or space-separated lists for --client-host and --broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1153256 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3383: Changed to explicit credit management for control subscription in ↵Gordon Sim2011-08-011-2/+3
| | | | | | publishers to prevent incorrect allocation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152825 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3372: fixed comparison of desired and actual properties for exchangesGordon Sim2011-07-261-0/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1151154 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix trunk break, "except Exception as e" syntax is invalid in ↵Alan Conway2011-07-221-2/+2
| | | | | | python 2.4 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1149733 13f79535-47bb-0310-9956-ffa450edef68
* Corrected qpid-client-test's name when setting up the test script. NO-JIRAStephen D. Huston2011-07-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1149571 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3304: Patch from Gordon Sim plus tests which detect the condition being ↵Kim van der Riet2011-07-198-40/+2340
| | | | | | solved. Added a make check-long target to the Makefile in the cpp dir to make it easier to run the long tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1148503 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3352 - Federation bridge doesn't recover from session errorsTed Ross2011-07-122-1/+58
| | | | | | | Applied patch from Jason Dillaman git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1145706 13f79535-47bb-0310-9956-ffa450edef68
* JIRA 3337Michael Goulish2011-07-061-2/+2
| | | | | | | | | | | no more defaulting to guest/guest username/password qpidd.sasldb is no longer created -- users who want usernames and passwords in there must create it. but a local qpidd.sasldb is (before this change) being created for 'make check' testing. The etc/sasl2/qpidd.conf file now has an explicit mech list -- so we will no longer default to the system-list. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143536 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3330: Corrected handling of empty strings (using patch from Anthony ↵Gordon Sim2011-07-011-0/+11
| | | | | | Foglia) and added test case git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1141910 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3329: Configure C++ client connections to replace url-addresses rather ↵Alan Conway2011-06-302-9/+13
| | | | | | than merging new addresses with old git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1141493 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add reconnect-timeout to test clients to prevent client hangs.Alan Conway2011-06-272-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140179 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3129: cluster_tests.LongTests.test_failover hangsAlan Conway2011-06-202-5/+15
| | | | | | | | | Problem: the first broker in the cluster could be killed before the receiver was connected, so the receiver could not fail-over, it didn't have a failover update. Fix: wait for the first message to be received by the receiver before starting the broker-kill loop. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1137657 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3280: Performance problem with TTL messages.Alan Conway2011-06-153-7/+142
| | | | | | | | | | | | When sending a large number of messages with nonzero TTLs to a cluster, overall message throughput drops by around 20-30% compared to messages with TTL 0. The previous approach to TTL in the cluster is replaced with a simpler "cluster clock". Also QueueCleaner is executed in the cluster timer, and modified to be deterministic in a cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1136170 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix sporadic failures in cluster_tests.py test_management.Alan Conway2011-06-152-4/+8
| | | | | | | | Fix timing problems with broker shut down in this test. Kill all brokers in the test, rather than leaving the last 2 running to be cleaned up by the harness. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1136166 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3200: Add new method to session for cumulative acknowledgement upto ↵Gordon Sim2011-06-151-0/+40
| | | | | | (and including) a specified message git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1136003 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Increase join timeout in brokertest.py, was causing spurious failures.Alan Conway2011-06-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1135786 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed reconnect-timeout from tests, was causing spurious failures.Alan Conway2011-06-142-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1135768 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix bugs in test_failover test and the brokertest.py framework.Alan Conway2011-06-142-17/+30
| | | | | | | - brokertest.py was not reliably detecting failed processes. - test_failover was not setting the reconnect option on its connections. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1135722 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3284 - There was a fix missing in one of the test files.Ted Ross2011-06-131-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1135259 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3225: Allow exclusivity (for subscription queue and subscription ↵Gordon Sim2011-06-131-0/+32
| | | | | | itself) to be controlled through address properties. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1135165 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3298: don't include the internal federation related args in the biding ↵Gordon Sim2011-06-091-3/+10
| | | | | | for headers exchange git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1133942 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3284: Eliminated warnings from gcc 4.6 compilerAndrew Stitcher2011-06-071-2/+1
| | | | | | | | - Removed a bunch of variables set but not further used. - Rejigged some asserts which would now have unused vars if compiler -DNDEBUG git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1133166 13f79535-47bb-0310-9956-ffa450edef68