From a2e1b3f26b3286746a974a0394b41ade7d3e1106 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Sat, 20 Apr 2019 17:04:29 +0000 Subject: [PATCH] Update tempest documentation We cannot run Zun tempest tests in tox environment anymore. This commit updates the document to switch to non-tox command to run tests. In addition, document the step to specify API version. Change-Id: Ia7ab9ff04f9d56857d15e1d68e9d3fcfd09b25ec --- README.rst | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 1a6acb0..ae0ad9a 100644 --- a/README.rst +++ b/README.rst @@ -23,6 +23,22 @@ 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``: + + .. code-block:: ini + + [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:: @@ -30,8 +46,8 @@ navigate to tempest directory:: Run this command:: - $ tox -e all-plugin -- zun_tempest_plugin.tests.tempest.api + $ tempest run --regex zun_tempest_plugin.tests.tempest.api To run a single test case, run with the test case name, for example:: - $ tox -e all-plugin -- zun_tempest_plugin.tests.tempest.api.test_containers.TestContainer.test_list_containers + $ tempest run --regex zun_tempest_plugin.tests.tempest.api.test_containers.TestContainer.test_list_containers