nova/doc/notification_samples
Balazs Gibizer 4b783a206c Factor out duplicated notification sample data (2)
To remove duplicated data this patch introduce common json fragments for
the instance related notifications and refactors the sample file of
instance.delete.start and instance.delete.end.

The common sample fragments define an active instance as that is the
most common state in the instance action notifications. This way
we can minimize the difference between the common sample and the
generated notification. Still there will be differences. For example
instance.delete.end notification will contain different instance status
and some other deletion related fields are also set. To make sure
the the sample matches with the generated notification we have to
override some of the fields coming from the common sample fragment.
Such overrides could be added in the test case directly to the
_verify_notification() call as it is done in case of dynamic values
like instance uuid. However the sample files not only used in the
functional tests but also during the generation of the notification
dev-ref. To have meaningful samples in the doc we have to do such
overrides during the reference resolving and not directly in the
test case.

Change-Id: I0669a075c94ba2a435116791e3391d8d745bc639
2017-11-06 15:54:09 +01:00
..
common_payloads Factor out duplicated notification sample data (2) 2017-11-06 15:54:09 +01:00
aggregate-add_host-end.json Transform aggregate.add_host notification 2017-09-08 14:14:00 +02:00
aggregate-add_host-start.json Transform aggregate.add_host notification 2017-09-08 14:14:00 +02:00
aggregate-create-end.json handle uninited fields in notification payload 2017-03-03 15:34:41 +01:00
aggregate-create-start.json handle uninited fields in notification payload 2017-03-03 15:34:41 +01:00
aggregate-delete-end.json handle uninited fields in notification payload 2017-03-03 15:34:41 +01:00
aggregate-delete-start.json handle uninited fields in notification payload 2017-03-03 15:34:41 +01:00
aggregate-remove_host-end.json Transform aggregate.remove_host notification 2017-09-08 16:24:10 +02:00
aggregate-remove_host-start.json Transform aggregate.remove_host notification 2017-09-08 16:24:10 +02:00
compute-exception.json Aggregate create and destroy work against API db 2016-08-01 08:22:08 -07:00
flavor-create.json handle uninited fields in notification payload 2017-03-03 15:34:41 +01:00
flavor-delete.json Don't lazy-load flavor.projects during destroy() 2017-05-02 13:45:03 -04:00
flavor-update.json handle uninited fields in notification payload 2017-03-03 15:34:41 +01:00
instance-create-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-create-error.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-create-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-delete-end.json Factor out duplicated notification sample data (2) 2017-11-06 15:54:09 +01:00
instance-delete-start.json Factor out duplicated notification sample data (2) 2017-11-06 15:54:09 +01:00
instance-interface_attach-end.json Add instance.interface_attach notification 2017-09-21 16:56:42 +02:00
instance-interface_attach-error.json Add error notification for instance.interface_attach 2017-10-06 13:45:11 +00:00
instance-interface_attach-start.json Add instance.interface_attach notification 2017-09-21 16:56:42 +02:00
instance-interface_detach-end.json Add instance.interface_detach notification 2017-09-22 14:32:34 +02:00
instance-interface_detach-start.json Add instance.interface_detach notification 2017-09-22 14:32:34 +02:00
instance-live_migration_rollback-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-live_migration_rollback-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-pause-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-pause-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-power_off-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-power_off-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-power_on-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-power_on-start.json Implement power_off/power_on for the FakeDriver 2017-11-02 11:34:42 -04:00
instance-reboot-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-reboot-error.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-reboot-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-rebuild-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-rebuild-error.json Remove dest node allocation if evacuate MoveClaim fails 2017-09-12 11:15:38 -04:00
instance-rebuild-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-resize-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-resize-error.json Transform instance.resize.error notifications 2017-09-12 14:18:58 +00:00
instance-resize-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-resize_finish-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-resize_finish-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-restore-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-restore-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-resume-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-resume-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-shelve-end.json Implement power_off/power_on for the FakeDriver 2017-11-02 11:34:42 -04:00
instance-shelve-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-shelve_offload-end.json Implement power_off/power_on for the FakeDriver 2017-11-02 11:34:42 -04:00
instance-shelve_offload-start.json Implement power_off/power_on for the FakeDriver 2017-11-02 11:34:42 -04:00
instance-shutdown-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-shutdown-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-snapshot-end.json Add snapshot id to the snapshot notifications 2017-10-12 09:13:13 +00:00
instance-snapshot-start.json Add snapshot id to the snapshot notifications 2017-10-12 09:13:13 +00:00
instance-soft_delete-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-soft_delete-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-suspend-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-suspend-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-trigger_crash_dump-end.json Transform instance.trigger_crash_dump notification 2017-10-20 18:40:54 +02:00
instance-trigger_crash_dump-start.json Transform instance.trigger_crash_dump notification 2017-10-20 18:40:54 +02:00
instance-unpause-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-unpause-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-unshelve-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-unshelve-start.json Implement power_off/power_on for the FakeDriver 2017-11-02 11:34:42 -04:00
instance-update-tags-action.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-update.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-volume_attach-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-volume_attach-error.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-volume_attach-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-volume_detach-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-volume_detach-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-volume_swap-end.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-volume_swap-error.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
instance-volume_swap-start.json Add 'updated_at' field to InstancePayload in notifications 2017-07-25 19:31:21 +02:00
keypair-create-end.json Transform keypair.create notification 2017-06-14 07:28:47 +02:00
keypair-create-start.json Transform keypair.create notification 2017-06-14 07:28:47 +02:00
keypair-delete-end.json Transform keypair.delete notification 2017-09-07 14:43:34 -04:00
keypair-delete-start.json Transform keypair.delete notification 2017-09-07 14:43:34 -04:00
keypair-import-end.json Transform keypair.import notification 2017-10-30 16:44:29 -04:00
keypair-import-start.json Transform keypair.import notification 2017-10-30 16:44:29 -04:00
server_group-create.json Transform servergroup.create notification 2017-09-08 10:37:29 +08:00
server_group-delete.json Transform servergroup.delete notification 2017-09-08 13:01:20 +00:00
service-update.json Pre-create migration object 2017-10-05 13:49:15 -07:00