Method | Description | |
---|---|---|
GetRoleRuntimeOverrideUrl ( ServiceDefinition definition, string roleName ) : string |
Get the override url for the specified role
|
|
GetRoleRuntimeUrl ( ServiceDefinition definition, string roleName ) : string |
Get the resolved runtime url for the runtime that will be installed on the given role
|
|
GetTestManifest ( FileSystemHelper helper ) : string |
Write out the test manifest file to a directory under the rootPath
|
|
SetRoleRuntime ( ServiceDefinition definition, string roleName, CloudProjectPathInfo path, string version = null, string overrideUrl = null ) : bool |
Set the runtime properties for a role
|
|
ValidateRoleRuntime ( ServiceDefinition definition, string roleName, string runtimeUrl, string overrideUrl ) : void |
Validate that the actual role runtime values for the given role match the given expected values
|
|
ValidateRoleRuntimeVariable ( Common.Startup roleStartup, string variableName, string expectedValue ) : void |
Asserts that given environment variable exists with it's associated value.
|
|
ValidateRuntimesMatchManifest ( string manifestFile, IEnumerable |
Method | Description | |
---|---|---|
ApplyRuntimeChanges ( ServiceDefinition definition, string roleName, Variable environment ) : bool |
Apply the specified Variable values to the specified role's startup task environment
|
|
GetManifest ( string manifest ) : |
||
GetNodesFromManifest ( string manifestFile, string runtimeType = null ) : List |
||
GetRoleRuntimeEnvironment ( ServiceDefinition definition, string roleName ) : Variable[] |
Get the startup task environment settings for the given role
|
|
SetRuntimeEnvironment ( IEnumerable |
Adds the specified runtime environment setting to the specified runtime environment - either changes the setting in the environment if the setting already exists, or adds a new setting if it does not
|
|
TryGetEnvironmentValue ( Common.Task tasks, string key, string &value ) : bool |
Return the value for the specified setting, if it exists in the given runtime environment
|
|
TryGetWebRole ( ServiceDefinition definition, string roleName, WebRole &role ) : bool |
Try to get the specified web role from the given definiiton
|
|
TryGetWorkerRole ( ServiceDefinition definition, string roleName, WorkerRole &role ) : bool |
Try to get the specified worker role from the given definiiton
|
|
VerifySetting ( string expected, string actual ) : bool |
Verify that a given role variable setting matches expectations, null, blank, empty and whitespace only values are counted as equivalent
|
public static GetRoleRuntimeOverrideUrl ( ServiceDefinition definition, string roleName ) : string | ||
definition | ServiceDefinition | The service definition containing the role |
roleName | string | The name of the role |
return | string |
public static GetRoleRuntimeUrl ( ServiceDefinition definition, string roleName ) : string | ||
definition | ServiceDefinition | The service definition containing the role |
roleName | string | The name of the role |
return | string |
public static GetTestManifest ( FileSystemHelper helper ) : string | ||
helper | FileSystemHelper | The file system helper being used for the test |
return | string |
public static SetRoleRuntime ( ServiceDefinition definition, string roleName, CloudProjectPathInfo path, string version = null, string overrideUrl = null ) : bool | ||
definition | ServiceDefinition | The service containing the role |
roleName | string | The name of the role to change |
path | CloudProjectPathInfo | The path to the service |
version | string | The version of the runtime to be installed |
overrideUrl | string | The value of the override url, if the user wants to opt out of the system |
return | bool |
public static ValidateRoleRuntime ( ServiceDefinition definition, string roleName, string runtimeUrl, string overrideUrl ) : void | ||
definition | ServiceDefinition | The service definition containing the role to validate |
roleName | string | The name of the role to validate |
runtimeUrl | string | The resolved runtime url for the role |
overrideUrl | string | The override url for the role runtime |
return | void |
public static ValidateRoleRuntimeVariable ( Common.Startup roleStartup, string variableName, string expectedValue ) : void | ||
roleStartup | Common.Startup | The role startup |
variableName | string | The environment variable name |
expectedValue | string | The expected value |
return | void |
public static ValidateRuntimesMatchManifest ( string manifestFile, IEnumerable |
||
manifestFile | string | |
packages | IEnumerable |
|
runtimeType | string | |
return | void |