37005c310e
![Martin Hickey](/assets/img/avatar_default.png)
There is a temp registry pattern [1] where you can backup the object registry, register a class locally, and then restore the original registry. This could be used for test objects that do not need to be registered permanently but will have calls which lookup registration. The FakeResource object in patch [2] is such a use case. This change is to wrap the pattern rather than accessing oslo.versionedobjects library internals. [1] https://review.openstack.org/#/c/243826/4/cinder/test.py [2] https://review.openstack.org/#/c/258026/ Change-Id: I02036becb32f8d3d11170c71e14e0a2db55d1f76
oslo.versionedobjects
The oslo.versionedobjects library provides a generic versioned object model that is RPC-friendly, with inbuilt serialization, field typing, and remotable method calls. It can be used to define a data model within a project independent of external APIs or database schema for the purposes of providing upgrade compatibility across distributed services.
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/oslo.versionedobjects
- Source: http://git.openstack.org/cgit/openstack/oslo.versionedobjects
- Bugs: http://bugs.launchpad.net/oslo.versionedobjects
Description
Languages
Python
100%