Automatic Tempest Configuration Generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Martin Kopec 1237f3470b Improve role docs, remove unused var 4 years ago
config_tempest Refactor to improve modularity, scalability, OOP 4 years ago
doc Add support for new doc PTI jobs 4 years ago
etc Merge "Add support for admin parameters moving to auth" 5 years ago
playbooks Use --non-admin for non admin users in zuul jobs 4 years ago
releasenotes Switch endpoint_type to publicURL 4 years ago
roles Improve role docs, remove unused var 4 years ago
.coveragerc Initial Cookiecutter Commit. 6 years ago
.gitignore Switch to use stestr for unit tests 4 years ago
.gitreview Update .gitreview: point to review.openstack.org 4 years ago
.mailmap Initial Cookiecutter Commit. 6 years ago
.stestr.conf Switch to use stestr for unit tests 4 years ago
.zuul.yaml Use --non-admin for non admin users in zuul jobs 4 years ago
HACKING.rst Refactored python-tempestconf to work with devstack 5 years ago
LICENSE Initial Cookiecutter Commit. 6 years ago
README.rst Do not use “-y” for package install 4 years ago
requirements.txt Fixed {test,-}.requirements.txt 4 years ago
setup.cfg Trivial: Update pypi url to new url 4 years ago
setup.py Refactored python-tempestconf to work with devstack 5 years ago
test-requirements.txt Fixed {test,-}.requirements.txt 4 years ago
tox.ini Add support for new doc PTI jobs 4 years ago

README.rst

python-tempestconf

Overview

python-tempestconf will automatically generate the tempest configuration based on your cloud.

Usage

Git

  1. Clone and change to the directory:
$ git clone https://git.openstack.org/openstack/python-tempestconf
$ cd python-tempestconf
  1. Create virtual environment using virtualenv:
$ virtualenv .venv
$ source .venv/bin/activate
  1. Source the newly created virtual environment and install requirements:
(.venv) $ pip install -r requirements.txt
(.venv) $ pip install -r test-requirements.txt
  1. Source cloud credentials, for example:
(py27) $ source cloudrc
  1. Run python-tempestconf to generate tempest configuration file:
(py27) $ python config_tempest/config_tempest.py --debug identity.uri $OS_AUTH_URL \
            identity.admin_password  $OS_PASSWORD --create

After this, ./etc/tempest.conf is generated.

RPM Installation (RDO)

  1. python-tempestconf is installed together with openstack-tempest, as a new dependency (starting from the Ocata release)
# yum install openstack-tempest
  1. Source cloud credentials, initialize tempest and run the discovery tool:
$ source cloudrc
$ tempest init testingdir
$ cd testingdir
$ discover-tempest-config --debug identity.uri $OS_AUTH_URL \
      identity.admin_password  $OS_PASSWORD --create

Note

In Ocata release new features were presented. discover-tempest-config is the new name of the old config_tempest.py script and it accepts the same parameters. More about new features can be found here

os-client-config support

python-tempestconf supports os-client-config so instead of sourcing openstackrc files you can use clouds.yml files. Location where these files should be stored and syntax which is used to specify cloud.yaml files can be found here

In case of git usage:

(py27) $ python config_tempest/config_tempest.py --debug --create --os-cloud <name of cloud>

In case of RPM:

$ tempest init testingdir
$ cd testingdir
$ discover-tempest-config --debug --create --os-cloud <name of cloud>