905799e580
![Ryan Rossiter](/assets/img/avatar_default.png)
Because some subobjects of VersionedObject my require arguments to be passed into __init__(), there needs to be a way for the test_compatibility_routines() fixture to pass required args/kwargs to init on certain objects. This change adds the ability to pass 2 mappings to test_compatibility_routines, one for args and one for kwargs. The key of each mapping is the object class that needs the special init args. The value in the args dict will be a list of arguments to pass (becomes *args), and the value in the kwargs dict is a list of kwargs to pass (becomes **kwargs). If there is no key defined, the default value of the args dict is [], and the default of kwargs is {}. *[] is the equivalent of sending no arguments, and **{} is the equivalent of not sending kwargs. Change-Id: I62646b99adca47a9c9fe0f466f7a23ac8fa4553e Related-Bug: #1537882
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%