https://github.com/nerdalert/rabbitmq-client-it
RabbitMQ Client IT Tests
https://github.com/nerdalert/rabbitmq-client-it
Last synced: about 1 year ago
JSON representation
RabbitMQ Client IT Tests
- Host: GitHub
- URL: https://github.com/nerdalert/rabbitmq-client-it
- Owner: nerdalert
- Created: 2015-04-19T05:50:38.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-19T07:08:22.000Z (about 11 years ago)
- Last Synced: 2025-04-11T22:53:15.017Z (about 1 year ago)
- Language: Go
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### RabbitMQ Client IT Tests
I needed to verify some amqp instances and the existing client tools were taking me longer to be useful then just rolling what I needed here. fork, rip, PR anything that is helpful.
It adds and deletes queues on a remote RabbitMQ instance using amqp wire proto (in this case 5672/tcp) for messaging.
### Build
go get github.com/nerdalert/rabbitmq-client-testing
or
git clone https://github.com/nerdalert/rabbitmq-client-it.git
cd rabbitmq-client-it
go build
### Run
after `go build`, you will have a binary in the root dir you can run with:
./rabbitmq-client-it \
-s fubijar.com \
-u username \
-p topsecpassword \
-v vhostname \
-q anyname \
-t 3
### Help / Usage
Usage:
main [OPTIONS] [collector IP address] [collector port number]
Application Options:
-s, --server= (required) target ip or domain name of the amqp service
-u, --user= (required) username of the target amqp host
-p, --pass (required) password of the target amqp host
-v, --vhost (required) name of the amqp vhost
-t, --test (default is BOTH) warning: Don't use a production queue. The delete will not descriminate.
1) Add a queue.
2) Delete a queue.
3) Both.
-dbg, --debug (optional) print debug information (warning: prints username/passwd to stdout)
-
Example:
./rabbitmq-client-it -h amqp.foo.org -u grumpy -p cat -v vhostname -q testqueue -t 3
- with debug logs to stdout
./rabbitmq-client-it -h amqp.foo.org -u grumpy -p cat -v vhostname -q testqueue -t 3 -d
Help Options:
-h, --help Show this help message