blazar/contrib/tempest
Ngo Quoc Cuong c878da337f Add log hacking rules
- [C312] Validate that logs are not translated.
- [H904] Delay string interpolations at logging calls. [1]

[1]https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#adding-variables-to-log-messages

Change-Id: I58930b6b42b00b28d80bda917834b077c380b0a0
2017-10-09 07:18:19 +00:00
..
tempest Add log hacking rules 2017-10-09 07:18:19 +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"