Update readme.rst

This patch updates Watcher Tempest tests execution section in readme.

* Use stestr instead of testr.
* Use tempest CLI instead of run_tempest.sh which was removed.

Change-Id: If8a38c98d6cf542b861819d7db3fa32beff8b102
This commit is contained in:
Hidekazu Nakamura 2018-03-29 09:16:32 +09:00
parent 9efb0866ae
commit 4ccee63113

View File

@ -125,23 +125,23 @@ Watcher Tempest tests execution
To list all Watcher Tempest cases, you can issue the following commands:: To list all Watcher Tempest cases, you can issue the following commands::
$ cd <TEMPEST_DIR> $ cd <TEMPEST_DIR>
$ testr list-tests watcher $ tempest run --list-tests --regex watcher_tempest_plugin
To run only these tests in Tempest, you can then issue these commands:: To run only these tests in Tempest, you can then issue these commands::
$ ./run_tempest.sh --config watcher-cloud/etc/tempest.conf -N -- watcher $ tempest run --config-file watcher-cloud/etc/tempest.conf --regex watcher_tempest_plugin
Or alternatively the following commands if you are:: Or alternatively the following commands if you are::
$ cd <TEMPEST_DIR>/watcher-cloud $ cd <TEMPEST_DIR>/watcher-cloud
$ ../run_tempest.sh -N -- watcher $ tempest run --regex watcher_tempest_plugin
To run a single test case, go to Tempest directory, then run with test case To run a single test case, go to Tempest directory, then run with test case
name, e.g.:: name, e.g.::
$ cd <TEMPEST_DIR> $ cd <TEMPEST_DIR>
$ ./run_tempest.sh --config watcher-cloud/etc/tempest.conf -N \ $ tempest run --config-file watcher-cloud/etc/tempest.conf --regex \
-- watcher_tempest_plugin.tests.api.admin.test_audit_template.TestCreateDeleteAuditTemplate.test_create_audit_template watcher_tempest_plugin.tests.api.admin.test_audit_template.TestCreateDeleteAuditTemplate.test_create_audit_template
Alternatively, you can also run the Watcher Tempest plugin tests using tox. But Alternatively, you can also run the Watcher Tempest plugin tests using tox. But
before you can do so, you need to follow the Tempest explanation on running before you can do so, you need to follow the Tempest explanation on running