From dab53dbc9cc78c18556cf4e26f0bee2df720210a Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 6 Feb 2018 15:24:41 +0530 Subject: [PATCH] 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 --- doc/source/contributor/tempest_tests.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/source/contributor/tempest_tests.rst b/doc/source/contributor/tempest_tests.rst index 8fbeb2c928..cdd41aecd9 100644 --- a/doc/source/contributor/tempest_tests.rst +++ b/doc/source/contributor/tempest_tests.rst @@ -89,13 +89,13 @@ from tempest root directory: .. 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: .. 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 .. _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 - $ 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 ``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module: .. 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 ``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module: .. 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 ``manila_tempest_tests/tests/api/admin/test_admin_actions.py`` module: .. 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 ------------------------------------------------------ @@ -140,7 +140,7 @@ To run the tests that require only `manila-api` service running: .. code-block:: console - $ tox -e all-plugin -- \ + $ tempest run -r \ \(\?\=\.\*\\\[\.\*\\bapi\\b\.\*\\\]\) \ \(\^manila_tempest_tests.tests.api\) @@ -149,7 +149,7 @@ but intended to test API behaviour: .. code-block:: console - $ tox -e all-plugin -- \ + $ tempest run -r \ \(\?\=\.\*\\\[\.\*\\b\(api\|api_with_backend\)\\b\.\*\\\]\) \ \(\^manila_tempest_tests.tests.api\) @@ -158,7 +158,7 @@ but intended to test back-end (manila-share) behaviour: .. code-block:: console - $ tox -e all-plugin -- \ + $ tempest run -r \ \(\?\=\.\*\\\[\.\*\\bbackend\\b\.\*\\\]\) \ \(\^manila_tempest_tests.tests.api\) @@ -168,7 +168,7 @@ To run only positive tests, use following command: .. code-block:: console - $ tox -e all-plugin -- \ + $ tempest run -r \ \(\?\=\.\*\\\[\.\*\\bpositive\\b\.\*\\\]\) \ \(\^manila_tempest_tests.tests.api\) @@ -176,7 +176,7 @@ To run only negative tests, use following command: .. code-block:: console - $ tox -e all-plugin -- \ + $ tempest run -r \ \(\?\=\.\*\\\[\.\*\\bnegative\\b\.\*\\\]\) \ \(\^manila_tempest_tests.tests.api\) @@ -184,7 +184,7 @@ To run only positive API tests, use following command: .. code-block:: console - $ tox -e all-plugin -- \ + $ tempest run -r \ \(\?\=\.\*\\\[\.\*\\bpositive\\b\.\*\\\]\) \ \(\?\=\.\*\\\[\.\*\\bapi\\b\.\*\\\]\) \ \(\^manila_tempest_tests.tests.api\)