Property | Type | Description | |
---|---|---|---|
$hostAdapter | Storyplayer\TestEnvironments\HostAdapter | the adapter to use when interacting with this host | |
$hostId | string | the ID assigned to this host (it's complicated) | |
$osAdapter | Storyplayer\TestEnvironments\OsAdapter | plugin that we use to talk to the operating system running inside this host | |
$parentGroup | TestEnvironment_GroupDefinition | the group that this host belongs to | |
$provisioningParams | DataSift\Stone\ObjectLib\BaseObject | a list of provisioning parameters to send over to any provisioning engine | |
$roles | array |
a list of the roles that this host supports | |
$storySettings | DataSift\Stone\ObjectLib\BaseObject | the settings that apps may be interested in |
Method | Description | |
---|---|---|
__construct ( TestEnvironment_GroupDefinition $parentGroup, $hostId ) | ||
addProvisioningParams ( mixed $extraParams ) : TestEnvironment_HostDefinition | add some extra provisioning parameters to any that have already been defined | |
addRole ( string $roleName ) : void | add an extra role to our list of supported roles | |
getGroupAdapter ( ) : Storyplayer\TestEnvironments\GroupAdapter | get access to the adapter for the group that we belong to | |
getGroupId ( ) : integer | what is the ID of the group that we belong to? | |
getHostAdapter ( ) : Storyplayer\TestEnvironments\HostAdapter | how do we interact with this host? | |
getHostAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject | generate an SPv2.0-style config block describing this host | |
getHostId ( ) : string | what is the ID of this host? | |
getOperatingSystem ( ) : Storyplayer\TestEnvironments\OsAdapter | what operating system is running on this host? | |
getParentGroup ( ) : TestEnvironment_GroupDefinition | which test environment group do we belong to? | |
getProvisioningParams ( ) : DataSift\Stone\ObjectLib\BaseObject | what provisioning params do we have? | |
getRoles ( ) : array |
what roles does this host support? | |
getStorySettings ( ) : DataSift\Stone\ObjectLib\BaseObject | return all of the story settings that this host supports | |
getTestEnvironmentName ( ) : string | what is the name of the test environment that we belong to? | |
hasRole ( string $roleName ) : boolean | does this host support this role? | |
setHostAdapter ( Storyplayer\TestEnvironments\HostAdapter $hostAdapter ) | tell us how to interact with this host | |
setHostId ( string $hostId ) | tell this host what its host ID is | |
setOperatingSystem ( Storyplayer\TestEnvironments\OsAdapter $osAdapter ) | tell this host what operating system is running on this host | |
setParentGroup ( TestEnvironment_GroupDefinition $parentGroup ) : TestEnvironment_HostDefinition | tell us which test environment group we belong to | |
setProvisioningParams ( mixed $rawSettings ) : TestEnvironment_HostDefinition | set our provisioning parameters | |
setRoles ( array |
tell this host what roles it supports | |
setStorySettings ( array | object | null $rawSettings ) | tell this host what story settings it supports |
Method | Description | |
---|---|---|
initProvisioningParams ( ) : void | initialise the provisioning params list |
public __construct ( TestEnvironment_GroupDefinition $parentGroup, $hostId ) | ||
$parentGroup | TestEnvironment_GroupDefinition |
public addProvisioningParams ( mixed $extraParams ) : TestEnvironment_HostDefinition | ||
$extraParams | mixed | the extra parameters to merge in |
return | TestEnvironment_HostDefinition |
public getGroupAdapter ( ) : Storyplayer\TestEnvironments\GroupAdapter | ||
return | Storyplayer\TestEnvironments\GroupAdapter |
public getGroupId ( ) : integer | ||
return | integer |
public getHostAdapter ( ) : Storyplayer\TestEnvironments\HostAdapter | ||
return | Storyplayer\TestEnvironments\HostAdapter |
public getHostAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject | ||
return | DataSift\Stone\ObjectLib\BaseObject |
public getOperatingSystem ( ) : Storyplayer\TestEnvironments\OsAdapter | ||
return | Storyplayer\TestEnvironments\OsAdapter |
public getParentGroup ( ) : TestEnvironment_GroupDefinition | ||
return | TestEnvironment_GroupDefinition |
public getProvisioningParams ( ) : DataSift\Stone\ObjectLib\BaseObject | ||
return | DataSift\Stone\ObjectLib\BaseObject |
public getRoles ( ) : array |
||
return | array |
public getStorySettings ( ) : DataSift\Stone\ObjectLib\BaseObject | ||
return | DataSift\Stone\ObjectLib\BaseObject |
public getTestEnvironmentName ( ) : string | ||
return | string |
protected initProvisioningParams ( ) : void | ||
return | void |
public setHostAdapter ( Storyplayer\TestEnvironments\HostAdapter $hostAdapter ) | ||
$hostAdapter | Storyplayer\TestEnvironments\HostAdapter | the adapter we should use |
public setOperatingSystem ( Storyplayer\TestEnvironments\OsAdapter $osAdapter ) | ||
$osAdapter | Storyplayer\TestEnvironments\OsAdapter | the adapter to use for the relevant operating system |
public setParentGroup ( TestEnvironment_GroupDefinition $parentGroup ) : TestEnvironment_HostDefinition | ||
$parentGroup | TestEnvironment_GroupDefinition | |
return | TestEnvironment_HostDefinition |
public setProvisioningParams ( mixed $rawSettings ) : TestEnvironment_HostDefinition | ||
$rawSettings | mixed | the parameters to set |
return | TestEnvironment_HostDefinition |
public setRoles ( array |
||
$roles | array |
protected HostAdapter,Storyplayer\TestEnvironments $hostAdapter | ||
return | Storyplayer\TestEnvironments\HostAdapter |
protected string $hostId | ||
return | string |
protected OsAdapter,Storyplayer\TestEnvironments $osAdapter | ||
return | Storyplayer\TestEnvironments\OsAdapter |
protected TestEnvironment_GroupDefinition,DataSift\Storyplayer\DefinitionLib $parentGroup | ||
return | TestEnvironment_GroupDefinition |
protected BaseObject,DataSift\Stone\ObjectLib $provisioningParams | ||
return | DataSift\Stone\ObjectLib\BaseObject |
protected array |
||
return | array |