Ryan Rossiter 905799e580 Add ability to pass args/kwargs to obj_class init
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
2016-01-26 16:49:06 +00:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2016-01-16 03:31:33 +00:00
2015-09-17 12:16:17 +00:00
2015-12-09 17:59:31 +08:00

oslo.versionedobjects

Latest Version

Downloads

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.

Description
OpenStack versioned objects library
Readme 7 MiB
Languages
Python 100%