PHP Class Scalr\Tests\Functional\Api\Service\User\V1beta0\Controller\ServersTest

Author: Vlad Dobrovolskiy [email protected]
Afficher le fichier Open project: scalr/scalr

Méthodes publiques

Свойство Type Description
$uuid string

Protected Properties

Свойство Type Description
$loggerConfiguration

Méthodes publiques

Méthode Description
__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 ( )

Méthodes protégées

Méthode Description
tearDown ( )

Private Methods

Méthode Description
waitForChanges ( string $serverId, string $status, integer $timeOut = 300 ) : mixed Waits until status changes

Method Details

__construct() public méthode

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

createTestFarm() public méthode

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

getServer() public méthode

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

listServers() public méthode

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
Résultat array

rebootServer() public méthode

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

resumeServer() public méthode

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

suspendServer() public méthode

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

tearDown() protected méthode

See also: Scalr\Tests\TestCase::tearDown()
protected tearDown ( )

tearDownAfterClass() public static méthode

See also: Scalr\Tests\TestCase::tearDownAfterClass()
public static tearDownAfterClass ( )

terminateServer() public méthode

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

testComplex() public méthode

public testComplex ( )

Property Details

$loggerConfiguration protected_oe static_oe property

See also: Scalr\Tests\Functional\Api\ApiTestCase::$loggerConfiguration
protected static $loggerConfiguration

$uuid public_oe property

public string $uuid
Résultat string