nova/doc/ext
Balazs Gibizer 5a5155ea4e Factor out duplicated notification sample data
Versioned notifications are functionally tested against stored sample
data. Also most of the instance notitication shares payload structure.
Today we store a separate sample for every instance notification.
These samples store similar, mostly redundant data. When a new field
is added to the InstancePayload then every instance notification
related sample file needs to be modified. This leads to big and
redundant changes like I18af99479562e2fe5e74e6e1252b804b074fee58.

To remove the redundancy this patch proposes to use json references
in the sample files instead of copy pasting the same notification
sample fragment to every sample.

As a first step this patch introduces a small json ref resolver.
Then subsequent patches will replace the duplicated sample data
with references to common sample fragments.

This proposed resolver supports resolving the refs recursively so
a referenced json fragment can reference further fragments. However
the current implementation does not handle reference loops.
The resolver also supports overriding parts of the referenced
json fragment to support content customization needed in the next
patch.

Change-Id: Ic3ab7d60e4ac12b767fe70bef97b327545a86e74
2017-11-03 11:36:57 +01:00
..
__init__.py add in custom todo, and custom css 2010-11-05 12:49:42 -07:00
feature_matrix.py Fix SafeConfigParser DeprecationWarning in Python 3.2 2016-09-12 13:04:38 +08:00
support_matrix.py doc: Enable pep8 on doc generation code 2017-07-12 14:20:25 +01:00
versioned_notifications.py Factor out duplicated notification sample data 2017-11-03 11:36:57 +01:00