add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running under Python 3.6 as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: I75237ecd79f760684f44ae91691a974dd7a7f01b Story: #2002586 Task: #24306
This commit is contained in:
parent
fdaf37aada
commit
89485dc390
@ -96,6 +96,7 @@
|
||||
templates:
|
||||
- openstack-python-jobs
|
||||
- openstack-python35-jobs
|
||||
- openstack-python36-jobs
|
||||
- release-notes-jobs-python3
|
||||
- publish-openstack-docs-pti
|
||||
- check-requirements
|
||||
|
@ -178,9 +178,9 @@ class IpamTest(kuryr_base.KuryrBaseTest):
|
||||
"Options": {},
|
||||
"Config": [
|
||||
{
|
||||
"Subnet": "10.15.0.0/16",
|
||||
"IPRange": "10.15.0.0/24",
|
||||
"Gateway": "10.15.0.1"
|
||||
"Subnet": "10.13.0.0/16",
|
||||
"IPRange": "10.13.0.0/24",
|
||||
"Gateway": "10.13.0.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -47,15 +47,14 @@ class ConfigurationTest(base.TestKuryrBase):
|
||||
self.assertEqual('kuryr_libnetwork.port_driver.drivers.veth',
|
||||
config.CONF.port_driver)
|
||||
|
||||
@mock.patch.object(sys, 'argv', return_value='[]')
|
||||
@mock.patch('kuryr_libnetwork.controllers.check_for_neutron_tag_support')
|
||||
@mock.patch('kuryr_libnetwork.controllers.check_for_neutron_ext_support')
|
||||
@mock.patch('kuryr_libnetwork.controllers.neutron_client')
|
||||
@mock.patch('kuryr_libnetwork.app.run')
|
||||
def test_start(self, mock_run, mock_neutron_client,
|
||||
mock_check_neutron_ext_support,
|
||||
mock_check_for_neutron_tag_support,
|
||||
mock_sys_argv):
|
||||
mock_check_for_neutron_tag_support):
|
||||
with mock.patch.object(sys, 'argv', ['prog']):
|
||||
start()
|
||||
kuryr_uri = parse.urlparse(config.CONF.kuryr_uri)
|
||||
mock_neutron_client.assert_called_once()
|
||||
|
Loading…
Reference in New Issue
Block a user