Example #1
0
 /**
  * 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');
     }
 }
Example #2
0
 /**
  * Test destroy instance
  */
 public function testDestroyInstance()
 {
     $this->assertTrue(self::$infrastructure->WaitStatusInstance(self::$instanceId, Instance::STATUS_RUNNING));
     $this->assertTrue(self::$infrastructure->destroyInstance(self::$instanceId));
 }