Revision c42be2c0 test/py/ganeti.hypervisor.hv_chroot_unittest.py
b/test/py/ganeti.hypervisor.hv_chroot_unittest.py | ||
---|---|---|
44 | 44 |
def test(self): |
45 | 45 |
instance = objects.Instance(name="fake.example.com", |
46 | 46 |
primary_node="node837-uuid") |
47 |
node = objects.Node(name="node837", uuid="node837-uuid") |
|
48 |
cons = hv_chroot.ChrootManager.GetInstanceConsole(instance, node, {}, {}, |
|
47 |
node = objects.Node(name="node837", uuid="node837-uuid", ndparams={}) |
|
48 |
group = objects.NodeGroup(name="group164", ndparams={}) |
|
49 |
cons = hv_chroot.ChrootManager.GetInstanceConsole(instance, node, group, |
|
50 |
{}, {}, |
|
49 | 51 |
root_dir=self.tmpdir) |
50 | 52 |
self.assertTrue(cons.Validate()) |
51 | 53 |
self.assertEqual(cons.kind, constants.CONS_SSH) |
Also available in: Unified diff