4bde2d5237
This patch implments the ovn-nbctl API for the Logical_Switch, Logical_Switch_Port, and DHCP_Options commands. Additional patches will implement logical router and load balancer functionality. As a convenience, the add/list/get commands return a special read-only version of an ovs.db.idl.Row object called a RowView. This object can be compared to a Row for equality and hashing. This saves having to return uuids and then look them up. This behavior differs from the Open_vSwitch schema implementation. This wrapper serves both to keep people from modifying returned values outside of a transaction and as an interface for any future backend to implement. In addition, an ovs virtual environment fixture based on ovs-sandbox is added to set up a sandboxed ovs/ovn install for running functional tests. Change-Id: I93689158467ff73a1b02588510d168b50ed6292a
48 lines
1.3 KiB
INI
48 lines
1.3 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = py35,py27,pypy,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
OS_TEST_PATH=./ovsdbapp/tests/unit
|
|
CLIENT_NAME=ovsdbapp
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
{toxinidir}/tools/coding-checks.sh --pylint '{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:releasenotes]
|
|
commands =
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:functional]
|
|
setenv = {[testenv]setenv}
|
|
OS_TEST_PATH=./ovsdbapp/tests/functional
|
|
OVS_SRCDIR={envdir}/src/ovs
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|