Exemple #1
0
 /**
  * Change the admin password of the server
  *
  * @param string $password
  * @return boolean
  */
 public function changePassword($password)
 {
     $result = $this->service->changeServerPassword($this->id, $password);
     if ($result !== false) {
         $this->adminPass = $password;
         return true;
     }
     return false;
 }
Exemple #2
0
 /**
  * Test change admin password
  */
 public function testChangeServerPassword()
 {
     self::$adminPass = md5(time() . rand());
     $this->assertTrue($this->rackspace->changeServerPassword(self::$serverId, self::$adminPass));
 }