diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-12-28 11:25:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-12-28 11:25:11 +0000 |
| commit | 32eb83be79ff19e06b5057dce32052b98368ce40 (patch) | |
| tree | 1261d1c2bd4242a844605d09ccf8f07375ade4a3 /nova/tests | |
| parent | ab135433464865f6612f4b543157d62c05d2fb13 (diff) | |
| parent | b8831091a8d097bb55a0e65c3af254a8bfa88811 (diff) | |
Merge "Remove lxc attaching/detaching of volumes"
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_libvirt.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py index 02578e888..c1016f1f4 100644 --- a/nova/tests/test_libvirt.py +++ b/nova/tests/test_libvirt.py @@ -406,22 +406,6 @@ class LibvirtVolumeTestCase(test.TestCase): self.assertEqual(tree.find('./auth/secret').get('uuid'), flags_uuid) libvirt_driver.disconnect_volume(connection_info, mount_device) - def test_libvirt_lxc_volume(self): - self.stubs.Set(os.path, 'exists', lambda x: True) - libvirt_driver = volume.LibvirtISCSIVolumeDriver(self.fake_conn) - name = 'volume-00000001' - location = '10.0.2.15:3260' - iqn = 'iqn.2010-10.org.openstack:%s' % name - vol = {'id': 1, 'name': name} - connection_info = self.iscsi_connection(vol, location, iqn) - mount_device = "vde" - conf = libvirt_driver.connect_volume(connection_info, mount_device) - tree = conf.format_dom() - dev_str = '/dev/disk/by-path/ip-%s-iscsi-%s-lun-1' % (location, iqn) - self.assertEqual(tree.get('type'), 'block') - self.assertEqual(tree.find('./source').get('dev'), dev_str) - libvirt_driver.disconnect_volume(connection_info, mount_device) - def test_libvirt_nfs_driver(self): # NOTE(vish) exists is to make driver assume connecting worked mnt_base = '/mnt' |
