almanach/almanach/tests/tempest/README.rst

1.1 KiB

Tempest Integration of Almanach

This directory contains Tempest tests to cover the Almanach project.

Tempest Configuration File

Example of config file for devstack:

[identity]
auth_version = v2
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

Run tests in devstack

  • cd /opt/stack/almanach
  • tempest run