summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-02-02 20:09:03 +0000
committerGerrit Code Review <review@openstack.org>2012-02-02 20:09:03 +0000
commited516883faca1976acd6e5a9476d447d39e11ab9 (patch)
tree0dbcc91d8abe0e8b26a38915b726c855f41fc0cf /nova/tests
parent2494b2d925a8fd161999b4d59b6831498c7ae62f (diff)
parent3b741bad7a961ad8f2ec9e52614d49fdf961bdb6 (diff)
Merge "Capture bandwidth usage data before resize."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_compute.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py
index 54137a55c..400e6949f 100644
--- a/nova/tests/test_compute.py
+++ b/nova/tests/test_compute.py
@@ -1036,12 +1036,15 @@ class ComputeTestCase(BaseTestCase):
instance_uuid,
'pre-migrating')
- self.assertEquals(len(test_notifier.NOTIFICATIONS), 2)
+ self.assertEquals(len(test_notifier.NOTIFICATIONS), 3)
msg = test_notifier.NOTIFICATIONS[0]
self.assertEquals(msg['event_type'],
- 'compute.instance.resize.prep.start')
+ 'compute.instance.exists')
msg = test_notifier.NOTIFICATIONS[1]
self.assertEquals(msg['event_type'],
+ 'compute.instance.resize.prep.start')
+ msg = test_notifier.NOTIFICATIONS[2]
+ self.assertEquals(msg['event_type'],
'compute.instance.resize.prep.end')
self.assertEquals(msg['priority'], 'INFO')
payload = msg['payload']