tempest/tempest/api
Jenkins 0a70535150 Merge "Py3: don't access the `unicode` type directly." 2016-06-24 17:30:27 +00:00
..
baremetal Add pep8 check to use data_utils.rand_uuid() 2016-04-19 14:23:00 -07:00
compute Move properties handling to the test side 2016-06-23 17:10:45 -07:00
data_processing Remove unnecessary __init__ and resource_setup/cleanup 2016-06-24 16:02:07 +08:00
database trove: skip broken tests 2016-05-03 12:14:16 -04:00
identity Merge "Py3: don't access the `unicode` type directly." 2016-06-24 17:30:27 +00:00
image Merge "Move get_image_meta_from_headers from images_client" 2016-06-17 03:25:53 +00:00
network Fix assertItemsEqual usage for py3 2016-06-24 14:42:56 +09:00
object_storage Merge "Introduce new helper: call_and_ignore_notfound_exc()" 2016-06-06 11:38:00 +00:00
orchestration Remove unnecessary __init__ and resource_setup/cleanup 2016-06-24 16:02:07 +08:00
volume Merge "Volume pagination with specific tenant" 2016-06-24 00:28:14 +00:00
README.rst Add links to the field guide index 2014-07-25 16:03:08 -04:00
__init__.py Remove copyright from empty files 2014-01-14 03:02:04 +04:00

README.rst

Tempest Field Guide to API tests

What are these tests?

One of Tempest's prime function is to ensure that your OpenStack cloud works with the OpenStack API as documented. The current largest portion of Tempest code is devoted to test cases that do exactly this.

It's also important to test not only the expected positive path on APIs, but also to provide them with invalid data to ensure they fail in expected and documented ways. Over the course of the OpenStack project Tempest has discovered many fundamental bugs by doing just this.

In order for some APIs to return meaningful results, there must be enough data in the system. This means these tests might start by spinning up a server, image, etc, then operating on it.

Why are these tests in tempest?

This is one of the core missions for the Tempest project, and where it started. Many people use this bit of function in Tempest to ensure their clouds haven't broken the OpenStack API.

It could be argued that some of the negative testing could be done back in the projects themselves, and we might evolve there over time, but currently in the OpenStack gate this is a fundamentally important place to keep things.

Scope of these tests

API tests should always use the Tempest implementation of the OpenStack API, as we want to ensure that bugs aren't hidden by the official clients.

They should test specific API calls, and can build up complex state if it's needed for the API call to be meaningful.

They should send not only good data, but bad data at the API and look for error codes.

They should all be able to be run on their own, not depending on the state created by a previous test.