~gandelman-a/ubuntu/precise/nova/UCA_2012.2.1

« back to all changes in this revision

Viewing changes to nova/tests/test_volume_utils.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Adam Gandelman
  • Date: 2012-08-16 14:04:11 UTC
  • mfrom: (1.1.59)
  • Revision ID: package-import@ubuntu.com-20120816140411-8dvudjblnx1w0mwx
Tags: 2012.2~f3-0ubuntu1
[ Chuck Short ]
* New upstream version.
* debian/rules: Re-enable testsuite.
* debian/control:
  - Add python-quantumclient as a build depends.
  - Bump standards to 3.9.3
  - Fix lintian warnings.
  - Recommend python-glanceclient and python-keystoneclient.
  - Add dependency of iptables for nova-network.
* debian/watch: Update
* debian/rules: Do not run pep8 tests since upstream is still using an
  older pep8.
* debian/patches/0001-Update-tools-hacking-for-pep8-1.2-and-
  beyond.patch: Get the testsuite running again.
* debian/nova-volume.install, debian/nova_tgt: Add support for
  persistent volumes.

[ Adam Gandelman ]
* debian/{nova-api.install, nova-api-metadata.install}: Install
  api-metadata.filters. (LP: #1002111)
* debian/control: Added python-glanceclient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from nova import context
21
21
from nova import db
22
22
from nova import flags
23
 
from nova.notifier import test_notifier
24
23
from nova.openstack.common import importutils
25
24
from nova.openstack.common import log as logging
 
25
from nova.openstack.common.notifier import api as notifier_api
 
26
from nova.openstack.common.notifier import test_notifier
26
27
from nova import test
27
28
from nova.volume import utils as volume_utils
28
29
 
39
40
                   stub_network=True,
40
41
                   host='fake')
41
42
        self.stubs.Set(flags.FLAGS, 'notification_driver',
42
 
                'nova.notifier.test_notifier')
 
43
                ['nova.openstack.common.notifier.test_notifier'])
43
44
        self.volume = importutils.import_object(FLAGS.volume_manager)
44
45
        self.user_id = 'fake'
45
46
        self.project_id = 'fake'
48
49
        self.context = context.RequestContext(self.user_id, self.project_id)
49
50
        test_notifier.NOTIFICATIONS = []
50
51
 
 
52
    def tearDown(self):
 
53
        notifier_api._reset_drivers()
 
54
        super(UsageInfoTestCase, self).tearDown()
 
55
 
51
56
    def _create_volume(self, params={}):
52
57
        """Create a test volume"""
53
58
        vol = {}