C# Class Microsoft.WindowsAzure.Commands.Test.Utilities.Common.AzureAssert

Mostrar archivo Open project: Azure/azure-powershell

Public Methods

Method Description
AreEqualDeploymentSettings ( PublishContext expected, PublishContext actual ) : void
AreEqualPublishContext ( ServiceSettings settings, string configPath, string deploymentName, string label, string packagePath, string subscriptionId, PublishContext actual ) : void
AreEqualServiceComponents ( ServiceComponents actual ) : void
AreEqualServiceConfiguration ( ServiceConfiguration expected, ServiceConfiguration actual ) : void
AreEqualServiceConfiguration ( ServiceConfiguration actual, string serviceName, RoleInfo roles = null ) : void
AreEqualServiceDefinition ( ServiceDefinition expected, ServiceDefinition actual ) : void
AreEqualServicePathInfo ( CloudProjectPathInfo expected, CloudProjectPathInfo actual ) : void
AreEqualServicePathInfo ( string rootPath, CloudProjectPathInfo actual ) : void
AreEqualServicePathInfo ( string cloudConfig, string cloudPackage, string def, string localConfig, string localPackage, string rootPath, string settings, CloudProjectPathInfo actual ) : void
AreEqualServiceSettings ( ServiceSettings expected, ServiceSettings actual ) : void
AreEqualServiceSettings ( string location, string slot, string storageAccountName, string subscriptionName, ServiceSettings actual ) : void
AzureServiceExists ( string serviceRootPath, string scaffoldFilePath, string serviceName, ServiceSettings settings = null, WebRoleInfo webRoles = null, WorkerRoleInfo workerRoles = null, string webScaff = null, string workerScaff = null, RoleInfo roles = null ) : void
ConfigurationSettingExist ( ConfigConfigurationSetting expected, ConfigConfigurationSetting actual ) : void
ConfigurationSettingExist ( DefinitionConfigurationSetting expected, DefinitionConfigurationSetting actual ) : void
InternalEndpointExists ( InternalEndpoint internalEndpoints, InternalEndpoint internalEndpoint ) : void
IsValidServiceDefinition ( ServiceDefinition actual, string serviceName ) : void

Validates that given service definition is valid against list of web/worker roles. Validation steps: 1. Make sure that name element

IsValidServiceDefinition ( ServiceDefinition actual, string serviceName, WebRoleInfo webRoles = null, WorkerRoleInfo workerRoles = null ) : void

Validates that given service definition is valid for a service. Validation steps: 1. Validates name element matches serviceName 2. Validates web role element has all webRoles with same configuration. 3. Validates worker role element has all workerRoles with same configuration.

LocalResourcesLocalStoreExists ( LocalStore expected, LocalResources actual ) : void
RuntimeIdExists ( Task tasks, string runtimeValue ) : void
RuntimeUrlAndIdExists ( Task tasks, string runtimeValue ) : void
ScaffoldingExists ( string destinationDirectory, string scaffoldFilePath, string roleName = "WebRole" ) : void
StartupTaskExists ( Task tasks, string startupCommand ) : void
WorkerRoleImportsExists ( Import expected, WorkerRole actual ) : void

Private Methods

Method Description
GetCloudRole ( string rootPath, string name ) : RoleSettings

Gets the role settings object from cloud service configuration.

GetLocalRole ( string rootPath, string name ) : RoleSettings

Gets the role settings object from local service configuration.

GetWebRole ( string rootPath, string name ) : WebRole

Gets web role object from service definition.

GetWorkerRole ( string rootPath, string name ) : WorkerRole

Gets worker role object from service definition.

Method Details

AreEqualDeploymentSettings() public static method

public static AreEqualDeploymentSettings ( PublishContext expected, PublishContext actual ) : void
expected PublishContext
actual PublishContext
return void

AreEqualPublishContext() public static method

public static AreEqualPublishContext ( ServiceSettings settings, string configPath, string deploymentName, string label, string packagePath, string subscriptionId, PublishContext actual ) : void
settings ServiceSettings
configPath string
deploymentName string
label string
packagePath string
subscriptionId string
actual PublishContext
return void

AreEqualServiceComponents() public static method

public static AreEqualServiceComponents ( ServiceComponents actual ) : void
actual ServiceComponents
return void

AreEqualServiceConfiguration() public static method

public static AreEqualServiceConfiguration ( ServiceConfiguration expected, ServiceConfiguration actual ) : void
expected ServiceConfiguration
actual ServiceConfiguration
return void

AreEqualServiceConfiguration() public static method

public static AreEqualServiceConfiguration ( ServiceConfiguration actual, string serviceName, RoleInfo roles = null ) : void
actual ServiceConfiguration
serviceName string
roles RoleInfo
return void

