commit | ec38a1cd96e4862a6f60857f35bccb2059aaf2be | [log] [tgz] |
---|---|---|
author | azvyagintsev <azvyagintsev@mirantis.com> | Tue Dec 18 16:10:14 2018 +0200 |
committer | azvyagintsev <azvyagintsev@mirantis.com> | Tue Dec 18 18:41:55 2018 +0200 |
tree | c178d44ddcee2d8b658f15890ccd279df46d7b7a | |
parent | 8bfc3dc13cb7ef33644c91e5395192c365aa9ba4 [diff] |
Refactor image arch. * Add entrypoint.sh * Misc update for Dockerfile * Move sources to cvp_checks and copy it in image as is Change-Id: Ib812793ac7f7de53313cef8a86a568a7a2c4849e
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 1```bash
3) Create virtualenv and install requirements and package: ```bash # 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