mocking - Lite Python AMQP server implementation for dev and mock? -
in django, running ./manage.py runserver
nice dev, avoiding hassle setup , start real webserver.
if not running django, can still setup gunicorn server easily.
is there similar amqp?
i don't need full implementation nor robust, easy install , run dev. pypi package great.
celery not answer. don't want client, want server. mini python rabbitmq.
i'm not aware of amqp broker implemented in python. , not aware of 'lite' implementation in general; think implementing amqp broker sufficiently complex try either aim close 1 of versions of amqp specification, or don't bother @ all. :)
i don't quite see how running broker presents same problems running test web server web application.
the web server nothing useful without application run inside it, , while you're developing application makes sense able run without needing full deployment.
but not implementing internals of broker, , can configure dynamically (unlike web server) doesn't need restart every time change code. exchanges, bindings , queues can declared application under test , automatically deleted afterwards.
installing rabbitmq not difficult @ all, , should need hardly configuration, if any, because comes default vhost , guest user account fine use in isolated test environment. have never had problem having rabbitmq running on test machine.
maybe you've had particular issue i've not thought of; if that's case, please leave comment (or expand question) explain it.
edit: i've been doing quite lot of testing of amqp-based applications, , i've found rabbitmq's management plugin useful. includes http api i'm using things create new vhost each test run, , destroy afterwards clean broker's state. makes running tests on shared broker less intrusive. using http api manage this, rather amqp client being tested, avoids tests becoming circular.
Comments
Post a Comment