Skip to content

Commit

Permalink
Corrects Mitaka systemd-run patch with a missing variable change
Browse files Browse the repository at this point in the history
  • Loading branch information
casusbelli committed Mar 22, 2017
1 parent 172aa0f commit 2bc9bd3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions systemd-cgroup_patch/Mitaka/systemd-run_mitaka_plain-diff.patch
Original file line number Diff line number Diff line change
Expand Up @@ -100,24 +100,17 @@ index 8d16cad..78f42da 100644

@mock.patch.object(quobyte.LOG, "error")
@mock.patch.object(utils, "execute")
@@ -324,12 +359,14 @@ class LibvirtQuobyteVolumeDriverTestCase(

libvirt_driver.disconnect_volume(connection_info, "vde")

- def test_libvirt_quobyte_driver_mount_non_quobyte_volume(self):
+ @mock.patch.object(libvirt_utils, 'is_mounted', return_value=True)
+ def test_libvirt_quobyte_driver_mount_non_quobyte_volume(self,
+ mock_is_mounted):
@@ -324,8 +359,8 @@ class LibvirtQuobyteVolumeDriverTestCase(
mnt_base = '/mnt'
self.flags(quobyte_mount_point_base=mnt_base, group='libvirt')

libvirt_driver = quobyte.LibvirtQuobyteVolumeDriver(self.fake_conn)
libvirt_driver = quobyte.LibvirtQuobyteVolumeDriver(self.fake_host)
- export_string = 'quobyte://192.168.1.1/volume-00001'
+ export_string = 'quobyte:192.168.1.1/volume-00001'

connection_info = {'data': {'export': export_string,
'name': self.name}}
@@ -345,6 +382,8 @@ class LibvirtQuobyteVolumeDriverTestCase(
@@ -341,6 +376,8 @@ class LibvirtQuobyteVolumeDriverTestCase(
libvirt_driver.connect_volume,
connection_info,
self.disk_info)
Expand Down

0 comments on commit 2bc9bd3

Please sign in to comment.