C# Class Microsoft.WindowsAzure.Commands.ScenarioTest.Common.ServiceManagementTestEnvironmentFactory

Inheritance: Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironmentFactory
Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Méthodes publiques

Méthode Description
GetTestEnvironmentFromPublishSettingsFile ( string filePath ) : Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment

Get the test environment from a publish settings file

Méthodes protégées

Méthode Description
GetCertificateTestEnvironment ( ) : Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment

Get certificate test credentials and target management URI from environment variables

GetCertificateTestEnvironmentFromConnectionString ( string testConnectionString ) : Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment

Get the test environment from a connection string specifying a certificate

GetTestEnvironmentFromContext ( ) : Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment

Create a Certificate based on current environment variables

Private Methods

Méthode Description
GetCertificateFromBase64String ( string base64String ) : X509Certificate2

Create a certificate from a base-64 encoded string

GetCertificateFromReference ( string thumbprint ) : X509Certificate2

Given a thumbprint string, retrieve the associated certificate

IsCertificateReference ( string potentialReference ) : bool

Determine if a given management certificate setting is a base-64 encoded certificate or a thumbprint certificate reference

Method Details

GetCertificateTestEnvironment() protected méthode

Get certificate test credentials and target management URI from environment variables
protected GetCertificateTestEnvironment ( ) : Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment
Résultat Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment

GetCertificateTestEnvironmentFromConnectionString() protected méthode

Get the test environment from a connection string specifying a certificate
protected GetCertificateTestEnvironmentFromConnectionString ( string testConnectionString ) : Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment
testConnectionString string The connection string to parse
Résultat Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment

GetTestEnvironmentFromContext() protected méthode

Create a Certificate based on current environment variables
protected GetTestEnvironmentFromContext ( ) : Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment
Résultat Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment

GetTestEnvironmentFromPublishSettingsFile() public static méthode

Get the test environment from a publish settings file
public static GetTestEnvironmentFromPublishSettingsFile ( string filePath ) : Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment
filePath string The full path to the publish settings file
Résultat Microsoft.WindowsAzure.Commands.ScenarioTest.Common.TestEnvironment