Skip to main content

Tempest plugin tests for Glance.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glance_tempest_plugin-0.15.0.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glance_tempest_plugin-0.15.0-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file glance_tempest_plugin-0.15.0.tar.gz.

File metadata

  • Download URL: glance_tempest_plugin-0.15.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for glance_tempest_plugin-0.15.0.tar.gz
Algorithm Hash digest
SHA256 8d683f38b59d95b0e063e3bbc9ffa04c75b273c8e550e3c31fdde2e17623541d
MD5 6db608105e86d1aaefc4c30cc39a1bf0
BLAKE2b-256 5d9f154ea54fd9364d7d603f04696be9e3ce02bacd47a0f05ddf1d243d579a84

See more details on using hashes here.

File details

Details for the file glance_tempest_plugin-0.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for glance_tempest_plugin-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a89c2a2e22a588eff0f19fd424434de55e78202ee578d7d859aa2c2a2ae636a
MD5 a20adeaa57d37646bf75ef2f366438d0
BLAKE2b-256 445019b8dae9d5816429c42cc39f6f0e8a7a4928a9a27a0670461878e229066a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page