public HttpTests() { base.SetupTestsForManagement(); _httpCred = new PSCredential("hadoopuser", string.Format("Password1!").ConvertToSecureString()); grantcmdlet = new GrantAzureHDInsightHttpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName, HttpCredential = _httpCred }; revokecmdlet = new RevokeAzureHDInsightHttpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName }; }
public HttpTests(Xunit.Abstractions.ITestOutputHelper output) { ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output)); base.SetupTestsForManagement(); _httpCred = new PSCredential("hadoopuser", string.Format("Password1!").ConvertToSecureString()); grantcmdlet = new GrantAzureHDInsightHttpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName, HttpCredential = _httpCred }; revokecmdlet = new RevokeAzureHDInsightHttpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName }; }