nfv/nfv/nfv-tests/nfv_scenario_tests
Al Bailey cb1b85b13f Add bugbear to flake8 and cleanup some errors
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>
2018-09-13 14:12:48 -05:00
..
data Fix yamllint and bashate tox warnings 2018-07-09 12:06:57 -05:00
tests Add bugbear to flake8 and cleanup some errors 2018-09-13 14:12:48 -05:00
README StarlingX open source release updates 2018-05-31 07:36:51 -07:00
__init__.py StarlingX open source release updates 2018-05-31 07:36:51 -07:00
config.ini Fix VIM automated tests 2018-09-05 13:10:43 -05:00
coverage.ini StarlingX open source release updates 2018-05-31 07:36:51 -07:00
debug.ini StarlingX open source release updates 2018-05-31 07:36:51 -07:00
main.py Python 3 compatibility: use print as a function. 2018-08-30 14:12:10 +08:00
setup.py StarlingX open source release updates 2018-05-31 07:36:51 -07:00

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
#