summaryrefslogtreecommitdiff
path: root/nova/tests/unit/notifications/objects
diff options
context:
space:
mode:
authorBalazs Gibizer <balazs.gibizer@ericsson.com>2016-11-07 16:21:49 +0100
committerBalazs Gibizer <balazs.gibizer@ericsson.com>2017-01-04 17:44:30 +0000
commit8ee3e30bd19571bc1a9e8a5e9d776fbb1435266d (patch)
treee0b16e3bf9f9684caadc93f5ac0d96b34ba7c630 /nova/tests/unit/notifications/objects
parent190d75927456809d169d1c1875a7314831152a39 (diff)
downloadnova-8ee3e30bd19571bc1a9e8a5e9d776fbb1435266d.tar.gz
Transform aggregate.create notification
The aggregate.create.start and aggregate.create.end notifications has been transformed to the versioned notification framework. The notification payload contains the 'id' of the aggregate which is the db primary key. It is added because the REST API also uses the db id instead of the uuid in the os-aggregates' requests and responses. Implements: bp versioned-notification-transformation-ocata Change-Id: I92fe504a8f7dc19b0e1df5884045d4bc0d9e4f98
Diffstat (limited to 'nova/tests/unit/notifications/objects')
-rw-r--r--nova/tests/unit/notifications/objects/test_notification.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/tests/unit/notifications/objects/test_notification.py b/nova/tests/unit/notifications/objects/test_notification.py
index 3721c4b72d..2926f26dc7 100644
--- a/nova/tests/unit/notifications/objects/test_notification.py
+++ b/nova/tests/unit/notifications/objects/test_notification.py
@@ -257,6 +257,8 @@ class TestNotificationBase(test.NoDBTestCase):
notification_object_data = {
+ 'AggregateNotification': '1.0-a73147b93b520ff0061865849d3dfa56',
+ 'AggregatePayload': '1.0-2550af604410af7b4ad5d46fb29ba45b',
'AuditPeriodPayload': '1.0-2b429dd307b8374636703b843fa3f9cb',
'BandwidthPayload': '1.0-ee2616a7690ab78406842a2b68e34130',
'EventType': '1.4-da0f0fbcda143ca96c2ac1b93937c22c',