commit | e5cc81b830e81cd2c10e8f7cee9662ba8946bf10 | [log] [tgz] |
---|---|---|
author | Mikhail Kraynov <mkraynov@mirantis.com> | Wed Oct 03 13:01:06 2018 +0400 |
committer | Mikhail Kraynov <mkraynov@mirantis.com> | Wed Oct 03 16:26:02 2018 +0400 |
tree | 1f56da8f0943d911e96528b175f5d18dde8f4aab | |
parent | 2d6a446994e0931d42691f86ecd4ad391aa95cd1 [diff] |
Add DT Jenkins job test Change-Id: I60d65c7347a91dd3bb24f6278507f4948320a299 Related-PROD: PROD-23242
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