This directory contains some automated tests of the amqp-util
module.
These tests require an AMQP-compatible message queue.
The unit-testing.json
file in the config
directory specifies how to connect to this message queue.
The default configuration will connect to the exchange amq.direct
running within a message queue service that is accessed via the URL amqp://guest:guest@localhost:5672
.
(Note that a default "local" installation of RabbitMQ will meet those criteria.)
-
Download and install RabbitMQ from https://www.rabbitmq.com/download.html or your preferred package-manager.
-
Start the server under the default configuration by running:
rabbitmq-server -detached
where
rabbitmq-server
is found in the RabbitMQ'ssbin
location. -
Now you should be able to run
make test
to execute this test suite. -
To stop the local RabbitMQ server, run
rabbitmqctl stop
(where
rabbitmqctl
is also found insbin
by default).
Note that this test suite assumes that an excnhange named amq.direct
exists (which it should in any AMQP-compliant message queue).