neutron/neutron/tests/unit/services
Slawek Kaplonski 39f7e12993 Bump revision number of objects when description is changed
"Description" attribute belongs to the StandardAttribute class from
which many other classes inherits (like e.g. Network, Port or Subnet).
In case when only description of object is updated, revision number of
the object should be bumped but it wasn't the case for all of the
objects. For example updated description of the Network or Router didn't
bumped its revision_number. It was like that because StandardAttribute
object was the only one which was dirty in the session, and as it is not
member of the HasStandardAttibutes class, it was filtered out.

Now, to fix that problem revision_plugin looks in the session.dirty list
for objects which inherits from HasStandardAttibutes class (as it was
before) but also for StandardAttribute objects to bump revision numbers.

Closes-Bug: #1981817
Closes-Bug: #1865173
Change-Id: I79b40a8ae5d594ed6fc875572663469c8b701202
(cherry picked from commit 4c9cb83d6b)
2022-08-29 08:53:18 +00:00
..
auto_allocate remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
conntrack_helper Conntrack Helper - Plugin 2019-08-29 10:41:04 +02:00
l3_router trivial: Make driver_controller's _attrs_to_driver py3 compatible 2021-04-30 06:30:55 +00:00
logapi [OVS][FW] Initialize ConjIdMap._max_id depending on the current OFs 2021-11-26 12:31:45 +00:00
metering Retry creating iptables managers and adding metering rules 2019-07-13 16:10:19 +03:00
network_segment_range Fix error 500 during segment range creation 2019-04-05 10:26:36 +02:00
ovn_l3 [OVN] Handle RouterNotFound exception in set_gateway_mtu 2022-02-28 14:51:52 +01:00
placement_report Locate RP-tree parent by hypervisor name 2019-12-10 10:21:53 +01:00
portforwarding port_forwarding: validate args before invoking db update 2020-08-06 14:19:25 -04:00
qos Add minimum bw qos rule validation for network 2021-03-09 10:09:10 +00:00
revisions Bump revision number of objects when description is changed 2022-08-29 08:53:18 +00:00
trunk Ensure subports status is aligned with parent port 2022-02-21 09:46:49 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_provider_configuration.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00