301
301
self.compute.resume_instance(self.context, instance_id)
302
302
self.compute.terminate_instance(self.context, instance_id)
304
def test_reboot(self):
305
"""Ensure instance can be rebooted"""
306
instance_id = self._create_instance()
307
self.compute.run_instance(self.context, instance_id)
308
self.compute.reboot_instance(self.context, instance_id)
304
def test_soft_reboot(self):
305
"""Ensure instance can be soft rebooted"""
306
instance_id = self._create_instance()
308
self.compute.run_instance(self.context, instance_id)
309
self.compute.reboot_instance(self.context, instance_id, reboot_type)
310
self.compute.terminate_instance(self.context, instance_id)
312
def test_hard_reboot(self):
313
"""Ensure instance can be hard rebooted"""
314
instance_id = self._create_instance()
316
self.compute.run_instance(self.context, instance_id)
317
self.compute.reboot_instance(self.context, instance_id, reboot_type)
309
318
self.compute.terminate_instance(self.context, instance_id)
311
320
def test_set_admin_password(self):