Coder Social home page Coder Social logo

cvp-sanity-checks's Introduction

MCP sanity checks

This is salt-based set of tests for basic verification of MCP deployments

How to start

  1. Clone repo to any node (node must have an access via http to salt master):
   # root@cfg-01:~/# git clone https://github.com/Mirantis/cvp-sanity-checks
   # cd cvp-sanity-checks

Use git config --global http.proxy http://proxyuser:[email protected]:8080 if needed.

  1. Install virtualenv
   # curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
   # tar xvfz virtualenv-X.X.tar.gz
   # cd virtualenv-X.X
   # sudo python setup.py install

or

   # apt-get install python-virtualenv
  1. Create virtualenv and install requirements and package:
   # virtualenv --system-site-packages .venv
   # source .venv/bin/activate
   # pip install --proxy http://$PROXY:8678 -r requirements.txt
   # python setup.py install
   # python setup.py develop
  1. Configure:
   # vim cvp_checks/global_config.yaml

SALT credentials are mandatory for tests.

Other settings are optional (please keep uncommented with default values)

Alternatively, you can specify these settings via env variables:

export SALT_URL=http://10.0.0.1:6969

For array-type settings please do:

export skipped_nodes='ctl01.example.com,ctl02.example.com'
  1. Start tests:
   # pytest --tb=short -sv cvp_checks/tests/

or

   # pytest -sv cvp_checks/tests/ --ignore cvp_checks/tests/test_mtu.py

cvp-sanity-checks's People

Contributors

legan4ik avatar izadorozhna avatar

Watchers

James Cloos avatar  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.