Skip to content

Commit 6814b2e

Browse files
committed
fix test_update_slaves_on_cbt_disable
Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
1 parent 047426f commit 6814b2e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/test_LVMSR.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,28 @@ def test_update_slaves_on_cbt_disable(self, mock_xenapi, mock_lock):
588588
sr = self.create_LVMSR()
589589
sr.isMaster = True
590590

591+
self.mock_sr_util.pathexists.side_effect = [
592+
False,
593+
False,
594+
False, # AIO
595+
True, # VHD
596+
False, # QCOW2
597+
False,
598+
True,
599+
True,
600+
False,
601+
False, # AIO
602+
True, # VHD
603+
False, # QCOW2
604+
False,
605+
True,
606+
False,
607+
True,
608+
False,
609+
True,
610+
False
611+
]
612+
591613
vdi = sr.vdi(vdi_uuid)
592614
vdi.vdi_type = vhdutil.VDI_TYPE_VHD
593615

0 commit comments

Comments
 (0)