/** * Test reboot and instance */ public function testRebootInstance() { if (self::$infrastructure->WaitStatusInstance(self::$instanceId, Instance::STATUS_RUNNING)) { $this->assertTrue(self::$infrastructure->rebootInstance(self::$instanceId)); } else { $this->markTestSkipped('I cannot reboot the instance because is not in the running state'); } }
/** * Test destroy instance */ public function testDestroyInstance() { $this->assertTrue(self::$infrastructure->WaitStatusInstance(self::$instanceId, Instance::STATUS_RUNNING)); $this->assertTrue(self::$infrastructure->destroyInstance(self::$instanceId)); }