poppy/tests/endtoend
Malini Kamalambal d55175c7b7 Update E2E tests.
Change-Id: Ifdfd215cfcc4fb52317f6a8c27aa5d9ed5dbfb9e
2015-09-14 12:40:18 -04:00
..
utils Merge "E2E tests for geo restrictions." 2015-09-10 19:35:06 +00:00
README.rst End To End Test Updates 2015-04-01 10:54:05 -04:00
__init__.py Adds End To End Tests 2014-12-12 12:19:02 -05:00
base.py Update E2E tests. 2015-09-14 12:40:18 -04:00
test_caching.py Update E2E tests. 2015-09-14 12:40:18 -04:00
test_cdn_website.py Stabilize E2E Tests. 2015-09-10 10:35:55 -04:00
test_geo_restrictions.py E2E tests for geo restrictions. 2015-09-10 10:49:44 -04:00
test_host_headers.py Stabilize E2E Tests. 2015-09-10 10:35:55 -04:00
test_ip_restrictions.py Stabilize E2E Tests. 2015-09-10 10:35:55 -04:00
test_multiple_origin.py Cleanup E2E tests 2015-08-17 15:50:22 -04:00
test_origin_headers.py Stabilize E2E Tests. 2015-09-10 10:35:55 -04:00
test_purge.py Stabilize E2E Tests. 2015-09-10 10:35:55 -04:00
test_referrer_restriction.py Add E2E test for blacklisting referers. 2015-08-26 12:32:50 -04:00
test_ssl_enabled.py Stabilize E2E Tests. 2015-09-10 10:35:55 -04:00
wordpress-single.yaml Adds End To End Tests 2014-12-12 12:19:02 -05:00

README.rst

API Tests

The end to end tests are black box tests, aimed to simulate real world user scenarios.

To run the tests

  1. Install the dependencies:

    pip install -r requirements.txt
    pip install opencafe
  2. 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.

  1. Copy the api.conf file to the path set by CAFE_CONFIG_FILE_PATH:

    cp tests/etc/endtoend.conf ~/.poppy/endtoend.conf
  2. Set pyrax config file ~/.pyrax.cfg (See https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#pyrax-configuration)

  3. Once you are ready to run the tests:

    cd tests/endtoend
    nosetests