9370ac5898
This removes the python-heatclient dependency, which is no longer needed by the tests. This also removes a heat template which is no longer used by the end to end tests. Change-Id: I8b7640614bd2f49847cdef7232c3677591f6c7e8 |
||
---|---|---|
.. | ||
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 |
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