AreEqualServiceDefinition() public static method

public static AreEqualServiceDefinition ( ServiceDefinition expected, ServiceDefinition actual ) : void
expected ServiceDefinition
actual ServiceDefinition
return void

AreEqualServicePathInfo() public static method

public static AreEqualServicePathInfo ( CloudProjectPathInfo expected, CloudProjectPathInfo actual ) : void
expected CloudProjectPathInfo
actual CloudProjectPathInfo
return void

AreEqualServicePathInfo() public static method

public static AreEqualServicePathInfo ( string rootPath, CloudProjectPathInfo actual ) : void
rootPath string
actual CloudProjectPathInfo
return void

AreEqualServicePathInfo() public static method

public static AreEqualServicePathInfo ( string cloudConfig, string cloudPackage, string def, string localConfig, string localPackage, string rootPath, string settings, CloudProjectPathInfo actual ) : void
cloudConfig string
cloudPackage string
def string
localConfig string
localPackage string
rootPath string
settings string
actual CloudProjectPathInfo
return void

AreEqualServiceSettings() public static method

public static AreEqualServiceSettings ( ServiceSettings expected, ServiceSettings actual ) : void
expected ServiceSettings
actual ServiceSettings
return void

AreEqualServiceSettings() public static method

public static AreEqualServiceSettings ( string location, string slot, string storageAccountName, string subscriptionName, ServiceSettings actual ) : void
location string
slot string
storageAccountName string
subscriptionName string
actual ServiceSettings
return void

AzureServiceExists() public static method

public static AzureServiceExists ( string serviceRootPath, string scaffoldFilePath, string serviceName, ServiceSettings settings = null, WebRoleInfo webRoles = null, WorkerRoleInfo workerRoles = null, string webScaff = null, string workerScaff = null, RoleInfo roles = null ) : void
serviceRootPath string
scaffoldFilePath string
serviceName string
settings ServiceSettings
webRoles WebRoleInfo
workerRoles WorkerRoleInfo
webScaff string
workerScaff string
roles RoleInfo
return void

ConfigurationSettingExist() public static method

public static ConfigurationSettingExist ( ConfigConfigurationSetting expected, ConfigConfigurationSetting actual ) : void
expected ConfigConfigurationSetting
actual ConfigConfigurationSetting
return void

ConfigurationSettingExist() public static method

public static ConfigurationSettingExist ( DefinitionConfigurationSetting expected, DefinitionConfigurationSetting actual ) : void
expected DefinitionConfigurationSetting
actual DefinitionConfigurationSetting
return void

InternalEndpointExists() public static method

public static InternalEndpointExists ( InternalEndpoint internalEndpoints, InternalEndpoint internalEndpoint ) : void
internalEndpoints InternalEndpoint
internalEndpoint InternalEndpoint
return void

IsValidServiceDefinition() public static method

Validates that given service definition is valid against list of web/worker roles. Validation steps: 1. Make sure that name element
public static IsValidServiceDefinition ( ServiceDefinition actual, string serviceName ) : void
actual ServiceDefinition Service definition to be checked
serviceName string New created service name
return void

IsValidServiceDefinition() public static method

Validates that given service definition is valid for a service. Validation steps: 1. Validates name element matches serviceName 2. Validates web role element has all webRoles with same configuration. 3. Validates worker role element has all workerRoles with same configuration.
public static IsValidServiceDefinition ( ServiceDefinition actual, string serviceName, WebRoleInfo webRoles = null, WorkerRoleInfo workerRoles = null ) : void
actual ServiceDefinition Service definition to be checked
serviceName string New created service name
webRoles WebRoleInfo
workerRoles WorkerRoleInfo
return void

LocalResourcesLocalStoreExists() public static method

public static LocalResourcesLocalStoreExists ( LocalStore expected, LocalResources actual ) : void
expected LocalStore
actual LocalResources
return void

RuntimeIdExists() public static method

public static RuntimeIdExists ( Task tasks, string runtimeValue ) : void
tasks Task
runtimeValue string
return void

RuntimeUrlAndIdExists() public static method

public static RuntimeUrlAndIdExists ( Task tasks, string runtimeValue ) : void
tasks Task
runtimeValue string
return void

ScaffoldingExists() public static method

public static ScaffoldingExists ( string destinationDirectory, string scaffoldFilePath, string roleName = "WebRole" ) : void
destinationDirectory string
scaffoldFilePath string
roleName string
return void

StartupTaskExists() public static method

public static StartupTaskExists ( Task tasks, string startupCommand ) : void
tasks Task
startupCommand string
return void

WorkerRoleImportsExists() public static method

public static WorkerRoleImportsExists ( Import expected, WorkerRole actual ) : void
expected Import
actual WorkerRole
return void