Difference between revisions of "Poppy/Provider - Getting Started/Poppy API Tests"
Amit Gandhi (talk | contribs) (Created page with "== Running API Tests == API tests for Poppy are run using Tox - Readme We highly recommend running the api test...") |
Amit Gandhi (talk | contribs) |
||
Line 11: | Line 11: | ||
# Your local volume of Poppy will be mounted into your container. Make sure your local ~/.poppy/poppy.conf file is updated with your provider references. | # Your local volume of Poppy will be mounted into your container. Make sure your local ~/.poppy/poppy.conf file is updated with your provider references. | ||
# Update your local [https://github.com/stackforge/poppy/blob/master/tests/etc/api.conf#L17 ~/.poppy/tests.conf] file to reference your provider for any flavors created/used by the tests. | # Update your local [https://github.com/stackforge/poppy/blob/master/tests/etc/api.conf#L17 ~/.poppy/tests.conf] file to reference your provider for any flavors created/used by the tests. | ||
+ | |||
Once you have docker installed (or boot2docker if using MacOSX or Windows), run the following command: | Once you have docker installed (or boot2docker if using MacOSX or Windows), run the following command: | ||
tox -e apidocker api | tox -e apidocker api | ||
+ | |||
This will run the api tests against your docker instance. | This will run the api tests against your docker instance. | ||
If all tests are passing, it means the Poppy API has been able to successfully communicate with your API. | If all tests are passing, it means the Poppy API has been able to successfully communicate with your API. |
Revision as of 22:25, 26 January 2015
Running API Tests
API tests for Poppy are run using Tox - [[1]]
We highly recommend running the api tests using Docker, as the docker file will provision a Cassandra storage backend, while keeping your system clean.
There is some initial setup involved.
- Create a fig_local.yaml file.
- Update fig_local.yam with the appropriate configuration values for your provider driver.
- Your local volume of Poppy will be mounted into your container. Make sure your local ~/.poppy/poppy.conf file is updated with your provider references.
- Update your local ~/.poppy/tests.conf file to reference your provider for any flavors created/used by the tests.
Once you have docker installed (or boot2docker if using MacOSX or Windows), run the following command:
tox -e apidocker api
This will run the api tests against your docker instance.
If all tests are passing, it means the Poppy API has been able to successfully communicate with your API.