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
This commit is contained in:
parent
1b0fc56daf
commit
a2e1b3f26b
20
README.rst
20
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user