Skip to main content

RabbitMQ-Test-Tool

Lint Publish Python Package PyPI version rabbitmq-test-tool rabbitmq-test-tool GitHub issues GitHub pull requests

Get it from the Snap Store

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RabbitMQ Test Tool-1.1.7.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RabbitMQ_Test_Tool-1.1.7-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for RabbitMQ Test Tool-1.1.7.tar.gz
Algorithm Hash digest
SHA256 091a240564d4f4e96db95ec92431266fdbf03aed571286ceb79051a49ec7b664
MD5 4542c39785220616514c2369b51821fa
BLAKE2b-256 ee6fe1ca2ad54c05d94e299db8af1f4f742441527e1d6d890ac01e59d7df77fc

See more details on using hashes here.

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

Hashes for RabbitMQ_Test_Tool-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0e1979e7a0b569982b504402d7b56679de882f5a987e18c937798fc1b28467e9
MD5 763ee662582a9da6b8f1b155af2df078
BLAKE2b-256 0b523a294f676b2fa04c709535c3f5e6e60f0ec0bf1ef59e8ac912c9efc5cdfd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.7 This release

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page