summaryrefslogtreecommitdiff
path: root/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-664: Prevent dangling pointers when receiver/sender handles stay in ↵Gordon Sim2010-03-193-3/+6
| | | | | | scope after connection/session handles goes out of scope. This change require connections to be closed explicitly to avoid leaking memory. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@925332 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2452: Fixed control over the encoding used when sending a string valued ↵Gordon Sim2010-03-182-0/+25
| | | | | | variant. The user is currently responsible for correctly setting any encoding (e.g. utf8). If none is specified it will be transfered as an amqp0-10 vbin. Fixed bug preventing correct assignment of encoding in variants. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@924939 13f79535-47bb-0310-9956-ffa450edef68
* Work-around for race condition in the IO layer.Alan Conway2010-03-151-2/+2
| | | | | | | | | | | | Added a 100ms sleep in UpdateClient between calling Connection::close() and destroying the Connection object. This appears to work around the race condition described in https://bugzilla.redhat.com/show_bug.cgi?id=568831. which was causing brokers to seg fault sporadically at the end of giving an update. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@923414 13f79535-47bb-0310-9956-ffa450edef68
* New cluster member pushes store when joining an active cluster.Alan Conway2010-03-122-29/+57
| | | | | | | | | | | | | | | | | | | Previously a broker with a clean store would not be able to join an active cluster because the shtudown-id did not match. This commit ensures that when a broker joins an active cluster, it always pushes its store regardless of status. Clean/dirty status is only compared when forming an initial cluster. This change required splitting initialization into two phases: PRE_INIT: occurs in the Cluster ctor during early-initialize. This phase determines whether or not to push the store. INIT: occurs after Cluster::initialize and does the remaining initialization chores. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@922412 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2382: Created separate utility class for handling updates from failover ↵Gordon Sim2010-03-113-13/+40
| | | | | | exchange; cleaned up reconnection options git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@921971 13f79535-47bb-0310-9956-ffa450edef68
* Remove non-existent directory from PATH.Alan Conway2010-03-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@921517 13f79535-47bb-0310-9956-ffa450edef68
* Fix build dependency problem with tests/testagent.Alan Conway2010-03-091-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@921079 13f79535-47bb-0310-9956-ffa450edef68
* Remove tests/testagent sub-directory, build testagent in the tests directory.Alan Conway2010-03-095-55/+52
| | | | | | | Resolves build-order issues, more consistent with the rest of the test builds. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@920991 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2436: Fix cluster update of remote agents.Alan Conway2010-03-084-13/+20
| | | | | | | | | The v2key of cluster agents was not being passed as part of a cluster update. This meant they were not being associated with the correct shadow connections on the updatee. This caused inconsistencies that shut down the new broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@920414 13f79535-47bb-0310-9956-ffa450edef68
* Minor cleanup: removed unused parameter of initial-status in cluster.xml.Alan Conway2010-03-051-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@919662 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2434: add timestamp files to CLEANFILES listKenneth Anthony Giusti2010-03-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@919518 13f79535-47bb-0310-9956-ffa450edef68
* Fix to run topictest correctly on Windows.Stephen D. Huston2010-03-052-10/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@919240 13f79535-47bb-0310-9956-ffa450edef68
* Added testagent/schema.xml to EXTRA_DIST, was causing make distcheck to fail.Alan Conway2010-03-041-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918986 13f79535-47bb-0310-9956-ffa450edef68
* Increase test_watchdog interval to avoid spurious test failures.Alan Conway2010-03-031-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918708 13f79535-47bb-0310-9956-ffa450edef68
* Extended cluster_tests.test_management exposes a bug.Alan Conway2010-03-032-23/+75
| | | | | | | | | - kill and start brokers with clients running. - added qpid-stat -b and testagent clients - disabled in src/tests/cluster_tests.fail till bug is fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918674 13f79535-47bb-0310-9956-ffa450edef68
* Added tests/testagent, a simple QMF agent for use in tests.Alan Conway2010-03-034-0/+322
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918673 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2402 & QPID-2406: Documented the units for the ttl property of Message. ↵Gordon Sim2010-03-033-32/+27
| | | | | | Eliminated use of qpid::sys::Duration from API. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918575 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2427: Align browsing option with approach used in python clientGordon Sim2010-03-031-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918574 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2423 - Add Constructors to set initial value of content for MapContent ↵Ted Ross2010-02-261-0/+53
| | | | | | and ListContent git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916803 13f79535-47bb-0310-9956-ffa450edef68
* Last member of a cluster always has clean store.Alan Conway2010-02-251-14/+40
| | | | | | | | | | When a cluster is reduced to a single broker, it marks its store as clean regardless of how it is shut down. If we're down to a single member we know we want to use its store to recover as there are no others. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916475 13f79535-47bb-0310-9956-ffa450edef68
* Configure boost tests to create core dumps.Alan Conway2010-02-252-1/+3
| | | | | | | By default they don't, added BOOST_TEST_CATCH_SYSTEM_ERRORS=no to test_env.sh git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916474 13f79535-47bb-0310-9956-ffa450edef68
* Minor improvements to verify_cluster_objects.Alan Conway2010-02-251-13/+21
| | | | | | | Cached IDs, runs about 3x faster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916473 13f79535-47bb-0310-9956-ffa450edef68
* Removed unecessary include of Msg.h in Exception.hAndrew Stitcher2010-02-251-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916453 13f79535-47bb-0310-9956-ffa450edef68
* Failover_soak was not detecting child exits properly, and soMichael Goulish2010-02-242-82/+81
| | | | | | | | | | | | | | | | | | was not terminating when the sending and receiving clients had both exited. Also, the killing of a broker on every loop was excessive and caused test-generated problems that are not meaningful. I have changed the way the failover_soak process detects child exits, and made it only kill brokers about once every twenty times trhough its main loop. ( Using a random number to decide when to do it. ) This still results in a good number of broker-kills during a 500,000 message test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@915673 13f79535-47bb-0310-9956-ffa450edef68
* Use qpid::sys::usleep() instead of usleep(). Resolves QPID-2408.Stephen D. Huston2010-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@910567 13f79535-47bb-0310-9956-ffa450edef68
* update exclude file to match new test package nameRafael H. Schloming2010-02-161-31/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@910500 13f79535-47bb-0310-9956-ffa450edef68
* Added handling for adjusting TTL on outgoing message based on how long a ↵Kim van der Riet2010-02-151-0/+30
| | | | | | message has been on the queue. Added a new TTL test as ClientSessionTest.testTtl. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@910289 13f79535-47bb-0310-9956-ffa450edef68
* more futzing with setup.py; pulled specs into python/qpid packageRafael H. Schloming2010-02-151-6/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@910165 13f79535-47bb-0310-9956-ffa450edef68
* use python/setup.py instead of python/MakefileRafael H. Schloming2010-02-151-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@910159 13f79535-47bb-0310-9956-ffa450edef68
* moved qpid-* tools out of qpid/python into qpid/tools; moved qmf library ↵Rafael H. Schloming2010-02-142-3/+5
| | | | | | into extras/qmf git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@910016 13f79535-47bb-0310-9956-ffa450edef68
* I have added the license header to the files included in this commit.Rajith Muditha Attapattu2010-02-127-0/+140
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@909641 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2029 - Added verification script contributed by John DunningTed Ross2010-02-051-0/+400
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@907119 13f79535-47bb-0310-9956-ffa450edef68
* Add Windows Powershell scripts needed for test suite to run on Windows to ↵Stephen D. Huston2010-02-051-4/+14
| | | | | | EXTRA_DIST so they get included in releases. Resolves QPID-2392. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@907101 13f79535-47bb-0310-9956-ffa450edef68
* moved protocol tests from qpid/python to qpid/testsRafael H. Schloming2010-02-053-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906961 13f79535-47bb-0310-9956-ffa450edef68
* specify PLAIN so that sasl negotiation can't end up using ANONYMOUSRafael H. Schloming2010-02-051-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906959 13f79535-47bb-0310-9956-ffa450edef68
* Cluster: fix update of failover exchange.Alan Conway2010-02-021-1/+1
| | | | | | | During update the cluster was sending an extra update to the failover exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@905676 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2380: recognise reliability option for sender (also added capacity to ↵Gordon Sim2010-02-021-0/+4
| | | | | | qpid_send test client and fixed handling of empty option string) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@905579 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2348 - [C++] The HeadersExchange does not support federationTed Ross2010-02-013-0/+301
| | | | | | | Applied patch from Sam Joyce git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@905322 13f79535-47bb-0310-9956-ffa450edef68
* test_enf.sh: Added missing directories to PATHAlan Conway2010-01-291-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904565 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2374: Null authenticator now checks for SSL if --encryption-required ↵Kenneth Anthony Giusti2010-01-281-1/+1
| | | | | | specified git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904293 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: change format of connection options string to match address ↵Gordon Sim2010-01-284-13/+17
| | | | | | options; make open() a non-static method. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904000 13f79535-47bb-0310-9956-ffa450edef68
* Test for management + cluster: run management tools in parallel with regular ↵Alan Conway2010-01-272-5/+70
| | | | | | | | | | clients. cluster_tests.py: added LongTests.test_management brokertest.py: optionally drain test process output to *.out/*.err files. On by default. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903868 13f79535-47bb-0310-9956-ffa450edef68
* Locate an executable's path correctly and set up in PATH properly. Catch up ↵Stephen D. Huston2010-01-272-9/+6
| | | | | | run_federation_tests.ps1 to match latest run_federation_test script. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903851 13f79535-47bb-0310-9956-ffa450edef68
* Fix cluster elder calculation to ensure unique elder.Alan Conway2010-01-271-17/+21
| | | | | | | | Race condition in the previous algorithm allowed several cluster members to consider themselves the elder. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903826 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: change cancel() to close() for consistencyGordon Sim2010-01-271-18/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903599 13f79535-47bb-0310-9956-ffa450edef68
* Explicitly ignore SIGCHLD signal by sending it to an empty function so thatAndrew Stitcher2010-01-251-0/+17
| | | | | | the boost_unit_test framework doesn't catch the signal when child processes exit git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903008 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2347: Signal deletion of queue to active subscribers via a ↵Gordon Sim2010-01-222-0/+14
| | | | | | resource-deleted exception. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@902055 13f79535-47bb-0310-9956-ffa450edef68
* Provide access to a sessions connection.Gordon Sim2010-01-201-0/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901247 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: added support for testing transactions to qpid-send and qpid-recv, ↵Gordon Sim2010-01-202-26/+61
| | | | | | fixed bug in rollback. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901153 13f79535-47bb-0310-9956-ffa450edef68
* Fix intermittent test error: cluster_test.cpp(1108): error in "testRelease": ↵Alan Conway2010-01-191-0/+1
| | | | | | | | | | | | | | | | check browse(c3, "q", 5) == expected failed [ != m_1 m_2 m_3 m_4 m_5 ] This was a test issue, not a broker issue. What seems to have been happening: - start broker b0 & send messages. - fork broker b1 - line 1103 (lqSub.release(...)); executes against b0 _before_ b1 connects for update lqSub.release(lqSub.getUnaccepted()); - line 1108 browse() executes during the update. - update takes > 0.5 secs for some reason, browse times out. The fix is a synchronous flush in browse() which will wait for the broker to be responsive before trying to get the messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900829 13f79535-47bb-0310-9956-ffa450edef68