objects: exclude revision_number from updatable fields
Revision service plugin is the entity that updates the database model
attribute, and we don't allow to modify the attribute on API layer. We
should not allow to explicitly update it on OVO layer either.
This can help with spurious unit test failures that sometimes try to
update revision number and then reuse the same number to fetch the
object. If revision service plugin decides to bump the number during the
test case execution once more, using the old number may yield no
results.
Reviewed: https:/ /review. openstack. org/490942 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=76b4df2622e 95c38b477371e27 747ac2f6770c63
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 76b4df2622e95c3 8b477371e27747a c2f6770c63
Author: Ihar Hrachyshka <email address hidden>
Date: Wed May 31 10:15:16 2017 -0700
objects: exclude revision_number from updatable fields
Revision service plugin is the entity that updates the database model
attribute, and we don't allow to modify the attribute on API layer. We
should not allow to explicitly update it on OVO layer either.
This can help with spurious unit test failures that sometimes try to
update revision number and then reuse the same number to fetch the
object. If revision service plugin decides to bump the number during the
test case execution once more, using the old number may yield no
results.
Conflicts: objects/ extensions/ standardattribu tes.py
neutron/
Closes-Bug: #1694753 8508738b739207f 754847c62bc b4f79fad0b992d0 f27d2a100f) 419b85cc15727fe c283938f56)
Change-Id: I4666c672223ac3
(cherry picked from commit 9b809fcc60d7e09
(cherry picked from commit 2272a00f77b73fd