Browse Source

Updating to network-runner 0.3.0

Change-Id: I6c08496542cb741f902df9ec7c9b26a5a8bf7b7b
changes/02/788802/1
Dan Radez 1 month ago
parent
commit
78e9f3c8d7
4 changed files with 12 additions and 10 deletions
  1. +0
    -1
      local-upper-constraints.txt
  2. +7
    -4
      networking_ansible/tests/unit/ml2/test_mech_driver.py
  3. +2
    -1
      requirements.txt
  4. +3
    -4
      tox.ini

+ 0
- 1
local-upper-constraints.txt View File

@ -1 +0,0 @@
network-runner===0.2.2

+ 7
- 4
networking_ansible/tests/unit/ml2/test_mech_driver.py View File

@ -18,6 +18,7 @@ import tempfile
import fixtures
from network_runner import api
from network_runner.types import validators
from networking_ansible import exceptions as netans_ml2exc
from neutron.common import test_lib
from neutron.objects import network
@ -53,10 +54,12 @@ class TestLibTestConfigFixture(fixtures.Fixture):
class NetAnsibleML2Base(test_plugin.Ml2PluginV2TestCase):
def setUp(self):
base.patch_neutron_quotas()
with mock.patch(c.COORDINATION) as m_coord:
m_coord.get_coordinator = lambda *args: mock.create_autospec(
coordination.CoordinationDriver).return_value
super(NetAnsibleML2Base, self).setUp()
with mock.patch.object(validators.ChoiceValidator, '__call__',
return_value=None):
with mock.patch(c.COORDINATION) as m_coord:
m_coord.get_coordinator = lambda *args: mock.create_autospec(
coordination.CoordinationDriver).return_value
super(NetAnsibleML2Base, self).setUp()
@mock.patch('networking_ansible.ml2.mech_driver.'


+ 2
- 1
requirements.txt View File

@ -4,7 +4,8 @@
ansible-runner>=1.0.5 # Apache-2.0
debtcollector>=1.21.0
network-runner>=0.2.2 # Apache-2.0
#git+https://github.com/ansible-network/network-runner.git#egg=network-runner
network-runner>=0.3.0 # Apache-2.0
neutron>=16.0.0.0 # Apache-2.0
neutron-lib>=2.4.0 # Apache-2.0
pbr>=2.0 # Apache-2.0


+ 3
- 4
tox.ini View File

@ -12,15 +12,14 @@ setenv =
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -c{toxinidir}/local-upper-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run {posargs}
[testenv:lower-constraints]
setenv = OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:60}
deps =
-c{toxinidir}/local-upper-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt


Loading…
Cancel
Save