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.13.0.tar.gz (28.5 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.13.0-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for glance_tempest_plugin-0.13.0.tar.gz
Algorithm Hash digest
SHA256 8a820c6d2bb41bbc15535545c9e2af2ddb3b25edbb0bfb4e9980677617378998
MD5 84a7dd7afc42344a396edbd5e2d13470
BLAKE2b-256 e23e0481d5fa661d77ca9312440d7d6d3491df6ed401046b655bab76609b612d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for glance_tempest_plugin-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 448ff506fb2bb4aa7d3bebd5449f295b420ac1ffc6b5c14a626c6e4e3879e6e2
MD5 d27489333c79fa045570c3272bdd10df
BLAKE2b-256 7e9a5a350957e77112feeec6f792cbf73d9c7d9eada672d4739b4b5de0647e62

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