From 88e28349d1c98c8dcb038eb3544e71f591aac4e0 Mon Sep 17 00:00:00 2001 From: ShraddhaAg Date: Mar 18 2019 15:30:28 +0000 Subject: [Docs] Add instructions for listening to messages sent to Bus --- diff --git a/docs/setup/development.rst b/docs/setup/development.rst index 680f922..5125096 100644 --- a/docs/setup/development.rst +++ b/docs/setup/development.rst @@ -47,6 +47,11 @@ In order to run the script, simply type ``./t`` in the Docker container's shell. Integration tests are run via the following command: ``docker-compose exec web ./manage.py test -v 2 -p integration_test*.py --settings=happinesspackets.settings.tsting`` +To test if messages are being sent to the RabbitMQ broker, open a new terminal and run the following command inside the shell of the Docker conatiner `web`:: + + fedora-messaging consume --callback=fedora_messaging.example:printer + +The messages sent to the RabbitMQ broker, when a sender confirms sending a happiness packet, will be printed in this terminal. Alternatives to Docker ======================