almanach/almanach/tests/tempest
Ken'ichi Ohmichi 2bd049d1af Switch to use stable data_utils
Tempest provides stable library interfaces under tempest.lib.
This patch switches to use it for data_utils.

Change-Id: Id42ef764130b6fd82e089486775acdd4e709ecfc
2017-03-09 21:12:13 +00:00
..
services Add Tempest scenario for volume API 2016-12-20 23:41:43 +00:00
tests Switch to use stable data_utils 2017-03-09 21:12:13 +00:00
README.rst Fixing rst of tempest readme 2016-12-14 18:09:07 -05:00
__init__.py Add first tempest test 2016-12-01 16:35:33 -05:00
clients.py Fix tempest tests 2017-01-11 12:38:33 -05:00
config.py Add first tempest test 2016-12-01 16:35:33 -05:00
plugin.py Stdlib imports are always first 2017-01-20 09:11:41 -05:00

README.rst

Tempest Integration of Almanach

This directory contains Tempest tests to cover the Almanach project.

Tempest Configuration File

Example of config file for devstack:

[DEFAULT]

[identity]
auth_version = v3
uri = http://192.168.50.50:5000/v2.0
uri_v3 = http://192.168.50.50:5000/v3

[auth]
admin_username = admin
admin_password = secret
admin_project_name = admin
admin_domain_name = Default

use_dynamic_credentials = true

Here, 192.168.50.50 is your devstack IP address.

Run tests on your local machine

  1. Create a virtualenv from :code:`https://git.openstack.org/openstack/tempest.git
  2. Create a custom tempest.conf, by default /etc/tempest/tempest.conf is loaded
  3. List the tests: testr list-tests
  4. Run the tests with testr or tempest:
    • testr run
    • tempest run

Note: you can overwrite the default folder of the configuration by setting two environment variables

export TEMPEST_CONFIG=tempest.conf
export TEMPEST_CONFIG_DIR=/tmp/

Run tests in devstack

  • cd /opt/stack/almanach
  • tempest run