ef8897f58b
- 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 |
||
---|---|---|
.. | ||
services | ||
tests | ||
README.rst | ||
__init__.py | ||
clients.py | ||
config.py | ||
plugin.py |
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
- Create a virtualenv from :code:`https://git.openstack.org/openstack/tempest.git
- Create a custom
tempest.conf
, by default/etc/tempest/tempest.conf
is loaded - List the tests:
testr list-tests
- 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