Beispiel #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');
     }
 }
Beispiel #2
0
 /**
  * Test reboot and instance
  */
 public function testRebootInstance()
 {
     $this->assertTrue($this->infrastructure->rebootInstance(self::SERVER_ID));
     $this->assertTrue($this->infrastructure->isSuccessful());
 }