Mirantis/cvp-sanity-checks

Name: cvp-sanity-checks

Owner: Mirantis Inc.

Description: null

Created: 2017-09-21 14:05:19.0

Updated: 2017-10-12 15:45:11.0

Pushed: 2018-01-16 00:56:39.0

Homepage: null

Size: 47

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:proxypwd@proxy.server.com:8080 if needed.

2) 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

3) 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

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

rt SALT_URL=http://10.0.0.1:6969

For array-type settings please do:

rt skipped_nodes='ctl01.example.com,ctl02.example.com'

5) Start tests:

 pytest --tb=short -sv cvp_checks/tests/

or

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.