neutron/neutron/tests/unit/services
Flavio Fernandes 4ac33d1a9b port_forwarding: validate args before invoking db update
Add validator to update_floatingip_port_forwarding so codepath does not
attempt performing invalid database operation. With that, operation fails
right away, with a hint on the offending argument(s).

This is a backport that combines changes from 2 changes that go together:
https://review.opendev.org/#/c/738145/
https://review.opendev.org/#/c/744993/

Note: pep8 failed with following error:
  ./neutron/tests/unit/services/portforwarding/test_pf_plugin.py:237:9:
  ./neutron/tests/unit/services/portforwarding/test_pf_plugin.py:261:9:
    N322  Possible use of no-op mock method. please use assert_called_once_with.
        mock_pf_get_objects.assert_called_once()
        ^
So additional changes were needed for backport.

Change-Id: I8284b22c5d691bfd9eadeb8590c3d4b27d261b04
Closes-Bug: #1878299
(cherry picked from commit f379740348)
(cherry picked from commit 838399f0a4)
2020-08-06 14:38:29 -04:00
..
auto_allocate Add test cases for external network default 2018-02-09 16:55:39 +00:00
l3_router Update neutron files for new over-indentation hacking rule (E117) 2019-01-30 20:05:18 +03:00
logapi Merge "ovs fw: apply the NORMAL action on egress traffic in a single table" into stable/rocky 2018-09-07 18:40:00 +00:00
metering Retry creating iptables managers and adding metering rules 2019-11-04 21:40:22 +00:00
portforwarding port_forwarding: validate args before invoking db update 2020-08-06 14:38:29 -04:00
qos Pluralize binding relationship in Port 2018-07-13 19:37:36 -05:00
revisions Run revision bump operations en masse 2019-11-25 13:55:43 -05:00
trunk Increase number of retries in _process_trunk_subport_bindings 2019-08-29 08:18:44 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_provider_configuration.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00