cloudstack/tools/marvin/README

30 lines
959 B
Plaintext

Marvin is the testing framework for CloudStack written in python. Writing of
unittests and functional tests with Marvin makes testing with cloudstack easier
1. INSTALL
untar Marvin-0.1.0.tar.gz
cd Marvin-0.1.0
python setup.py install
2. Facility it provides:
1. very handy cloudstack API python wrapper
2. support async job executing in parallel
3. remote ssh login/execute command
4. mysql query
3. sample code is under sandbox. To generate the config for a deployment.
Alter the .properties file in the sandbox. For example the
simualtordemo.properties after modification can generate the config file as
shown below
$ python simulator_setup.py -i simulatordemo.properties -o simulatordemo.cfg
To deploy the environment and run the tests
$ python -m marvin.deployAndRun -c simulatordemo.cfg -t /tmp/t.log -r /tmp/r.log -d testcase
4. WIKI page
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Testing+with+Python