Comment 4 for bug 1926399

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/788463
Committed: https://opendev.org/openstack/neutron/commit/de295f036df2cedec9de4c25f344ebb770f66e0a
Submitter: "Zuul (22348)"
Branch: master

commit de295f036df2cedec9de4c25f344ebb770f66e0a
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Apr 28 09:36:07 2021 +0000

    Do not include dynamically loaded values into OVO testing

    Those OVO values loaded dynamically (for example [1]) should not be
    added to the tested object. A dynamic column in a DB register is a
    ``sqlalchemy.orm.AppenderQuery`` object that represents the needed
    query to retrieve this value.

    These OVO fields, mapped from the DB object, should be considered as
    synthetic fields and not be included in
    ``_BaseObjectTestCase.obj_fields``.

    [1]https://github.com/openstack/neutron/blob/ff2464bf33f1c84bd8525eca68c5774f5e14f1f1/neutron/db/models/securitygroup.py#L103-L106

    Closes-Bug: #1926399

    Change-Id: I4b59dbc71316eede52b22c0788de5fd682fbff30