commit | 4ccdbf25b36d689f8c6493bbcf17dec4b41b8fd1 | [log] [tgz] |
---|---|---|
author | Oleksii Zhurba <ozhurba@mirantis.com> | Tue Sep 04 21:00:19 2018 -0500 |
committer | Oleksii Zhurba <ozhurba@mirantis.com> | Tue Oct 09 11:55:47 2018 +0300 |
tree | bb2d0c791821ae01c5cad418e7529aa43003d6ae | |
parent | c492a680a1cf03eb0a513cdd0aab3f5aedce0cab [diff] |
Add Dockerfile for cvp-sanity-checks framework Related-PROD: PROD-21316 Change-Id: Iebd92f6838a5cdb09b5e4e4cb2e72a36ea25bfbf
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