Commit f8f415a1 authored by Helga Velroyen's avatar Helga Velroyen
Browse files

Fix unit test regarding recent changes in node_info RPC



This fixes a unit test in instance_storage_unittest.py,
which was affected by the recent change in the RCP
'node_info'.
Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarHrovje Ribicic <riba@google.com>
parent f277f142
......@@ -73,7 +73,8 @@ class TestCheckNodesFreeDiskOnVG(unittest.TestCase):
def testPerformNodeInfoCall(self):
expected_hv_arg = [(self.hvname, self.hvparams)]
expected_storage_arg = {self.node_uuid:
[(constants.ST_LVM_VG, self.vg, [self.es])]}
[(constants.ST_LVM_VG, self.vg, [self.es]),
(constants.ST_LVM_PV, self.vg, [self.es])]}
instance_storage._PerformNodeInfoCall(self.lu, self.node_uuids, self.vg)
self.lu.rpc.call_node_info.assert_called_with(
self.node_uuids, expected_storage_arg, expected_hv_arg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment