From 839e1a0868d13f39f28ace5604510efbcc7a0c6f Mon Sep 17 00:00:00 2001 From: Luciano Lo Giudice Date: Mon, 20 Sep 2021 20:06:37 -0300 Subject: [PATCH] Don't make assumptions about present devices Instead of using '/dev/vdc' for a test, use a loop device, since it should always be available and it allows us to set a specific size for it. --- zaza/openstack/charm_tests/cinder_lvm/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zaza/openstack/charm_tests/cinder_lvm/tests.py b/zaza/openstack/charm_tests/cinder_lvm/tests.py index 45fd126..a90c0bf 100644 --- a/zaza/openstack/charm_tests/cinder_lvm/tests.py +++ b/zaza/openstack/charm_tests/cinder_lvm/tests.py @@ -94,11 +94,11 @@ class CinderLVMTest(test_utils.OpenStackBaseTest): self.assertTrue(host.startswith('cinder@LVM')) def test_volume_overwrite(self): - """Test creating a volume by overwriting one on the /dev/vdc device.""" + """Test creating a volume by overwriting one on a loop device.""" with self.config_change({'overwrite': 'false', 'block-device': self.block_device}, {'overwrite': 'true', - 'block-device': '/dev/vdc'}): + 'block-device': '/tmp/vol|2G'}): self._create_volume() def test_device_none(self):