Heat Tests
How to Run the Tests
Create a new virtualenv and install the dependencies:
NOTE: At the time of this writing opencafe is not compatible with python 3. So you will need to create virtualenv with python 2. $ pip install -r requirements.txt $ cafe-config init $ cafe-config plugins install http
Set the following environment variables:
export CAFE_CONFIG_FILE_PATH=~/.heat/tests.conf export CAFE_ROOT_LOG_PATH=~/.heat/logs export CAFE_TEST_LOG_PATH=~/.heat/logs
If you desire highlighting in the output, set the following environment variables:
export NOSE_WITH_OPENSTACK=1 export NOSE_OPENSTACK_COLOR=1 export NOSE_OPENSTACK_RED=0.05 export NOSE_OPENSTACK_YELLOW=0.025 export NOSE_OPENSTACK_SHOW_ELAPSED=1 export NOSE_OPENSTACK_STDOUT=1
Make a directory ~/.heat to store the conf file in:
mkdir ~/.heat
Copy the api.conf file to the path set by CAFE_CONFIG_FILE_PATH:
$ cp etc/tests.conf ~/.heat/tests.conf
Update the config file in ~/.heat/tests.conf with the appropriate values
Once you are ready to run the tests:
$ nosetests api