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.16.0.tar.gz (32.7 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.16.0-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glance_tempest_plugin-0.16.0.tar.gz
  • Upload date:
  • Size: 32.7 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.16.0.tar.gz
Algorithm Hash digest
SHA256 11e0194a742297e2d2fbb45fc857b8ee2d2eedb45817c61db58f9568c116253a
MD5 f0040fc9e18b82d4fae0f8f9eb126516
BLAKE2b-256 7a2380bbb4cce9b6a80e3df8c6980eaf5d5808d6d584f1402a7c8fa690362f23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for glance_tempest_plugin-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 231f2106cce1feec14e4c36bad2f760108238e13d3d59848d7cd58cedafe9138
MD5 f6ba6ae153b2faf994ea428275003e66
BLAKE2b-256 ffcb497fe95687de8ef84518af1cc2349971e342e92196abb067823bbb885fc2

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