854 B
854 B
API Tests
The end to end tests are black box tests, aimed to simulate real world user scenarios.
To run the tests
Install the dependencies:
pip install -r requirements.txt pip install opencafe
Set the following environment variables:
export CAFE_CONFIG_FILE_PATH=~/.poppy/endtoend.conf export CAFE_ROOT_LOG_PATH=~/.poppy/logs export CAFE_TEST_LOG_PATH=~/.poppy/logs
3. The API tests require a running database (eg cassandra), in order to run via tox.
Copy the api.conf file to the path set by CAFE_CONFIG_FILE_PATH:
cp tests/etc/endtoend.conf ~/.poppy/endtoend.conf
Set pyrax config file ~/.pyrax.cfg (See https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#pyrax-configuration)
Once you are ready to run the tests:
cd tests/endtoend nosetests