summaryrefslogtreecommitdiff
path: root/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug in cluster with authentication: nodes exit with "unauthorized-access"Alan Conway2010-07-201-0/+13
| | | | | | | | | | Adding a node to a cluster on which authentication is enabled and on which there are existing connections authenticated with mechanisms other than anonymous, may result in nodes exiting the cluster with inconsistent authorisation errors. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@965979 13f79535-47bb-0310-9956-ffa450edef68
* Fix unreferenced local variable warningStephen D. Huston2010-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964624 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2734: Tighter control over sasl related test; now passes when ↵Gordon Sim2010-07-152-1/+14
| | | | | | cyrus-sasl not in use. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964571 13f79535-47bb-0310-9956-ffa450edef68
* QMF: add api to get agent id, and new object id constructor that uses agent id.Kenneth Anthony Giusti2010-07-081-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961919 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Don't hold lock while waiting for incoming message in ↵Gordon Sim2010-07-061-0/+37
| | | | | | nextReceiver() call. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960951 13f79535-47bb-0310-9956-ffa450edef68
* Fix link error on fedora 13Alan Conway2010-07-061-3/+1
| | | | | | Removed duplicate .o files linked with cluster_test executable. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960894 13f79535-47bb-0310-9956-ffa450edef68
* Defer delivery of messages in cluster-unsafe context.Alan Conway2010-07-051-1/+15
| | | | | | | | | | | | | | | Messages enqueued in a cluster-safe context are synchronized across the cluster. However some messages are delivered in a cluster-unsafe context, for example raising a link established event occurs the connection thread of the establishing connection. This fix deferrs such messages by multicasting them so they can be re-delived in a cluster safe context. See https://bugzilla.redhat.com/show_bug.cgi?id=611543 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960681 13f79535-47bb-0310-9956-ffa450edef68
* Fix spordic failure in cluster_test testConnectionKnownHosts.Alan Conway2010-07-011-1/+1
| | | | | | | | | | Very occasional failure of the form: cluster_test.cpp(547): error in "testConnectionKnownHosts": check kb0 == kb2 failed [42179 57640 != 44199 57640 ] ]) Fix is to avoid using possibly out-of-date initial-brokers data from the connection. Only rely on updates received from the amq.failover exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959751 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Translate exceptions to correct type when occuring on creating new ↵Gordon Sim2010-07-011-0/+8
| | | | | | session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959721 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: expose authenticated username for connectionGordon Sim2010-06-301-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959461 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: corrected option name for setting subscribe options on a queueGordon Sim2010-06-301-0/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959451 13f79535-47bb-0310-9956-ffa450edef68
* Move all shared lib prefix/postfix/suffix settings from tests/CMakeLists.txt ↵Stephen D. Huston2010-06-292-13/+6
| | | | | | to config.h (revises the plan implemented at r770001). Also sets separate macros for MODULE and SHLIB. Fixes QPID-2707. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959067 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2698: recognise special property names for amqp 0-10 specific message- ↵Gordon Sim2010-06-252-0/+50
| | | | | | and delivery- properties git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@958044 13f79535-47bb-0310-9956-ffa450edef68
* Fix test bug causing occasional failure of cluster_test.Alan Conway2010-06-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957639 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2691: ensure ttl adjustment uses correct expiration on cloned messageGordon Sim2010-06-241-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957511 13f79535-47bb-0310-9956-ffa450edef68
* Make verify_cluster_objects more informative.Alan Conway2010-06-231-9/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957363 13f79535-47bb-0310-9956-ffa450edef68
* Make management+cluster test more aggressive.Alan Conway2010-06-232-12/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957337 13f79535-47bb-0310-9956-ffa450edef68
* Changed README to README.txt throughout the project for consistency. Removed ↵Jonathan Robie2010-06-231-0/+0
| | | | | | gentools/README.txt, which described Velocity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957201 13f79535-47bb-0310-9956-ffa450edef68
* small clean up: Remove use of obsolete Dispatcher class.Andrew Stitcher2010-06-231-8/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957110 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2388: Do not unmask signals whilst waiting for IO to happenAndrew Stitcher2010-06-231-6/+2
| | | | | | | - The client and common libraries do not use signals at all so there is no real reason to allow signal handling on IO threads. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957109 13f79535-47bb-0310-9956-ffa450edef68
* Fix cluster broker crashes when management is active.Alan Conway2010-06-223-384/+76
| | | | | | | | | | | | Cluser brokers were exiting with errors "modified cluster state outside cluster context" and "confirmed < (50+0) but only sent < (49+0)" Fix was to: - delay completion of incoming update till update connection closes. - delay addding new connections to managment until connection is announced. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@956882 13f79535-47bb-0310-9956-ffa450edef68
* Bug 603835 - cluster_tests.test_management failing.Alan Conway2010-06-161-4/+5
| | | | | | | | | | | Clean up connections causing extra connection objects in the mangement agent map. - update connection was not being closed. - connections belonging to members that left the cluster were not fully cleaned up Also fixed test errors making failover_soak fail sporadically. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@955370 13f79535-47bb-0310-9956-ffa450edef68
* Added qpid-cpp-benchmark to EXTRA_DIST.Alan Conway2010-06-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954613 13f79535-47bb-0310-9956-ffa450edef68
* Rename tests qpid_* to qpid-* for consistency.Alan Conway2010-06-148-47/+42
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954471 13f79535-47bb-0310-9956-ffa450edef68
* Fix ordering problem with of dependencies of make check.Alan Conway2010-06-111-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953839 13f79535-47bb-0310-9956-ffa450edef68
* Improved qpid_ping - use heartbeat to interrupt connection.Alan Conway2010-06-101-63/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953454 13f79535-47bb-0310-9956-ffa450edef68
* Extended tests for cluster and security.Alan Conway2010-06-101-3/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953453 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Correct the name of the subject string used for incoming messages.Gordon Sim2010-06-101-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953321 13f79535-47bb-0310-9956-ffa450edef68
* Fix cluster-safe assertion in connection negotiation.Alan Conway2010-06-091-2/+4
| | | | | | | | See https://bugzilla.redhat.com/show_bug.cgi?id=602347. In a cluster, raise the management connect event when processing cluster.announce. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953147 13f79535-47bb-0310-9956-ffa450edef68
* Cluster handle connection-negotiation phase in local broker.Alan Conway2010-06-081-4/+4
| | | | | | | | | | | | | | | | | The connection negotiation phase up to the "open" or "open-ok" frame establishes whether/what encryption to use for the rest of the connection. With this patch a cluster broker completes the initial negotiation with its local clients and only then begins multicasting to other brokers. The local broker decrypts if necessary and multicasts in the clear. This replaces a problematic locking scheme that was formerly in place which caused deadlocks. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952692 13f79535-47bb-0310-9956-ffa450edef68
* Fix error string for invalid options, fix exception handling in ↵Alan Conway2010-06-022-16/+18
| | | | | | qpid_send/qpid_receive. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950763 13f79535-47bb-0310-9956-ffa450edef68
* Correct reference to test exeStephen D. Huston2010-06-021-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950556 13f79535-47bb-0310-9956-ffa450edef68
* Change verbosity back to 0. Oops.Michael Goulish2010-06-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950175 13f79535-47bb-0310-9956-ffa450edef68
* Source cluster environment checks in run_cluster_authentication_test/_soak.Alan Conway2010-06-012-2/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950129 13f79535-47bb-0310-9956-ffa450edef68
* Fix memory error in failover_soak.cpp.Alan Conway2010-06-011-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950126 13f79535-47bb-0310-9956-ffa450edef68
* Fixed conflicting clean-local targets, causing make distcheck to fail.Alan Conway2010-05-282-3/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@949231 13f79535-47bb-0310-9956-ffa450edef68
* Fix make distcheck: clean sasl_config test files.Alan Conway2010-05-281-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@949201 13f79535-47bb-0310-9956-ffa450edef68
* Add missing sasl_test_setup.sh to EXTRA_DISTAlan Conway2010-05-281-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@949191 13f79535-47bb-0310-9956-ffa450edef68
* Allow tests that load shareable libs to work on Windows with a debug build. ↵Stephen D. Huston2010-05-282-5/+9
| | | | | | Those libs have a 'd' appended to their name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@949181 13f79535-47bb-0310-9956-ffa450edef68
* Fixed: authentication with bad credentials causes cluster broker to exit.Alan Conway2010-05-273-2/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@948969 13f79535-47bb-0310-9956-ffa450edef68
* Fix problems with cluster_authentication_soak test in VPATH build.Alan Conway2010-05-277-89/+65
| | | | | | | | | - Fix SASL version testing logic in cluster_authentication_soak and SaslAuthenticator - Generate all SASL config in the build directory in sasl_test_setup.sh - Compile cluster_authentication_soak only if SASL is available. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@948968 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2631: For blocking Bounds::expand() calls, only increase the current ↵Gordon Sim2010-05-271-0/+2
| | | | | | count when there is space. In SessionImpl::send() expand bounds before queueing frame. Expand bounds for all frames sent (including connection frames and cluster specific frames). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@948936 13f79535-47bb-0310-9956-ffa450edef68
* Removed sasl test db creation from the Makefile logic, and simply put it ↵Michael Goulish2010-05-252-0/+24
| | | | | | into the test scripts where it is used. When mixed in with Makefiles, it was breaking make targets like "install". git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947994 13f79535-47bb-0310-9956-ffa450edef68
* Disable new sasl testing if SASL version is less than 2.1.22.Michael Goulish2010-05-241-0/+5
| | | | | | | Earlier version do not have SASL_PATH_TYPE_CONFIG, which this testing requires. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947850 13f79535-47bb-0310-9956-ffa450edef68
* Jira QPID-2617 -- make sasl-based tests config files relocatableMichael Goulish2010-05-247-33/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, sasl-based testing cannot be fully automated because the sasl db must be located in the standard installation location of /etc/sasl2. * Created a new directory "sasl_config" under cpp/src/tests * added a new makefile fragment "sasl.mk" to cpp/src/Makefile.am conditionally included basedon HAVE_SASL, which is defined by configure. ( NOTE: should be in cpp/src/tests/Makefile.am, but getting an "saslpasswd2: generic failure" when I try that. ) * The sasl.mk fragment uses saslpasswd2 to create a sasl db in cpp/src/tests/sasl_config that defines two users with eponymous passwords. * In test cluster_authentication_soak.cpp, make the cluster name random. * make SaslAuthenticator code accept and use a config path * give cluster_authentication_soak self-test capability. the test is meant to detect two problems: - broker failure - perftest hang so give it flags that will force either of those conditions. This allows me to (anually) ensure that the test really does detect those conditions when they occur. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947748 13f79535-47bb-0310-9956-ffa450edef68
* Changed the names of tests which are installed in /usr/bin/ to be prefixed ↵Kim van der Riet2010-05-2415-90/+90
| | | | | | with "qpid-". This will make these generic names easier to associate with qpid. (BZ577353) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947678 13f79535-47bb-0310-9956-ffa450edef68
* Fix the behaviour of the EpollPoller when shutdowns and interrupts interactAndrew Stitcher2010-05-181-14/+50
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945899 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2612: remove qpidtypes lib as it causes problems on windowsGordon Sim2010-05-181-2/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945642 13f79535-47bb-0310-9956-ffa450edef68
* Added support for user/pass@ syntax in Url.Alan Conway2010-05-171-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945211 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2588: Prevent queue being destroyed while still in use.Gordon Sim2010-05-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944683 13f79535-47bb-0310-9956-ffa450edef68