Revision 8ef418bb test/py/ganeti.hypervisor.hv_xen_unittest.py

b/test/py/ganeti.hypervisor.hv_xen_unittest.py
48 48

  
49 49
class TestConsole(unittest.TestCase):
50 50
  def test(self):
51
    for cls in [hv_xen.XenPvmHypervisor, hv_xen.XenHvmHypervisor]:
51
    hvparams = {constants.HV_XEN_CMD: constants.XEN_CMD_XL}
52
    for cls in [hv_xen.XenPvmHypervisor(), hv_xen.XenHvmHypervisor()]:
52 53
      instance = objects.Instance(name="xen.example.com",
53 54
                                  primary_node="node24828")
54
      cons = cls.GetInstanceConsole(instance, {}, {})
55
      cons = cls.GetInstanceConsole(instance, hvparams, {})
55 56
      self.assertTrue(cons.Validate())
56 57
      self.assertEqual(cons.kind, constants.CONS_SSH)
57 58
      self.assertEqual(cons.host, instance.primary_node)

Also available in: Unified diff