A simple test script to test a RabbitMQ cluster
Project description
RabbitMQ-Test-Tool
This repository contains a simple test script to test a RabbitMQ cluster.
Usage
Let's say we have a RabbitMQ cluster at IP address 10.5.0.{1,2,3}
.
Prepare the cluster by running:
./prepare-rabbit.sh 10.5.0.1
This script will create a test user and a test vhost. Detailed usage is:
Usage:
prepare-rabbit.sh [options] BROKER
Where BROKER is the address of the RabbitMQbroker to prepare.
Options:
--user USER The username to set
--password PASS The password for USER
--vhost VHOST The vhost to create
Set up a virtualenv
to run the actual test script:
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
python setup.py install
Now send a message:
rabbitmq-test-tool 10.5.0.1 --send "My first message"
Full usage:
usage: rabbitmq-test-tool [-h] [--durable] [--queue QUEUE] [--send MSG] [--get]
[--list] [--user USER] [--password PASSWORD]
[--vhost VHOST] [--delete QUEUE]
BROKER [BROKER ...]
positional arguments:
BROKER The IP address or hostname of the broker, default =
localhost
optional arguments:
-h, --help show this help message and exit
--durable
--queue QUEUE The queue to use, default = test_queue
--send MSG Send MSG to queue
--get Get one message from queue
--list List messages in queue
--user USER The user to use for the RabbitMQ connection, default =
tester
--password PASSWORD The password to use for the RabbitMQ connection,
default = linux
--vhost VHOST The vhost to use for the RabbitMQ connection, default =
tester
--delete QUEUE Delete QUEUE
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file RabbitMQ Test Tool-1.1.7.tar.gz
.
File metadata
- Download URL: RabbitMQ Test Tool-1.1.7.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 091a240564d4f4e96db95ec92431266fdbf03aed571286ceb79051a49ec7b664 |
|
MD5 | 4542c39785220616514c2369b51821fa |
|
BLAKE2b-256 | ee6fe1ca2ad54c05d94e299db8af1f4f742441527e1d6d890ac01e59d7df77fc |
File details
Details for the file RabbitMQ_Test_Tool-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: RabbitMQ_Test_Tool-1.1.7-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e1979e7a0b569982b504402d7b56679de882f5a987e18c937798fc1b28467e9 |
|
MD5 | 763ee662582a9da6b8f1b155af2df078 |
|
BLAKE2b-256 | 0b523a294f676b2fa04c709535c3f5e6e60f0ec0bf1ef59e8ac912c9efc5cdfd |