~zulcss/nova/nova-precise-g3

« back to all changes in this revision

Viewing changes to nova/tests/test_notifications.py

  • Committer: Chuck Short
  • Date: 2013-02-25 12:48:57 UTC
  • mfrom: (94.1.5 raring-proposed)
  • Revision ID: zulcss@ubuntu.com-20130225124857-iiz7w0zqhjo1sbs3
* New upstream release for the Ubuntu Cloud Archive. 
* New usptream release. 
* debian/patches/debian/patches/fix-ubuntu-tests.patch: Refreshed.
* debian/nova-baremetal.logrotate: Fix logfile path.
* debian/control, debian/nova-spiceproxy.{install, logrotate, upstart}:
  Add spice html5 proxy support.
* debian/nova-novncproxy.upstart: Start on runlevel [2345]
* debian/rules: Call testr directly since run_tests.sh -N gives weird return
  value when tests pass.
* debian/pyddist-overrides: Add websockify.
* debian/nova-common.postinst: Removed config file conversion, since
  the option is no longer available. (LP: #1110567)
* debian/control: Add python-pyasn1 as a dependency.
* debian/control: Add python-oslo-config as a dependency.
* debian/control: Suggest sysfsutils, sg3-utils, multipath-tools for fibre
  channel support.
* debian/control: Fix typo (websocikfy -> websockify).
* SECURITY UPDATE: fix lack of authentication on block device used for
  os-volume_boot
  - debian/patches/CVE-2013-0208.patch: adjust nova/compute/api.py to
    validate we can access the volumes
  - CVE-2013-0208

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
import copy
21
21
 
 
22
from oslo.config import cfg
 
23
 
22
24
from nova.compute import instance_types
23
25
from nova.compute import task_states
24
26
from nova.compute import vm_states
26
28
from nova import db
27
29
from nova.network import api as network_api
28
30
from nova import notifications
29
 
from nova.openstack.common import cfg
30
31
from nova.openstack.common import log as logging
31
32
from nova.openstack.common.notifier import api as notifier_api
32
33
from nova.openstack.common.notifier import test_notifier
187
188
        params = {"task_state": task_states.SPAWNING}
188
189
        (old_ref, new_ref) = db.instance_update_and_get_original(self.context,
189
190
                self.instance['uuid'], params)
190
 
        print old_ref["task_state"]
191
 
        print new_ref["task_state"]
192
191
        notifications.send_update(self.context, old_ref, new_ref)
193
192
 
194
193
        self.assertEquals(1, len(test_notifier.NOTIFICATIONS))