예제 #1
0
 def test_vbd_unplug_check_synchronized(self, mock_synchronized):
     session = mock.Mock()
     volume_utils.vbd_unplug(session, "vbd_ref", "vm_ref:123")
     mock_synchronized.assert_called_once_with("xenapi-events-vm_ref:123")
예제 #2
0
 def test_vbd_unplug_check_synchronized(self, mock_synchronized):
     session = mock.Mock()
     volume_utils.vbd_unplug(session, "vbd_ref", "vm_ref:123")
     mock_synchronized.assert_called_once_with("xenapi-events-vm_ref:123")
예제 #3
0
 def test_vbd_unplug(self):
     session = mock.Mock()
     volume_utils.vbd_unplug(session, "vbd_ref", "vm_ref:123")
     session.call_xenapi.assert_called_once_with("VBD.unplug", "vbd_ref")
예제 #4
0
 def test_vbd_unplug(self):
     session = mock.Mock()
     volume_utils.vbd_unplug(session, "vbd_ref", "vm_ref:123")
     session.call_xenapi.assert_called_once_with("VBD.unplug", "vbd_ref")