https://github.com/teaglebuilt/testrabbitmqcluster
Write automated tests for messaging queues -- Test Automation for Microservices
https://github.com/teaglebuilt/testrabbitmqcluster
Last synced: 9 months ago
JSON representation
Write automated tests for messaging queues -- Test Automation for Microservices
- Host: GitHub
- URL: https://github.com/teaglebuilt/testrabbitmqcluster
- Owner: teaglebuilt
- Created: 2019-11-22T13:38:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-22T16:14:32.000Z (over 6 years ago)
- Last Synced: 2025-08-31T14:02:11.843Z (10 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microservice Messaging Discovery
Its common for a messaging framework such as RabbitMQ, Kafka, or Redis to exist in a microservice framework. Typically to send and recieve events to other services. Zookeeper is another service commonly used for its wide availability of different use cases, ranging from service registry to synchronization, tracking events, and so on...
In this repo, im going to use Docker to spin up a 3 node cluster or RabbitMQ and Zookeeper. The purpose is to first learn how we can use rabbitmq, then learn how we can write automated tests to monitor these services.
## Tools used...
* Docker
* Docker-Compose
* RabbitMQ
* Zookeeper
* Python
* RobotFramework
* Shell
## Project Layout
--root
- lib/ -- classes for RabbitMQ/Zookeeper/other..
- test/ -- test suites
- rabbitmq.config -- configurations for rabbitmq
- definitions.json -- settings for rabbitmq
-
### Installation
#### Create Docker Network
```
docker network create rabbitmq-cluster
```
#### Launch containers
```
docker-compose up -d
```
#### virtual environment
```
virtualenv -p "{{ path to python version }}" env
```
activate env
```
source env/bin/activate
```
install dependencies
```
pip install -r requirements.txt
```
go to localhost:15672