Tempest plugin for Glance project.
Go to file
2024-12-09 17:09:59 +00:00
doc Add doc/requirements 2021-01-07 10:43:27 +01:00
glance_tempest_plugin Avoid lies about image format 2024-10-03 07:03:37 -07:00
releasenotes/notes Support py3.12 and drop py3.8 2024-10-26 18:06:29 +00:00
.gitignore Fix incorrect run command and add stestr config file. 2022-08-18 11:57:26 +00:00
.gitreview Apply cookiecutter to newly added glance-tempest-plugin 2020-12-17 13:09:05 +00:00
.stestr.conf Fix incorrect run command and add stestr config file. 2022-08-18 11:57:26 +00:00
.zuul.yaml Merge "Add stable/2024.2 job" 2024-11-19 03:41:08 +00:00
LICENSE Apply cookiecutter to newly added glance-tempest-plugin 2020-12-17 13:09:05 +00:00
README.rst Merge "Update README.md for running glance tests in tempest" 2024-11-26 15:53:16 +00:00
requirements.txt Drop usage of six 2024-01-25 22:07:13 +09:00
setup.cfg Support py3.12 and drop py3.8 2024-10-26 18:06:29 +00:00
setup.py Apply cookiecutter to newly added glance-tempest-plugin 2020-12-17 13:09:05 +00:00
test-requirements.txt Bump hacking 2024-12-04 22:31:15 +09:00
tox.ini Fix incorrect run command and add stestr config file. 2022-08-18 11:57:26 +00:00

Tempest Integration for Glance

This directory contains additional Glance tempest tests.

See the tempest plugin docs for information on using it: https://docs.openstack.org/tempest/latest/plugin.html#using-plugins

To run all tests from this plugin, 1. Clone glance-tempest-plugin repo from github:

$ git clone https://opendev.org/openstack/glance-tempest-plugin
  1. Install the plugin:

    $ pip3 install -e glance-tempest-plugin
  2. Confirm it's installed:

    $ tempest list-plugins
  3. Create new file tempest.conf inside /etc/tempest directory and run with below content, including rbac enablement

::

[identity] auth_version = v3 uri_v3 = <Full URI of the OpenStack Identity API>

[auth] use_dynamic_credentials = True admin_domain_name = Default admin_project_name = admin admin_password = admin admin_username = admin admin_system = True

[image_feature_enabled] enforce_scope = True os_glance_reserved = True import_image = False

[enforce_scope] glance = true

  1. Then from the tempest directory run:

    $ tox -e all -- glance_tempest_plugin

It is expected that Glance third party CI's use the all tox environment above for all test runs. Developers can also use this locally to perform more extensive testing.

Any typical devstack instance should be able to run all Glance plugin tests. For completeness, here is an example of a devstack local.conf that should work. Update backend information to fit your environment.

[[local|localrc]]
ADMIN_PASSWORD=secret
SERVICE_TOKEN=$ADMIN_PASSWORD
MYSQL_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
SYSLOG=False
LOG_COLOR=False
RECLONE=yes
ENABLED_SERVICES=g-api,dstat,key
ENABLED_SERVICES+=,mysql,tempest