neutron/neutron/tests/unit
Slawek Kaplonski 414bdd4c59 Don't specify exactly IP in portforwarding functional test
In Port Forwarding functional tests, port is created in setUp()
method. This port had specified exactly IP address and subnet to use.
This was proposed in [1] to fix issue when new port created in same
subnet got sometimes IP address outside of subnet range.
Unfortunatelly that fix was not enough and caused other issues
as sometimes this "fixed" IP address used for port might be
used e.g. by router_interface port and that caused sometimes
"409 conflict" response from Neutron sometimes.

This patch adds additional method in
neutron.tests.unit.db.test_db_base_plugin_v2 module to find first
free IP address from given subnet.
This method is now used in port forwarding tests module to choose
IP address for second created port in the subnet so there should be
no conflicts with IP addresses anymore.

[1] https://review.openstack.org/#/c/631815

Change-Id: Iee2f72acf6814a0f8f76d240862429a8b63c3b09
Closes-bug: #1813540
2019-02-04 06:27:21 +01:00
..
agent Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
api Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
cmd Upgrade check command - add support for 3rd party checks 2018-12-18 11:23:03 +01:00
common Merge "ovs-agent: Report resource info in heartbeat" 2018-10-22 20:03:06 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Refactor duplicated implementation of _get_policy_obj 2018-06-20 09:51:02 +08:00
db Don't specify exactly IP in portforwarding functional test 2019-02-04 06:27:21 +01:00
debug Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
extensions Merge "use payloads for all SUBNETPOOL_ADDRESS_SCOPE events" 2019-01-31 10:38:34 +00:00
hacking Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00
ipam Add bulk IP address assignment to ipam driver 2018-11-19 11:29:13 -05:00
notifiers Send global_request_id for tracing calls from neutron to nova 2018-11-30 05:41:24 +00:00
objects Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
privileged Correct arguments to nfct_open 2019-01-24 08:41:38 +00:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler Merge "DVR: Centralized FloatingIPs are not cleared after migration." 2018-11-15 09:37:22 +00:00
services Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
tests Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py use neutron-lib servicetype api def 2018-03-27 14:32:44 -06:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Implement filter validation 2018-07-19 04:13:43 +00:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Add ext_parent policy check 2018-08-01 02:45:42 +08:00
test_service.py use callback payloads for _SPAWN events 2017-12-21 11:03:36 -07:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
testlib_api.py use context manager from neutron-lib 2018-10-24 07:18:46 -06:00