summaryrefslogtreecommitdiff
path: root/python/qpid/brokertest.py
Commit message (Collapse)AuthorAgeFilesLines
* Move brokertest.py from qpid/python to qpid/cpp.Alan Conway2011-01-211-699/+0
| | | | | | | | | | brokertest.py is a framework for tests using the C++ broker, so it belongs in the cpp tree rather than the python tree. It is installed to libexec/qpid/tests/ so it can be used from an installation of qpid cpp. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1061933 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2956: cluster broker exits with "error deliveryRecord no update message."Alan Conway2010-11-221-3/+3
| | | | | | | | | The following sequence of events was causing a broker joining the cluster to shutdown: - a client acquires or browses a message with TTL set. - the message expires. - a new broker joins before the client has acknowledged the message. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1037763 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2874 Clustered broker crashes in assertion in cluster/ExpiryPolicy.cppAlan Conway2010-11-181-0/+14
| | | | | | | | | | | | | | - Added missing lock to ExpiryPolicy - 1-N mapping for expiry ID to mapping when receiving an update. - Regression test. A fan-out message (sent to multiple queues e.g. by fanout or topic exchange) is a single message on multiple queues with a single expiry ID. During an update however each instance is sent as a separate message so we need to allow 1-N mapping of expiry ID to message during update. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1036589 13f79535-47bb-0310-9956-ffa450edef68
* Fix error in python tests: poll() takes exactly 1 argument (2 given)Alan Conway2010-11-121-2/+6
| | | | | | | Previous fix to a different problem on python 2.4 caused this problem on python 2.6. This fix has been verified to work for both. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1034421 13f79535-47bb-0310-9956-ffa450edef68
* Fix brokertest errors like: "poll() got an unexpected keyword argument ↵Alan Conway2010-11-081-2/+2
| | | | | | '_deadstate'" git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1032636 13f79535-47bb-0310-9956-ffa450edef68
* Adjust for Windows which can't do Popen w/ close_fds. Also, when tearDown ↵Stephen D. Huston2010-11-041-1/+5
| | | | | | runs, clear stopem so previously torn down processes don't throw confusing exceptions later. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1031315 13f79535-47bb-0310-9956-ffa450edef68
* Fix qpid/python/qpid/brokertest.py to get cluster tests working.Alan Conway2010-10-281-21/+19
| | | | | | Fixing issues introduced by r1028156. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1028308 13f79535-47bb-0310-9956-ffa450edef68
* Ported to work on Windows; uses subprocess, not popen3. Resolves QPID-2492.Stephen D. Huston2010-10-281-12/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1028156 13f79535-47bb-0310-9956-ffa450edef68
* Revert experimental cluster code, too close to 0.8 release.Alan Conway2010-10-271-15/+6
| | | | | | | | | Reverts revisions: r1023966 "Introduce broker::Cluster interface." r1024275 "Fix compile error: outline set/getCluster fucntions on Broker." r1027210 "New cluster: core framework and initial implementation of enqueue logic." git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1028055 13f79535-47bb-0310-9956-ffa450edef68
* New cluster: core framework and initial implementation of enqueue logic.Alan Conway2010-10-251-6/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1027210 13f79535-47bb-0310-9956-ffa450edef68
* Increase timeout waiting for brokers to be ready.Alan Conway2010-09-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@998965 13f79535-47bb-0310-9956-ffa450edef68
* Added broker wait timeout to broker test frameworkKim van der Riet2010-08-101-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@984058 13f79535-47bb-0310-9956-ffa450edef68
* Fix test race conditions causing cluster_tests.py:management_test to hang.Alan Conway2010-08-101-13/+13
| | | | | | | | Got rid of expect_fail, ignore exceptions in the caller. Avoid concurrent calls to _cleanup, call only from from wait/poll. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@984017 13f79535-47bb-0310-9956-ffa450edef68
* Fix race conditions in brokertest.py and cluster_tests.py.Alan Conway2010-08-041-6/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@982309 13f79535-47bb-0310-9956-ffa450edef68
* Remove prefix in broker logs for brokertest.py.Alan Conway2010-08-031-1/+1
| | | | | | | Prefix is redundant and makes it more difficult to compare logs with diff. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@982003 13f79535-47bb-0310-9956-ffa450edef68
* Fix error introduced in r963409 causing "AttributeError: Broker instance has ↵Alan Conway2010-07-131-1/+1
| | | | | | no attribute 'pid'" git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@963737 13f79535-47bb-0310-9956-ffa450edef68
* Fix test framework error causing "AttributeError: Popen instance has no ↵Alan Conway2010-07-121-2/+2
| | | | | | attribute '_clean'" git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@963409 13f79535-47bb-0310-9956-ffa450edef68
* Defer delivery of messages in cluster-unsafe context.Alan Conway2010-07-051-9/+7
| | | | | | | | | | | | | | | 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
* Make management+cluster test more aggressive.Alan Conway2010-06-231-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957337 13f79535-47bb-0310-9956-ffa450edef68
* Update for changes to names of qpid-send and qpid-receive.Alan Conway2010-06-141-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954558 13f79535-47bb-0310-9956-ffa450edef68
* brokertest.py: fix ready() test to create a session as well as a connection.Alan Conway2010-06-081-2/+6
| | | | | | | | The change in r952692 means that just creating a connection will return before a clustered broker is fully initialized. Creating a session will block till the broker is initialized. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952786 13f79535-47bb-0310-9956-ffa450edef68
* Fixed sporadic failure of cluster_tests.py sasl_testAlan Conway2010-06-041-3/+3
| | | | | | | - added missing initializer for cluster::Connection::inConnectionNegotiation - brokertest.py: fixed formatting of log excerpt in exceptions. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951452 13f79535-47bb-0310-9956-ffa450edef68
* Add tail of broker log to exception message when broker fails to start.Alan Conway2010-06-031-9/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951050 13f79535-47bb-0310-9956-ffa450edef68
* Fixed: authentication with bad credentials causes cluster broker to exit.Alan Conway2010-05-271-10/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@948969 13f79535-47bb-0310-9956-ffa450edef68
* Use new API clients qpid_send, qpid_receive instead of sender/receiver in ↵Alan Conway2010-05-171-5/+17
| | | | | | brokertests.py git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945385 13f79535-47bb-0310-9956-ffa450edef68
* Increase retry timeout, previous value was causing occasional invald test ↵Alan Conway2010-05-071-1/+1
| | | | | | failures. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942132 13f79535-47bb-0310-9956-ffa450edef68
* Correct brokertest.retry logic.Alan Conway2010-05-061-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941852 13f79535-47bb-0310-9956-ffa450edef68
* Fix race condition in store+cluster tests.Alan Conway2010-05-031-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@940573 13f79535-47bb-0310-9956-ffa450edef68
* brokertest.py: added __str__ methods to Broker and PopenAlan Conway2010-04-161-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@934985 13f79535-47bb-0310-9956-ffa450edef68
* Fix for QPID-2470 - Broker does not honour flow-to-disk policy on recoveryKim van der Riet2010-04-131-12/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933711 13f79535-47bb-0310-9956-ffa450edef68
* Changes to connection lifecycle methods and Connection parameters:Rafael H. Schloming2010-04-091-1/+2
| | | | | | | | | | | - Connection.open -> Connection.establish - Connection.connect() split into Connection.open(), Connection.attach() - Connection.disconnect() -> Connection.detach() - reconnect_hosts -> reconnect_urls - transport now takes tcp, ssl, and tcp+tls git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932352 13f79535-47bb-0310-9956-ffa450edef68
* Update cluster store status with a single atomic write() operation.Alan Conway2010-04-011-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@930055 13f79535-47bb-0310-9956-ffa450edef68
* Fix race condition causing deadlock in cluster_tests.py, failover_test.Alan Conway2010-03-261-21/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927847 13f79535-47bb-0310-9956-ffa450edef68
* Re-eneable run_long_cluster_tests.Alan Conway2010-03-251-0/+1
| | | | | | | | | | Reduced duration to 2 minutes per test. Reduced load to avoid timeouts - Fewer concurrent clients on test_management. - Delay in ErrorGenerator for test_failover. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927509 13f79535-47bb-0310-9956-ffa450edef68
* Fix resource leaks in cluster_tests, add 5 minute test run to make check-long.Alan Conway2010-03-241-36/+44
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927154 13f79535-47bb-0310-9956-ffa450edef68
* Several updates to address options including:Rafael H. Schloming2010-03-231-2/+2
| | | | | | | | | | - renamed node-properties to node - added link to permit durable links (with names) - split x-properties into x-declare, x-subscribe, and x-bindings - removed automatic passthrough of unrecognized options (as this was confusing) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@926604 13f79535-47bb-0310-9956-ffa450edef68
* Minor improvements to brokertest.py.Alan Conway2010-03-221-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@926300 13f79535-47bb-0310-9956-ffa450edef68
* New cluster member pushes store when joining an active cluster.Alan Conway2010-03-121-3/+6
| | | | | | | | | | | | | | | | | | | 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-2436: Fix cluster update of remote agents.Alan Conway2010-03-081-7/+6
| | | | | | | | | 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
* Increase timeout for python cluster tests, was timing out prematurely in ↵Alan Conway2010-03-041-3/+3
| | | | | | some tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@919024 13f79535-47bb-0310-9956-ffa450edef68
* Extended cluster_tests.test_management exposes a bug.Alan Conway2010-03-031-7/+1
| | | | | | | | | - 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
* Minor improvements to brokertest framework.Alan Conway2010-03-031-26/+83
| | | | | | | | | | - fixed bug in use of host() - check for existence of executables - more efficient error_line impl - check both *.err and *.out for error line git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918578 13f79535-47bb-0310-9956-ffa450edef68
* Test for management + cluster: run management tools in parallel with regular ↵Alan Conway2010-01-271-32/+85
| | | | | | | | | | 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
* Added support for extended properties in the broker test frameworkKim van der Riet2010-01-191-10/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900956 13f79535-47bb-0310-9956-ffa450edef68
* Minor cluster test fixes.Alan Conway2010-01-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896540 13f79535-47bb-0310-9956-ffa450edef68
* Added config-seq counter to track config changes since cluster init.Alan Conway2010-01-061-10/+1
| | | | | | | | Config-seq is recorded persitently to help identify best store when recovering from total failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896538 13f79535-47bb-0310-9956-ffa450edef68
* Don't hold up broker initialization for cluster initialization.Alan Conway2010-01-061-5/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896536 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2266: error sending update: Enqueue capacity threshold exceededAlan Conway2009-12-111-4/+5
| | | | | | | | | Fix for the problem with a test to verify that messages going to the store have the same headers and content-size for an updatee or a broker that receives the publish directly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@889813 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2253 - Cluster node shuts down with inconsistent error.Alan Conway2009-12-091-7/+2
| | | | | | | | | | Add a missing memberUpdate on the transition to CATCHUP mode. The inconsistent error was caused because the newly updated member did not have its membership updated and so was missing an failover update message that the existing members sent to a new client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@888874 13f79535-47bb-0310-9956-ffa450edef68
* Fix test race condition that was causing the test to hang.Alan Conway2009-12-021-15/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@886297 13f79535-47bb-0310-9956-ffa450edef68