Hongbin Lu 7103718418 Skip tests if glance is not available
There are some tests requiring glance service. If glance service
is not available, we want to skip those tests instead of failing
them. The following are the affected tests:
* test_commit_container
* test_run_container_with_image_driver_glance

Change-Id: Iee1f53c905863eb842535090a2bb67c3babf9b05
2019-08-18 15:46:46 +00:00
2019-04-19 19:31:48 +00:00
2019-04-27 17:52:49 +00:00
2018-01-27 18:52:29 +00:00

Team and repository tags

image

Tempest Integration of Zun

This directory contains Tempest tests to cover the Zun project, as well as a plugin to automatically load these tests into tempest.

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

Running the tests

Edit /opt/stack/tempest/etc/tempest.conf:

  • Add the [container_service] section, configure min_microversion and max_microversion:

    [container_service]
    min_microversion=1.32
    max_microversion=1.32

Note

You might need to modify the min/max microversion based on your test environment.

To run all tests from this plugin, install Zun into your environment and navigate to tempest directory:

$ cd /opt/stack/tempest

Run this command:

$ tempest run --regex zun_tempest_plugin.tests.tempest.api

To run a single test case, run with the test case name, for example:

$ tempest run --regex zun_tempest_plugin.tests.tempest.api.test_containers.TestContainer.test_list_containers
Description
Tempest plugin for the Zun project.
Readme 1.6 MiB
Languages
Python 100%