~ubuntu-branches/ubuntu/trusty/cinder/trusty

« back to all changes in this revision

Viewing changes to cinder/tests/test_drivers_compatibility.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Yolanda Robla Mota, James Page, Chuck Short
  • Date: 2013-02-22 10:45:17 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130222104517-ng3r6ace9vi4m869
Tags: 2013.1.g3-0ubuntu1
[ Yolanda Robla Mota ]
* d/control: Add BD on python-hp3parclient.
* d/patches: Drop patches related to disabling hp3parclient.

[ James Page ]
* d/control: Add Suggests: python-hp3parclient for python-cinder.
* d/control: Add BD on python-oslo-config.
* d/*: Wrapped and sorted.

[ Chuck Short ]
* New upstream release.
* debian/rules, debian/cinder-volumes.install: 
  - Fail if binaries are missing and install missing binaries.
* debian/patches/fix-ubuntu-tests.patch: Fix failing tests.
* debian/control: Add python-rtslib and python-mock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
from cinder import flags
17
17
from cinder.openstack.common import importutils
18
18
from cinder import test
 
19
from cinder.volume.drivers.solidfire import SolidFire
19
20
 
20
21
FLAGS = flags.FLAGS
21
22
 
25
26
SAN_MODULE = "cinder.volume.drivers.san.san.SanISCSIDriver"
26
27
SOLARIS_MODULE = "cinder.volume.drivers.san.solaris.SolarisISCSIDriver"
27
28
LEFTHAND_MODULE = "cinder.volume.drivers.san.hp_lefthand.HpSanISCSIDriver"
28
 
NETAPP_MODULE = "cinder.volume.drivers.netapp.NetAppISCSIDriver"
29
 
NETAPP_CMODE_MODULE = "cinder.volume.drivers.netapp.NetAppCmodeISCSIDriver"
30
 
NETAPP_NFS_MODULE = "cinder.volume.drivers.netapp_nfs.NetAppNFSDriver"
 
29
NETAPP_MODULE = "cinder.volume.drivers.netapp.iscsi.NetAppISCSIDriver"
 
30
NETAPP_CMODE_MODULE =\
 
31
    "cinder.volume.drivers.netapp.iscsi.NetAppCmodeISCSIDriver"
 
32
NETAPP_NFS_MODULE = "cinder.volume.drivers.netapp.nfs.NetAppNFSDriver"
31
33
NFS_MODULE = "cinder.volume.drivers.nfs.NfsDriver"
32
34
SOLIDFIRE_MODULE = "cinder.volume.drivers.solidfire.SolidFire"
33
35
STORWIZE_SVC_MODULE = "cinder.volume.drivers.storwize_svc.StorwizeSVCDriver"
39
41
class VolumeDriverCompatibility(test.TestCase):
40
42
    """Test backwards compatibility for volume drivers."""
41
43
 
 
44
    def fake_update_cluster_status(self):
 
45
        return
 
46
 
42
47
    def setUp(self):
43
48
        super(VolumeDriverCompatibility, self).setUp()
44
49
        self.manager = importutils.import_object(FLAGS.volume_manager)
48
53
        super(VolumeDriverCompatibility, self).tearDown()
49
54
 
50
55
    def _load_driver(self, driver):
 
56
        if 'SolidFire' in driver:
 
57
            # SolidFire driver does update_cluster stat on init
 
58
            self.stubs.Set(SolidFire, '_update_cluster_status',
 
59
                           self.fake_update_cluster_status)
51
60
        self.manager.__init__(volume_driver=driver)
52
61
 
53
62
    def _driver_module_name(self):