"Fossies" - the Fresh Open Source Software Archive

Member "zun-4.0.0/doc/source/contributor/tempest-tests.rst" (16 Oct 2019, 2235 Bytes) of package /linux/misc/openstack/zun-4.0.0.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last Fossies "Diffs" side-by-side code changes report for "tempest-tests.rst": 2.1.0_vs_3.0.0.

Run tempest tests locally

This is a guide for developers who want to run tempest tests in their local machine.

Zun contains a suite of tempest tests in the zun/tests/tempest directory. Tempest tests are primary for testing integration between Zun and its depending software stack (i.e. Docker, other OpenStack services). Any proposed code change will be automatically rejected by the gate if the change causes tempest test failures. If this happens, contributors are suggested to refer this document to re-run the tests locally and perform any necessary trouble-shooting.


You need to deploy Zun in a devstack environment.

Refer the Exercising the Services Using Devstack session at Developer Quick-Start Guide for details.

Run the test

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


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

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