456d3cbe3f
Change-Id: Ifeecbc601ca69691ee96172557294ee5218640bf |
||
---|---|---|
.. | ||
utils | ||
README.rst | ||
__init__.py | ||
base.py | ||
test_caching.py | ||
test_cdn_website.py | ||
test_geo_restrictions.py | ||
test_host_headers.py | ||
test_ip_restrictions.py | ||
test_multiple_origin.py | ||
test_origin_headers.py | ||
test_purge.py | ||
test_referrer_restriction.py | ||
test_ssl_enabled.py | ||
wordpress-single.yaml |
README.rst
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