commit | daf30795a0cf0e2d05e5a74c5aa1f35771e2bf9f | [log] [tgz] |
---|---|---|
author | Mikhail Chernik <mchernik@mirantis.com> | Thu Aug 09 14:50:06 2018 +0200 |
committer | Mikhail Chernik <mchernik@mirantis.com> | Thu Aug 09 14:50:06 2018 +0200 |
tree | f07fc6eb7675c673db9220995aabb5995710ce5a | |
parent | e502d66ca82942cb7f07df19b606d4e3585ba916 [diff] |
[trivial] Added .gitignore file from py.test source Change-Id: I03e17a22b657170558409c58713d79fab41a2bbc
This is salt-based set of tests for basic verification of MCP deployments
# 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.
# 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
# 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
# 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'
# pytest --tb=short -sv cvp_checks/tests/
or
# pytest -sv cvp_checks/tests/ --ignore cvp_checks/tests/test_mtu.py