almanach/almanach/tests/tempest
Frédéric Guillot ef8897f58b Add API versioning
- All OpenStack projects have API versioning
- Existing endpoints are now prefixed with /v1
- Still fully backward compatible with old endpoints
- No HTTP redirects is used to avoid unexpected behaviors with
existing clients

Change-Id: If51f3291c44615991b3378b711dffacc1bd2591f
2017-05-12 14:53:12 -04:00
..
services Add API versioning 2017-05-12 14:53:12 -04:00
tests Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-03-24 17:17:27 +08: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