blazar/contrib/tempest
Hiroaki Kobayashi 7b8d6765c5 Replace deprecated tempest decorators
The function 'tempest.test.attr()' has been moved in Pike to
'tempest.lib.decorators.attr()' and will be removed in a future
version[1]. This patch replaces 'tempest.test.attr()' with
'tempest.lib.decorators.attr().'

[1] Iaafbb112b6eee458089cc49918359a8a8d0485e2

Change-Id: I2598c6ad24fe4df172db56b79f4aaa4a96a2d23e
2017-05-26 00:20:30 +00:00
..
tempest Replace deprecated tempest decorators 2017-05-26 00:20:30 +00:00
README.rst Follow latest Tempest framework 2017-02-09 17:40:40 +09:00

This directory contains the files necessary for tempest to cover Blazar project.

To install:

$ TEMPEST_DIR=/path/to/tempest $ BLAZAR_DIR=/path/to/blazar $ cp -R ${BLAZAR_DIR}/contrib/tempest/tempest/* ${TEMPEST_DIR}/tempest/

For example: $ cp -R /opt/stack/blazar/contrib/tempest/tempest/* /opt/stack/tempest/tempest/

To run all the blazar tests, add the following to the tox.ini file located at TEMPEST_DIR:

[testenv:blazar] sitepackages = True commands = bash tools/pretty_tox.sh '(^tempest.(apithirdparty|cli).test.*reservation) {posargs}'

Then, inside the TEMPEST_DIR, run: $ tox -eblazar

To debug tests with pdb or ipdb debuggers, run the following: $ python -m testtools.run tempest."modules_to_your_test_file"."test_file_name"."your_test_suite_name"