Tempest plugin for the Stacktask project
Project description
Stacktask Tempest Plugin
=====================
Tempest plugin that runs a Stacktask test case.
============
Installation
============
You can install the plugin using pip, directly into the python environment tempest uses (either global or a virutalenv):
.. code-block:: bash
$ cd tempest
$ source .venv/bin/activate
$ pip install stacktask-tempest-plugin
# Or, for the development testpypi version:
$ pip install -i https://testpypi.python.org/pypi --upgrade stacktask-tempest-plugin
============
Running tests
============
1. Install either the development or pypi versions using pip.
2. To validate that Tempest discovered the tests in the plugin, you can run:
.. code-block:: bash
$ testr list-tests | grep stacktask_tempest_plugin
This command will show your complete list of test cases inside the plugin.
2. Run the test cases by name, or include in your tempest test lists.
.. code-block:: bash
$ testr run stacktask_tempest_plugin.tests.api.test_users.StacktaskProjectAdminTestUsers.test_get_users
============
Development Installation
============
When Tempest runs, it will automatically discover the installed plugins. So we just need to install the Python packages that contains the plugin.
Clone the repository in your machine and install the package from the src tree:
.. code-block:: bash
$ cd stacktask-tempest-plugin
$ sudo pip install -e .
============
Pypi package creation
============
There are better guides for pypi, but the basic commands may be useful.
These steps require a pipy account, configured in ~/.pypirc
Register the project with pypi:
.. code-block:: bash
$ python setup.py register -r pypitest
Upload a new version:
.. code-block:: bash
$ python setup.py sdist upload -r pypitest
Increment the version number in setup.cfg for any new versions that need to be uploaded.
Remove the '-r pypitest' for offical deploys.
=====================
Tempest plugin that runs a Stacktask test case.
============
Installation
============
You can install the plugin using pip, directly into the python environment tempest uses (either global or a virutalenv):
.. code-block:: bash
$ cd tempest
$ source .venv/bin/activate
$ pip install stacktask-tempest-plugin
# Or, for the development testpypi version:
$ pip install -i https://testpypi.python.org/pypi --upgrade stacktask-tempest-plugin
============
Running tests
============
1. Install either the development or pypi versions using pip.
2. To validate that Tempest discovered the tests in the plugin, you can run:
.. code-block:: bash
$ testr list-tests | grep stacktask_tempest_plugin
This command will show your complete list of test cases inside the plugin.
2. Run the test cases by name, or include in your tempest test lists.
.. code-block:: bash
$ testr run stacktask_tempest_plugin.tests.api.test_users.StacktaskProjectAdminTestUsers.test_get_users
============
Development Installation
============
When Tempest runs, it will automatically discover the installed plugins. So we just need to install the Python packages that contains the plugin.
Clone the repository in your machine and install the package from the src tree:
.. code-block:: bash
$ cd stacktask-tempest-plugin
$ sudo pip install -e .
============
Pypi package creation
============
There are better guides for pypi, but the basic commands may be useful.
These steps require a pipy account, configured in ~/.pypirc
Register the project with pypi:
.. code-block:: bash
$ python setup.py register -r pypitest
Upload a new version:
.. code-block:: bash
$ python setup.py sdist upload -r pypitest
Increment the version number in setup.cfg for any new versions that need to be uploaded.
Remove the '-r pypitest' for offical deploys.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for stacktask-tempest-plugin-0.0.4.dev3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb96c3c2540501aff6c12cdf3f9f58552fd274237731638ac9eca851f448f720 |
|
MD5 | 18d00b1a9cb49d05ce8e1baddb2b998a |
|
BLAKE2b-256 | d4030a7debfd2ac33d5bb57151adbabae3705e8ba1966ae7295ff8170e3f53f1 |