poppy/tests/api
tonytan4ever 4735284a41 Create Service
Change-Id: Id5c8da6b3b3bfc8aad6495b441e294a64598c260
2014-09-26 17:07:19 -04:00
..
health Add API tests for health & ping endpoints 2014-09-04 09:34:27 -04:00
services Create Service 2014-09-26 17:07:19 -04:00
utils Create Service 2014-09-26 17:07:19 -04:00
README.rst updated tests to use poppy 2014-08-07 13:16:46 -04:00
__init__.py Add API Test Structure 2014-07-14 13:34:36 -04:00
base.py Add API tests for health & ping endpoints 2014-09-04 09:34:27 -04:00
requirements.txt Exclude API tests from tox. 2014-07-18 10:23:04 -04:00

README.rst

API Tests

The API tests + test an actual API against a running environment. + are black box tests + can be used to test any running instance of poppy server (dev, test, prod, local instance, containerized instance)

To run the tests

  1. Install the dependencies:

    pip install -r requirements.txt
  2. Set the following environment variables:

    export CAFE_CONFIG_FILE_PATH=~/.poppy/tests.conf
    export CAFE_ROOT_LOG_PATH=~/.poppy/logs
    export CAFE_TEST_LOG_PATH=~/.poppy/logs
  3. Copy the api.conf file to the path set by CAFE_CONFIG_FILE_PATH:

    cp tests/etc/api.conf ~/.poppy/tests.conf
  4. Once you are ready to run the tests:

    cd tests/api
    nosetests

Tox Support

Coming Soon to a Repo Near You!