summaryrefslogtreecommitdiff
path: root/python/qpid/brokertest.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Improved error messages in brokertest framework.Alan Conway2009-11-261-12/+43
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@884613 13f79535-47bb-0310-9956-ffa450edef68
* Cluster consistency: check for no clean store condition.Alan Conway2009-11-261-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@884612 13f79535-47bb-0310-9956-ffa450edef68
* Consistency checks for persistent cluster startup.Alan Conway2009-11-251-12/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@884226 13f79535-47bb-0310-9956-ffa450edef68
* Added flow control to failover_test in cluster_tests.py.Alan Conway2009-11-241-4/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@883909 13f79535-47bb-0310-9956-ffa450edef68
* Support for restarting a persistent cluster.Alan Conway2009-11-241-21/+40
| | | | | | | | | | | Option --cluster-size=N: members wait for N members before recovering store. Stores marked as clean/dirty. Automatically recover from clean store on restart. Stores marked with UUID to detect errors. Not yet implemented: consistency checks, manual recovery from all dirty stores. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@883842 13f79535-47bb-0310-9956-ffa450edef68
* Improved exception handling in brokertest.Broker.Alan Conway2009-11-181-1/+1
| | | | | | | Don't mask the original exception unless it's a ValueError. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881888 13f79535-47bb-0310-9956-ffa450edef68
* Provide default for brokertest.py OUTDIR define.Alan Conway2009-11-181-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881878 13f79535-47bb-0310-9956-ffa450edef68
* Added cluster option --cluster-size.Alan Conway2009-11-181-16/+10
| | | | | | | | --cluster-size=N means that during start-up the cluster waits to have N members before accepting any clients. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881839 13f79535-47bb-0310-9956-ffa450edef68
* changed address syntax to permit more complex subjects, added escaping, ↵Rafael H. Schloming2009-11-131-4/+4
| | | | | | improved error reporting git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@835879 13f79535-47bb-0310-9956-ffa450edef68
* Moved brokertest.py to python directory.Alan Conway2009-11-101-0/+393
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834668 13f79535-47bb-0310-9956-ffa450edef68