Zhihao Yuan
0464668be4
chore: cleanup the unit tests with ddt
ddt stands for data-driven-tests, and it's also a Python module. It adds the test data as a decorator to the test methods, so that the test code can focus on each type of behaviors instead of using `for` loops internally (on the other hand, you have to split big tests which testing different types of behaviors into small tests). Change-Id: I1cba67c15e9bb6e5e73e26a11e08fb1390a0504a
Marconi
Message queuing service for OpenStack
Running a local Marconi server with MongoDB
Install MongoDB
Start a MongoDB instance:
mongod
Clone the Marconi repo:
git clone https://github.com/stackforge/marconi.git
cd to your local copy of the repo
Copy the Marconi config files to the directory ~/.marconi:
cp -r marconi/etc/*.conf-sample ~/.marconi/marconi.conf
Find the
[drivers:storage:mongodb]
section in ~/.marconi/marconi.conf and modify the URI to point to your local mongod instance:uri = mongodb://localhost
Run the following so you can see the results of any changes you make to the code, without having to reinstall the package each time:
python setup.py develop
Start the marconi server:
marconi-server
Description
Languages
Python
96.2%
PHP
1.5%
Shell
1.2%
HTML
0.8%
Lua
0.2%