Added contition to remove disabled repos from the fetched dict.

Sometimes happens that "linux:system:repo" list has disabled repos,
for example: "mk_openstack": {"enabled": false} on some nodes. Currectly
the test test_list_of_repo_on_nodes() does not take this into account,
checks all repos and fails. Seems like disabled repos are accepted
and in this case test should not fail if there is no repo.

Added contition to remove disabled repos from the fetched dict.
1 file changed
tree: 6008f26598afdfd8e299f85edfdd48d0b61ef648
  1. cvp_checks/
  2. docs/
  3. LICENSE
  4. Makefile
  5. README.md
  6. requirements.txt
  7. setup.py
README.md

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.

  1. 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
  1. 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
  1. 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:

export SALT_URL=http://10.0.0.1:6969

For array-type settings please do:

export skipped_nodes='ctl01.example.com,ctl02.example.com'
  1. Start tests:
   # pytest --tb=short -sv cvp_checks/tests/

or

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