Add revision_number to standard attr for OVO
This adds the revision number field to the standard attributes OVO code. All standard attribute OVO version numbers needed to be bumped but the version numbers were kept the same since the changed objects haven't been released yet. Partially-Implements: blueprint push-notifications Change-Id: I864fe6964b32c7801465e8ebf45ce48f3e8e0cc9
This commit is contained in:
parent
928e16c213
commit
5e6af629b9
|
@ -13,6 +13,7 @@
|
|||
from oslo_versionedobjects import fields as obj_fields
|
||||
|
||||
STANDARD_ATTRIBUTES = {
|
||||
'revision_number': obj_fields.IntegerField(),
|
||||
'description': obj_fields.StringField(nullable=True),
|
||||
'created_at': obj_fields.DateTimeField(nullable=True, tzinfo_aware=False),
|
||||
'updated_at': obj_fields.DateTimeField(nullable=True, tzinfo_aware=False),
|
||||
|
|
|
@ -41,7 +41,7 @@ from neutron.tests import tools
|
|||
SQLALCHEMY_COMMIT = 'sqlalchemy.engine.Connection._commit_impl'
|
||||
OBJECTS_BASE_OBJ_FROM_PRIMITIVE = ('oslo_versionedobjects.base.'
|
||||
'VersionedObject.obj_from_primitive')
|
||||
TIMESTAMP_FIELDS = ['created_at', 'updated_at']
|
||||
TIMESTAMP_FIELDS = ['created_at', 'updated_at', 'revision_number']
|
||||
|
||||
|
||||
class FakeModel(object):
|
||||
|
|
|
@ -37,11 +37,11 @@ object_data = {
|
|||
'QosRuleType': '1.1-8a53fef4c6a43839d477a85b787d22ce',
|
||||
'QosPolicy': '1.1-7c5659e1c1f64395223592d3d3293e22',
|
||||
'Route': '1.0-a9883a63b416126f9e345523ec09483b',
|
||||
'Subnet': '1.0-ebb5120b90ecd4eb9207d3ae5c209f19',
|
||||
'SubnetPool': '1.0-cc182c15eca5ece10c74f923d066163a',
|
||||
'Subnet': '1.0-3737cdae6fe084d0ea5e191ec64e806a',
|
||||
'SubnetPool': '1.0-e8300bfbc4762cc88a7f6205b52da2f8',
|
||||
'SubnetPoolPrefix': '1.0-13c15144135eb869faa4a76dc3ee3b6c',
|
||||
'SubPort': '1.0-72c8471068db1f0491b5480fe49b52bb',
|
||||
'Trunk': '1.0-4963426d21a268170b7e69015e004fc5',
|
||||
'Trunk': '1.0-ee3f16ebc40c16bda7be6dcd963895cc',
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue