cb1b85b13f
Added a python3 tool called bugbear as part of flake8 Moved the tox.ini for nfv to a new location. Removed nfv tox calls from the bottom level tox.ini file Specified the queens upper-constraint. This is because the kubernetes client from pike is not what is shipped. Adds a separate tox.ini for nova-api-proxy. Fix two of the errors flagged by bugbear: B006: Do not use mutable data structures for argument defaults. B306: BaseException.message has been deprecated as of Python 2.6 and is removed in Python 3. Fix unused imports in Flake8 F401 '<module>' imported but unused Clean up two pylint errors: W0102 dangerous-default-value W0631 undefined-loop-variable Story: 2003499 Task: 26410 Change-Id: I61deb6a002f963cd58fe019bb54a4c3296809391 Signed-off-by: Al Bailey <Al.Bailey@windriver.com> |
||
---|---|---|
.. | ||
data | ||
tests | ||
README | ||
__init__.py | ||
config.ini | ||
coverage.ini | ||
debug.ini | ||
main.py | ||
setup.py |
README
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # # cd /usr/lib64/python2.7/site-packages/nfv_scenario_tests # # To run without coverage: # clear; python ./main.py -c ./config.ini -d default-data -s submission-setup -t submission-tests # clear; python ./main.py -c ./config.ini -d default-data-guest -s submission-setup-guest -t submission-tests # # To run with coverage: # mkdir -p /var/run/sm/services/ # touch /var/run/sm/services/vim.unmanaged # kill nfv-vim processes # # coverage erase --rcfile ./coverage.ini # coverage run --rcfile ./coverage.ini /usr/bin/nfv-vim -c /etc/nfv/vim/config.ini & # python ./main.py -c ./config.ini # kill nfv-vim processes # coverage report --rcfile ./coverage.ini #