Code Monkey home page Code Monkey logo

stacktask-tempest's Introduction

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 virtualenv):

$ 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:

    $ testr list-tests | grep stacktask_tempest_plugin

    This command will show your complete list of test cases inside the plugin.

  1. Run the test cases by name, or include in your tempest test lists.

    $ 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:

$ 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 pypi account, configured in ~/.pypirc

Register the project with pypi:

$ python setup.py register -r pypitest

Upload a new version:

$ 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.

stacktask-tempest's People

Contributors

dalees avatar unexceptable avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.