Fix test for cinder-lvm
Since the charm is now marked stateful, the 'host' attribute of a volume is mangled differently. This change makes the test more robust against future changes as well.
This commit is contained in:
@@ -91,7 +91,7 @@ class CinderLVMTest(test_utils.OpenStackBaseTest):
|
||||
self.assertTrue(test_vol)
|
||||
|
||||
host = getattr(test_vol, 'os-vol-host-attr:host').split('#')[0]
|
||||
self.assertTrue(host.startswith('cinder@LVM'))
|
||||
self.assertIn('@LVM', host)
|
||||
|
||||
def test_volume_overwrite(self):
|
||||
"""Test creating a volume by overwriting one on a loop device."""
|
||||
|
||||
Reference in New Issue
Block a user