Update docs since manila_tempest_tests are installed system-wide

Since manila_tempest_tests are now installed system-wide, update the
commands in the docs that show how to run tempest tests.

Depends-On: I0844cdb48b9d415bd341c4687620412178be871b
Change-Id: I4543d7170164bee4703cc4418991a03f7289dda9
Signed-off-by: Rishabh Dave <ridave@redhat.com>
This commit is contained in:
Rishabh Dave 2018-02-06 15:24:41 +05:30
parent 6368a9e887
commit dab53dbc9c

View File

@ -89,13 +89,13 @@ from tempest root directory:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- manila_tempest_tests.tests.api $ tempest run -r manila_tempest_tests.tests.api
or to run only scenario tests: or to run only scenario tests:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- manila_tempest_tests.tests.scenario $ tempest run -r manila_tempest_tests.tests.scenario
.. _pip: https://pypi.python.org/pypi/pip .. _pip: https://pypi.python.org/pypi/pip
.. _tox: https://pypi.python.org/pypi/tox .. _tox: https://pypi.python.org/pypi/tox
@ -111,28 +111,28 @@ To run the tests in the ``manila_tempest_tests/tests/api/admin`` directory:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- manila_tempest_tests.tests.api.admin $ tempest run -r manila_tempest_tests.tests.api.admin
To run the tests in the To run the tests in the
``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module: ``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- manila_tempest_tests.tests.api.admin.test_admin_actions $ tempest run -r manila_tempest_tests.tests.api.admin.test_admin_actions
To run the tests in the `AdminActionsTest` class in To run the tests in the `AdminActionsTest` class in
``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module: ``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- manila_tempest_tests.tests.api.admin.test_admin_actions.AdminActionsTest $ tempest run -r manila_tempest_tests.tests.api.admin.test_admin_actions.AdminActionsTest
To run the `AdminActionsTest.test_reset_share_state` test method in To run the `AdminActionsTest.test_reset_share_state` test method in
``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module: ``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- manila_tempest_tests.tests.api.admin.test_admin_actions.AdminActionsTest.test_reset_share_state $ tempest run -r manila_tempest_tests.tests.api.admin.test_admin_actions.AdminActionsTest.test_reset_share_state
Running a subset of tests based on service involvement Running a subset of tests based on service involvement
------------------------------------------------------ ------------------------------------------------------
@ -140,7 +140,7 @@ To run the tests that require only `manila-api` service running:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- \ $ tempest run -r \
\(\?\=\.\*\\\[\.\*\\bapi\\b\.\*\\\]\) \ \(\?\=\.\*\\\[\.\*\\bapi\\b\.\*\\\]\) \
\(\^manila_tempest_tests.tests.api\) \(\^manila_tempest_tests.tests.api\)
@ -149,7 +149,7 @@ but intended to test API behaviour:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- \ $ tempest run -r \
\(\?\=\.\*\\\[\.\*\\b\(api\|api_with_backend\)\\b\.\*\\\]\) \ \(\?\=\.\*\\\[\.\*\\b\(api\|api_with_backend\)\\b\.\*\\\]\) \
\(\^manila_tempest_tests.tests.api\) \(\^manila_tempest_tests.tests.api\)
@ -158,7 +158,7 @@ but intended to test back-end (manila-share) behaviour:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- \ $ tempest run -r \
\(\?\=\.\*\\\[\.\*\\bbackend\\b\.\*\\\]\) \ \(\?\=\.\*\\\[\.\*\\bbackend\\b\.\*\\\]\) \
\(\^manila_tempest_tests.tests.api\) \(\^manila_tempest_tests.tests.api\)
@ -168,7 +168,7 @@ To run only positive tests, use following command:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- \ $ tempest run -r \
\(\?\=\.\*\\\[\.\*\\bpositive\\b\.\*\\\]\) \ \(\?\=\.\*\\\[\.\*\\bpositive\\b\.\*\\\]\) \
\(\^manila_tempest_tests.tests.api\) \(\^manila_tempest_tests.tests.api\)
@ -176,7 +176,7 @@ To run only negative tests, use following command:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- \ $ tempest run -r \
\(\?\=\.\*\\\[\.\*\\bnegative\\b\.\*\\\]\) \ \(\?\=\.\*\\\[\.\*\\bnegative\\b\.\*\\\]\) \
\(\^manila_tempest_tests.tests.api\) \(\^manila_tempest_tests.tests.api\)
@ -184,7 +184,7 @@ To run only positive API tests, use following command:
.. code-block:: console .. code-block:: console
$ tox -e all-plugin -- \ $ tempest run -r \
\(\?\=\.\*\\\[\.\*\\bpositive\\b\.\*\\\]\) \ \(\?\=\.\*\\\[\.\*\\bpositive\\b\.\*\\\]\) \
\(\?\=\.\*\\\[\.\*\\bapi\\b\.\*\\\]\) \ \(\?\=\.\*\\\[\.\*\\bapi\\b\.\*\\\]\) \
\(\^manila_tempest_tests.tests.api\) \(\^manila_tempest_tests.tests.api\)