I've started a python framework for writing tests that start/stop multiple brokers, in particular for cluster tests but could be used for federation tests etc. The framework is in python/qpid/brokertest.py, example of use in cpp/src/tests/cluster_tests.py

Features include:
 - separate working dir for each test, named after the test.
- brokers are named, each broker has own data dir and log files under test dir - easy to start brokers, clusters and other executables (e.g. the cluster_tests use the sender/receiver binaries)
 - unique cluster names, can run multiple instances  on the same subnet
- kills all started processes during teardown, verifies that status matches test expectation (exit ok, exit failure or still running) - can register other resources for cleanup on teardown - currently anything with a stop() method but we can easily extend that. - some convenience methods for declaring queues, sending/receiving messages using the new python API, this set will grow

I'll be using this for cluster testing I'll be happy to help anyone who wants to use it for other purposes, contributions welcome!

Cheers,
Alan.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to