summaryrefslogtreecommitdiff
path: root/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix errors when new API Receiver is closed while in use.Alan Conway2010-05-141-9/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944461 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: separate out the messaging API into its own libraryGordon Sim2010-05-142-9/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944357 13f79535-47bb-0310-9956-ffa450edef68
* Skip cluster part of ssl_test if cluster not enabled.Alan Conway2010-05-141-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944356 13f79535-47bb-0310-9956-ffa450edef68
* Removed references to non-existent test run_cluster_authentication_soakAlan Conway2010-05-141-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944288 13f79535-47bb-0310-9956-ffa450edef68
* Initial multi-thread unit test for messaging API.Alan Conway2010-05-143-3/+104
| | | | | | | - added Receiver::isClosed() to test for local close. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944261 13f79535-47bb-0310-9956-ffa450edef68
* Move helper classes/functions from MessagingSessionTests.cpp to ↵Alan Conway2010-05-142-170/+216
| | | | | | MessagingFixture.h for sharing with other tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944260 13f79535-47bb-0310-9956-ffa450edef68
* Cluster + SecurityMichael Goulish2010-05-145-3/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------------- * initial observation of a problem was a 2% failure rate in perftests of 20,000 messages against a cluster with security enabled. Problem was occasional receit of encrypted frames before the security codec had been enabled. This is fixed with locking in cluster code (no new locks in broker code) and a callback that is fired by broker::ConnectionHandler::Handler to tell the cluster code when the opening handshake has finished. This was never a problem in the non-clustered broker before because everything happened in a single thread. * the brokers that "shadow" the connection must not have null authenticators rather than real ones, so that they go through all the motions but don't do anythig. Only the directly-connected broker can perform the security handshake. * once the directly-connected broker receives the real user ID from its callback, it mcasts that ID to all other brokers. Otherwise the shadowing brokers will al think that the user ID is "anonymous". Check this by doing a substantial perftest, and using qpid-stat -c localhost:PORT to confirm that the brokers all have the same userID for the same connection. * the user ID, negotiated during the Sasl security startup, is communicated from the directly connected broker to all other cluster brokers. * If security is *not* being used, then this code should *not* tell the brokers anything about the userID -- or it will step on the value that is being set by other code pathways. * test program at cpp/src/tests/cluster_authentication_soak is not yet fully automated -- run it with something like "sudo ./cluster_authentication_soak 500" git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944158 13f79535-47bb-0310-9956-ffa450edef68
* Moved FailoverUpdates to qpid::messaging namespace.Alan Conway2010-05-132-5/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943975 13f79535-47bb-0310-9956-ffa450edef68
* New API clients failover in a cluster with SSL connections.Alan Conway2010-05-132-19/+41
| | | | | | | | - Fix setting of reconnect URLs on messaging::Connection. - Added SSL failover test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943974 13f79535-47bb-0310-9956-ffa450edef68
* Added a few more test cases for acl file format.Rajith Muditha Attapattu2010-05-121-3/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943624 13f79535-47bb-0310-9956-ffa450edef68
* Delay generating URL in cluster till global constructors to handle ↵Alan Conway2010-05-121-1/+1
| | | | | | multi-protocol URLs. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943488 13f79535-47bb-0310-9956-ffa450edef68
* This commit contains a fix for QPID-2600Rajith Muditha Attapattu2010-05-121-34/+24
| | | | | | | | | | Added a test case to check if all allowed chars are accepted and the rest is rejected. Added a check for empty continuation lines. Improved error reporting by adding a line number. Removed test_allowed_chars_for_username method from acl.py as the check for group name will flag the "@" char, making this test case redundent. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943351 13f79535-47bb-0310-9956-ffa450edef68
* Support for multiple protocols in qpid::Url.Alan Conway2010-05-114-19/+24
| | | | | | | | | | - simplified qpid::Address to hold (protocol,host,port) triples. - protocol plugins call Url:addProtocol to add tags to Url parser. - use Address::protocol when establishing connections. - ssl_test: tests using URL to connect. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943130 13f79535-47bb-0310-9956-ffa450edef68
* Skip cluster_python_tests if cluster services are not running.Alan Conway2010-05-071-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942141 13f79535-47bb-0310-9956-ffa450edef68
* Correct brokertest.retry logic.Alan Conway2010-05-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941852 13f79535-47bb-0310-9956-ffa450edef68
* Use UnauthorizedAccessException for ACL violations rather than ↵Gordon Sim2010-05-062-78/+78
| | | | | | NotAllowedException git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941636 13f79535-47bb-0310-9956-ffa450edef68
* QMF: remove v1 method test from cluster testbed - clusters no longer support ↵Kenneth Anthony Giusti2010-04-291-0/+1
| | | | | | v1-style method calls. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@939502 13f79535-47bb-0310-9956-ffa450edef68
* Fix PYTHONPATH to pick federation from the tests source dir.Stephen D. Huston2010-04-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@939078 13f79535-47bb-0310-9956-ffa450edef68
* Fix path to broker exe so it can be stopped when needed.Stephen D. Huston2010-04-281-5/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@939077 13f79535-47bb-0310-9956-ffa450edef68
* Cluster management improvements:Ted Ross2010-04-231-5/+5
| | | | | | | | | | | 1) Enable all management methods via QMFv2 for clusters 2) Disable all management methods via QMFv1 for clusters 3) The broker-resident management agent can handle both v1 and v2 method calls 4) qmf.console (Python) now works with new and old brokers by detecting whether the broker can handle v2 commands git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937472 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1904: File mised in previous checkinAndrew Stitcher2010-04-231-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937163 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1904: Ensure that all timestamp uses are correctly relative to 1/1/1970 ↵Andrew Stitcher2010-04-232-3/+3
| | | | | | | | | | epoch. - Removed the hacky way to access the internal time value in AbsTime now that there is a defined AbsTime value EPOCH. - Changed all the code to use Duration(EPOCH, abtime) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937147 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug in disabling sequence number and timestamp.Alan Conway2010-04-221-5/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936974 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2527: Remove Thread::id member as its uses are better implemented by ↵Andrew Stitcher2010-04-212-2/+2
| | | | | | | | comparison operators. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936537 13f79535-47bb-0310-9956-ffa450edef68
* Add QMF_LIB to PYTHONPATH to pick up qmf.consoleStephen D. Huston2010-04-211-3/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936520 13f79535-47bb-0310-9956-ffa450edef68
* Add QMF_LIB to PYTHONPATH to pick up qmf.consoleStephen D. Huston2010-04-213-3/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936519 13f79535-47bb-0310-9956-ffa450edef68
* qpid_send: make serialno & timestamp optional.Alan Conway2010-04-212-9/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936338 13f79535-47bb-0310-9956-ffa450edef68
* Consistent use of string constants for message property keys in ↵Alan Conway2010-04-218-12/+21
| | | | | | sender/receiver tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936337 13f79535-47bb-0310-9956-ffa450edef68
* Count latency samples, don't assume all messages are latency samples.Alan Conway2010-04-212-4/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936336 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2487: remove call to reversed() - not in pre2.4 python, increased bind ↵Kenneth Anthony Giusti2010-04-201-9/+9
| | | | | | timeouts git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935787 13f79535-47bb-0310-9956-ffa450edef68
* Port of the ACL tests script to Windows Powershell.Stephen D. Huston2010-04-191-0/+98
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935730 13f79535-47bb-0310-9956-ffa450edef68
* Add store test executions if building the store module. Add trigger on ↵Stephen D. Huston2010-04-192-0/+104
| | | | | | messageMap table deletes to remove orphaned messages from message table; part of QPID-2420. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935710 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2487: add wait for new exchange to appear in qmfKenneth Anthony Giusti2010-04-191-22/+48
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935669 13f79535-47bb-0310-9956-ffa450edef68
* Add missing Statistics.cpp to sender test's sourcesStephen D. Huston2010-04-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935600 13f79535-47bb-0310-9956-ffa450edef68