diff options
author | Swann Croiset <swann@oopss.org> | 2014-01-27 14:51:18 +0100 |
---|---|---|
committer | Swann Croiset <swann@oopss.org> | 2014-01-29 18:52:35 +0100 |
commit | 793fbf6a472f042d8738a2947947ed59c1c43b0b (patch) | |
tree | bd049359a9162f2c83ccfefde1a1ae7c89d242af /heat/tests/test_notifications.py | |
parent | ae02ce4c349188686702887231c9677b157d9403 (diff) | |
download | heat-793fbf6a472f042d8738a2947947ed59c1c43b0b.tar.gz |
Fix event_type names for stack CRUD notifications
According to the documentation [1] and for consistency, notifications
sent by Heat for stack CRUD operations must be :
orchestration.stack.{create,update,delete,suspend,resume}.{start,error,end}
Currently the notifications sent looks like (missing 'stack.')
orchestration.{create,update,delete,suspend,resume}.{start,error,end}
[1] https://wiki.openstack.org/wiki/SystemUsageData
Fixes bug #1273240
Change-Id: Id46158c495f10436b62755deaf5b6a91e2e7e4bc
Diffstat (limited to 'heat/tests/test_notifications.py')
-rw-r--r-- | heat/tests/test_notifications.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/heat/tests/test_notifications.py b/heat/tests/test_notifications.py index 6cee7e71c..c636c9c88 100644 --- a/heat/tests/test_notifications.py +++ b/heat/tests/test_notifications.py @@ -90,7 +90,7 @@ class NotificationTest(common.HeatTestCase): self.expected[action] = [ mock.call(self.ctx, 'orchestration.test_host', - 'orchestration.%s.start' % action, + 'orchestration.stack.%s.start' % action, 'INFO', {'state_reason': 'Stack %s started' % action.upper(), 'user_id': 'test_username', @@ -100,7 +100,7 @@ class NotificationTest(common.HeatTestCase): 'stack_name': self.stack_name, 'state': '%s_IN_PROGRESS' % action.upper()}), mock.call(self.ctx, 'orchestration.test_host', - 'orchestration.%s.end' % action, + 'orchestration.stack.%s.end' % action, 'INFO', {'state_reason': 'Stack %s completed successfully' % action, |