Свойство | Type | Description | |
---|---|---|---|
$groupAdapter | Storyplayer\TestEnvironments\GroupAdapter | the code that understands what's special about this type of group | |
$groupId | integer | string | which group are we? | |
$hosts | array |
a list of all of the hosts in this group | |
$parentEnv | TestEnvironment_Definition | the test environment that we belong to | |
$provisioningAdapters | array |
a list of provisioning adapters to use for this group |
Méthode | Description | |
---|---|---|
__construct ( TestEnvironment_Definition $parent, $groupId, Storyplayer\TestEnvironments\GroupAdapter $groupAdapter ) | ||
addProvisioningAdapter ( Storyplayer\TestEnvironments\ProvisioningAdapter $adapter ) | add a provisioning adapter to our list | |
getBaseFolder ( ) : string | which folder contains all of our supporting files? | |
getGroupAdapter ( ) : Storyplayer\TestEnvironments\GroupAdapter | get the plugin we use to start and stop this test environment | |
getGroupId ( ) : integer | string | what is our group ID? | |
getGroupType ( ) : string | what type of group are we? | |
getHostAdapterValidator ( ) : Storyplayer\TestEnvironments\HostAdapterValidator | what should we use to validate a host adapter that is being added to one of the hosts in this group? | |
getHosts ( ) : array |
what hosts exist in this group? | |
getHostsAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject | return our hosts, as SPv2.0-style config tree | |
getProvisioningAdapters ( ) : array |
how should we provision this environment? | |
getProvisioningAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject | return our first provisioning adapter, as SPv2.0-style config tree | |
getTestEnvironmentName ( ) : string | which test environment do we belong to? | |
hasProvisioningAdapters ( ) : boolean | do we have any provisioning adapters? | |
newHost ( string $hostId, Storyplayer\TestEnvironments\HostAdapter $hostAdapter ) : TestEnvironment_HostDefinition | start the definition of a host in this group | |
setGroupAdapter ( Storyplayer\TestEnvironments\GroupAdapter $groupAdapter ) : TestEnvironment_GroupDefinition | tell us which plugin to use to start and stop this test environment |
Méthode | Description | |
---|---|---|
requireGroupAdapter ( ) : void | throws an exception if we don't have a valid group adapter to use |
public __construct ( TestEnvironment_Definition $parent, $groupId, Storyplayer\TestEnvironments\GroupAdapter $groupAdapter ) | ||
$parent | TestEnvironment_Definition | |
$groupAdapter | Storyplayer\TestEnvironments\GroupAdapter |
public addProvisioningAdapter ( Storyplayer\TestEnvironments\ProvisioningAdapter $adapter ) | ||
$adapter | Storyplayer\TestEnvironments\ProvisioningAdapter | the provisioning adapter to add |
public getBaseFolder ( ) : string | ||
Résultat | string |
public getGroupAdapter ( ) : Storyplayer\TestEnvironments\GroupAdapter | ||
Résultat | Storyplayer\TestEnvironments\GroupAdapter |
public getGroupId ( ) : integer | string | ||
Résultat | integer | string |
public getGroupType ( ) : string | ||
Résultat | string |
public getHostAdapterValidator ( ) : Storyplayer\TestEnvironments\HostAdapterValidator | ||
Résultat | Storyplayer\TestEnvironments\HostAdapterValidator |
public getHosts ( ) : array |
||
Résultat | array |
public getHostsAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject | ||
Résultat | DataSift\Stone\ObjectLib\BaseObject |
public getProvisioningAdapters ( ) : array |
||
Résultat | array |
public getProvisioningAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject | ||
Résultat | DataSift\Stone\ObjectLib\BaseObject |
public getTestEnvironmentName ( ) : string | ||
Résultat | string |
public hasProvisioningAdapters ( ) : boolean | ||
Résultat | boolean |
public newHost ( string $hostId, Storyplayer\TestEnvironments\HostAdapter $hostAdapter ) : TestEnvironment_HostDefinition | ||
$hostId | string | the ID of this host |
$hostAdapter | Storyplayer\TestEnvironments\HostAdapter | the plugin for this kind of host |
Résultat | TestEnvironment_HostDefinition | the empty host definition, for you to complete |
protected requireGroupAdapter ( ) : void | ||
Résultat | void |
public setGroupAdapter ( Storyplayer\TestEnvironments\GroupAdapter $groupAdapter ) : TestEnvironment_GroupDefinition | ||
$groupAdapter | Storyplayer\TestEnvironments\GroupAdapter | the adapter to use for this group |
Résultat | TestEnvironment_GroupDefinition |
protected GroupAdapter,Storyplayer\TestEnvironments $groupAdapter | ||
Résultat | Storyplayer\TestEnvironments\GroupAdapter |
protected array |
||
Résultat | array |
protected TestEnvironment_Definition,DataSift\Storyplayer\DefinitionLib $parentEnv | ||
Résultat | TestEnvironment_Definition |