コード例 #1
0
 public function testChangeAdminPass()
 {
     if (empty(self::$serverId)) {
         $this->markTestSkipped('The server ID is empty');
     }
     $this->assertTrue($this->compute->changeAdminPass(self::$serverId, '1234567890'));
 }
コード例 #2
0
 /**
  * Change the admin password of the server
  *
  * @param  string $password
  * @return bool
  */
 public function changeAdminPass($password)
 {
     $result = $this->service->changeAdminPass($this->id, $password);
     if ($result) {
         $this->adminPass = $password;
     }
     return $result;
 }