C# Class Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.IntegrationTestBase

Inheritance: System.DisposableObject
Datei anzeigen Open project: Azure/azure-powershell Class Usage Examples

Protected Properties

Property Type Description
ClusterPrefix string

Public Methods

Method Description
ApplyFullMocking ( ) : void
ApplyIndividualTestMockingOnly ( ) : void
ApplyNoMocking ( ) : void
ApplySimulatorMockingOnly ( ) : void
GetAllCredentials ( ) : IEnumerable
GetCredentialsForEnvironmentType ( EnvironmentType type ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
GetCredentialsForLocation ( string location ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
GetCredentialsForLocation ( string name, string location ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
GetCurrentSubscription ( ) : AzureSubscription
GetRandomCluster ( ) : ClusterCreateParameters
GetRandomValidPassword ( ) : string
GetValidCredentials ( ) : IHDInsightCertificateCredential
GetWellKnownStorageAccounts ( ) : IEnumerable
Initialize ( ) : void
ResetIndividualMocks ( ) : void
TestCleanup ( ) : void
TestRunCleanup ( ) : void
TestRunSetup ( ) : void

Protected Methods

Method Description
GetAzurePsCredentials ( ) : System.Management.Automation.PSCredential
GetCredentials ( string name ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
GetInvalidCertificateCredentials ( ) : IHDInsightCertificateCredential
GetInvalidSubscriptionIdCredentials ( ) : IHDInsightCertificateCredential
GetPowerShellRunspace ( string location ) : IRunspace

Private Methods

Method Description
CloneForEnvironment ( Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials orig, int index ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
GetPSCredential ( string userName, string password ) : System.Management.Automation.PSCredential
GetRandomClusterName ( ) : string

Method Details

ApplyFullMocking() public method

public ApplyFullMocking ( ) : void
return void

ApplyIndividualTestMockingOnly() public method

public ApplyIndividualTestMockingOnly ( ) : void
return void

ApplyNoMocking() public method

public ApplyNoMocking ( ) : void
return void

ApplySimulatorMockingOnly() public method

public ApplySimulatorMockingOnly ( ) : void
return void

GetAllCredentials() public static method

public static GetAllCredentials ( ) : IEnumerable
return IEnumerable

GetAzurePsCredentials() protected static method

protected static GetAzurePsCredentials ( ) : System.Management.Automation.PSCredential
return System.Management.Automation.PSCredential

GetCredentials() protected static method

protected static GetCredentials ( string name ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
name string
return Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials

GetCredentialsForEnvironmentType() public static method

public static GetCredentialsForEnvironmentType ( EnvironmentType type ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
type EnvironmentType
return Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials

GetCredentialsForLocation() public static method

public static GetCredentialsForLocation ( string location ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
location string
return Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials

GetCredentialsForLocation() public static method

public static GetCredentialsForLocation ( string name, string location ) : Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials
name string
location string
return Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Utilities.AzureTestCredentials

GetCurrentSubscription() public static method

public static GetCurrentSubscription ( ) : AzureSubscription
return AzureSubscription

GetInvalidCertificateCredentials() protected static method

protected static GetInvalidCertificateCredentials ( ) : IHDInsightCertificateCredential
return IHDInsightCertificateCredential

GetInvalidSubscriptionIdCredentials() protected static method

protected static GetInvalidSubscriptionIdCredentials ( ) : IHDInsightCertificateCredential
return IHDInsightCertificateCredential

GetPowerShellRunspace() protected method

protected GetPowerShellRunspace ( string location ) : IRunspace
location string
return IRunspace

GetRandomCluster() public method

public GetRandomCluster ( ) : ClusterCreateParameters
return ClusterCreateParameters

GetRandomValidPassword() public method

public GetRandomValidPassword ( ) : string
return string

GetValidCredentials() public static method

public static GetValidCredentials ( ) : IHDInsightCertificateCredential
return IHDInsightCertificateCredential

GetWellKnownStorageAccounts() public static method

public static GetWellKnownStorageAccounts ( ) : IEnumerable
return IEnumerable

Initialize() public method

public Initialize ( ) : void
return void

ResetIndividualMocks() public method

public ResetIndividualMocks ( ) : void
return void

TestCleanup() public method

public TestCleanup ( ) : void
return void

TestRunCleanup() public static method

public static TestRunCleanup ( ) : void
return void

TestRunSetup() public static method

public static TestRunSetup ( ) : void
return void

Property Details

ClusterPrefix protected_oe static_oe property

protected static string ClusterPrefix
return string