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:
Luciano Lo Giudice
2021-10-07 22:07:00 -03:00
parent aa3807dfcc
commit 2a4ad7f74e

View File

@@ -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."""