tempest/tempest
Matthew Treinish c1802bc956
Use the idempotent id and tooling from tempest-lib
The idempotent id decorator and the check-uuid script were migrated to
tempest-lib as part of tempest-lib 0.10.0. However, tempest was never
updated to use the library version of idempotent id or check-uuid.
This commit updates tempest to remove it's local copies of the
idempotent_id decorator and the check-uuid tool and use them from
tempest-lib instead.

Also, instead of updating the import of every single test module in
tempest an alias is just added to tempest.test to let all the old
imports work seamlessly. Updating the imports and removing the alias
may or may not be worth it in the future, but that will be a follow
on patch or discussion.

Change-Id: Iae3f491ada8f7b55c1fd817e033d968c2102d11e
2015-12-03 19:20:44 -05:00
..
api Merge "Split out Neutron metering labels client" 2015-12-03 08:17:02 +00:00
api_schema Merge "Use versions_client, versions from tempest-lib" 2015-11-30 13:36:46 +00:00
cmd Merge "Split out Neutron metering labels client" 2015-12-03 08:17:02 +00:00
common Merge "Fix some inconsistency in docstrings" 2015-12-01 08:34:33 +00:00
hacking Changing directory structure for Cinder clients 2015-12-01 12:01:43 +03:00
scenario Merge "Migrate scenario tests ssh-auth-strategy" 2015-12-02 23:15:14 +00:00
services Merge "Split out Neutron metering labels client" 2015-12-03 08:17:02 +00:00
stress Fix H404/405 violations for thirdparty and stress 2015-11-19 09:42:05 +00:00
test_discover Fix H404/405 violations for remaining 2015-11-19 11:22:29 +00:00
tests Changing directory structure for Cinder clients 2015-12-01 12:01:43 +03:00
thirdparty Merge "Bring back Python 2.6 compat (don"t use dict comprehension)" 2015-11-26 01:43:46 +00:00
README.rst Cleanup tempest docs a bit 2015-09-02 11:06:44 -04:00
__init__.py Changes the namespace from storm to tempest, as well as adding addition tests and improvements 2011-12-06 16:48:03 -06:00
clients.py Merge "Split out Neutron metering labels client" 2015-12-03 08:17:02 +00:00
config.py Merge "Change multi-backend configuration to a list" 2015-11-26 11:37:26 +00:00
exceptions.py Drop fixed_network dependency from CONF 2015-11-24 16:41:29 +00:00
manager.py Fix H404/405 violations for remaining 2015-11-19 11:22:29 +00:00
test.py Use the idempotent id and tooling from tempest-lib 2015-12-03 19:20:44 -05:00

README.rst

Tempest Field Guide Overview

Tempest is designed to be useful for a large number of different environments. This includes being useful for gating commits to OpenStack core projects, being used to validate OpenStack cloud implementations for both correctness, as well as a burn in tool for OpenStack clouds.

As such Tempest tests come in many flavors, each with their own rules and guidelines. Below is the proposed Havana restructuring for Tempest to make this clear.

tempest/
   api/ - API tests
   scenario/ - complex scenario tests
   stress/ - stress tests
   thirdparty/ - 3rd party api tests

Each of these directories contains different types of tests. What belongs in each directory, the rules and examples for good tests, are documented in a README.rst file in the directory.

api_field_guide

API tests are validation tests for the OpenStack API. They should not use the existing python clients for OpenStack, but should instead use the tempest implementations of clients. This allows us to test both XML and JSON. Having raw clients also lets us pass invalid JSON and XML to the APIs and see the results, something we could not get with the native clients.

When it makes sense, API testing should be moved closer to the projects themselves, possibly as functional tests in their unit test frameworks.

scenario_field_guide

Scenario tests are complex "through path" tests for OpenStack functionality. They are typically a series of steps where complicated state requiring multiple services is set up exercised, and torn down.

Scenario tests should not use the existing python clients for OpenStack, but should instead use the tempest implementations of clients.

stress_field_guide

Stress tests are designed to stress an OpenStack environment by running a high workload against it and seeing what breaks. The stress test framework runs several test jobs in parallel and can run any existing test in Tempest as a stress job.

third_party_field_guide

Many openstack components include 3rdparty API support. It is completely legitimate for Tempest to include tests of 3rdparty APIs, but those should be kept separate from the normal OpenStack validation.

unit_tests_field_guide

Unit tests are the self checks for Tempest. They provide functional verification and regression checking for the internal components of tempest. They should be used to just verify that the individual pieces of tempest are working as expected.