PHP 클래스 Scalr\Tests\Functional\Api\Service\User\V1beta0\Controller\ServersTest

저자: Vlad Dobrovolskiy [email protected]
파일 보기 프로젝트 열기: scalr/scalr

공개 프로퍼티들

프로퍼티 타입 설명
$uuid string

보호된 프로퍼티들

프로퍼티 타입 설명
$loggerConfiguration

공개 메소드들

메소드 설명
__construct ( $name = null, $data = [], $dataName = null )
createTestFarm ( string $name, array $rolesNames ) : Farm Creates new farm for testing purposes
getServer ( string $serverId ) : Scalr\Tests\Functional\Api\ApiTestResponse Fetches server's data
listServers ( array $parent = [], array $filters = [] ) : array Describes servers
rebootServer ( string $serverId, boolean $hard = false ) : Scalr\Tests\Functional\Api\ApiTestResponse Reboots the server
resumeServer ( string $serverId ) : Scalr\Tests\Functional\Api\ApiTestResponse Resumes the server
suspendServer ( string $serverId ) : Scalr\Tests\Functional\Api\ApiTestResponse Suspends the server
tearDownAfterClass ( )
terminateServer ( string $serverId, boolean $force = false ) : Scalr\Tests\Functional\Api\ApiTestResponse Terminates the server
testComplex ( )

보호된 메소드들

메소드 설명
tearDown ( )

비공개 메소드들

메소드 설명
waitForChanges ( string $serverId, string $status, integer $timeOut = 300 ) : mixed Waits until status changes

메소드 상세

__construct() 공개 메소드

public __construct ( $name = null, $data = [], $dataName = null )

createTestFarm() 공개 메소드

Creates new farm for testing purposes
public createTestFarm ( string $name, array $rolesNames ) : Farm
$name string Farm name
$rolesNames array Roles names
리턴 Scalr\Model\Entity\Farm

getServer() 공개 메소드

Fetches server's data
public getServer ( string $serverId ) : Scalr\Tests\Functional\Api\ApiTestResponse
$serverId string Server's UUID
리턴 Scalr\Tests\Functional\Api\ApiTestResponse

listServers() 공개 메소드

Describes servers
public listServers ( array $parent = [], array $filters = [] ) : array
$parent array optional Farm or farm role that servers belong to
$filters array optional Filter values
리턴 array

rebootServer() 공개 메소드

Reboots the server
public rebootServer ( string $serverId, boolean $hard = false ) : Scalr\Tests\Functional\Api\ApiTestResponse
$serverId string Server's UUID
$hard boolean optional
리턴 Scalr\Tests\Functional\Api\ApiTestResponse

resumeServer() 공개 메소드

Resumes the server
public resumeServer ( string $serverId ) : Scalr\Tests\Functional\Api\ApiTestResponse
$serverId string Server's UUID
리턴 Scalr\Tests\Functional\Api\ApiTestResponse

suspendServer() 공개 메소드

Suspends the server
public suspendServer ( string $serverId ) : Scalr\Tests\Functional\Api\ApiTestResponse
$serverId string Server's UUID
리턴 Scalr\Tests\Functional\Api\ApiTestResponse

tearDown() 보호된 메소드

또한 보기: Scalr\Tests\TestCase::tearDown()
protected tearDown ( )

tearDownAfterClass() 공개 정적인 메소드

또한 보기: Scalr\Tests\TestCase::tearDownAfterClass()
public static tearDownAfterClass ( )

terminateServer() 공개 메소드

Terminates the server
public terminateServer ( string $serverId, boolean $force = false ) : Scalr\Tests\Functional\Api\ApiTestResponse
$serverId string Server's UUID
$force boolean optional
리턴 Scalr\Tests\Functional\Api\ApiTestResponse

testComplex() 공개 메소드

public testComplex ( )

프로퍼티 상세

$loggerConfiguration 보호되어 있는 정적으로 프로퍼티

또한 보기: Scalr\Tests\Functional\Api\ApiTestCase::$loggerConfiguration
protected static $loggerConfiguration

$uuid 공개적으로 프로퍼티

public string $uuid
리턴 string