Exemplo n.º 1
0
        public RdpTests()
        {
            base.SetupTestsForManagement();
            _rdpCred = new PSCredential("rdpuser", string.Format("Password1!").ConvertToSecureString());

            grantcmdlet = new GrantAzureHDInsightRdpServicesAccessCommand
            {
                CommandRuntime            = commandRuntimeMock.Object,
                HDInsightManagementClient = hdinsightManagementMock.Object,
                ClusterName       = ClusterName,
                ResourceGroupName = ResourceGroupName,
                RdpCredential     = _rdpCred,
                RdpAccessExpiry   = new DateTime(2015, 1, 1)
            };
            revokecmdlet = new RevokeAzureHDInsightRdpServicesAccessCommand
            {
                CommandRuntime            = commandRuntimeMock.Object,
                HDInsightManagementClient = hdinsightManagementMock.Object,
                ClusterName       = ClusterName,
                ResourceGroupName = ResourceGroupName
            };
        }
Exemplo n.º 2
0
        public RdpTests()
        {
            base.SetupTestsForManagement();
            _rdpCred = new PSCredential("rdpuser", string.Format("Password1!").ConvertToSecureString());

            grantcmdlet = new GrantAzureHDInsightRdpServicesAccessCommand
            {
                CommandRuntime = commandRuntimeMock.Object,
                HDInsightManagementClient = hdinsightManagementMock.Object,
                ClusterName = ClusterName,
                ResourceGroupName = ResourceGroupName,
                RdpCredential = _rdpCred,
                RdpAccessExpiry = new DateTime(2015, 1, 1)
            };
            revokecmdlet = new RevokeAzureHDInsightRdpServicesAccessCommand
            {
                CommandRuntime = commandRuntimeMock.Object,
                HDInsightManagementClient = hdinsightManagementMock.Object,
                ClusterName = ClusterName,
                ResourceGroupName = ResourceGroupName
            };
        }
Exemplo n.º 3
0
        public RdpTests(Xunit.Abstractions.ITestOutputHelper output)
        {
            ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagement.Common.Models.XunitTracingInterceptor(output));
            base.SetupTestsForManagement();
            _rdpCred = new PSCredential("rdpuser", string.Format("Password1!").ConvertToSecureString());

            grantcmdlet = new GrantAzureHDInsightRdpServicesAccessCommand
            {
                CommandRuntime            = commandRuntimeMock.Object,
                HDInsightManagementClient = hdinsightManagementMock.Object,
                ClusterName       = ClusterName,
                ResourceGroupName = ResourceGroupName,
                RdpCredential     = _rdpCred,
                RdpAccessExpiry   = new DateTime(2015, 1, 1)
            };
            revokecmdlet = new RevokeAzureHDInsightRdpServicesAccessCommand
            {
                CommandRuntime            = commandRuntimeMock.Object,
                HDInsightManagementClient = hdinsightManagementMock.Object,
                ClusterName       = ClusterName,
                ResourceGroupName = ResourceGroupName
            };
        }
Exemplo n.º 4
0
        public RdpTests(Xunit.Abstractions.ITestOutputHelper output)
        {
            ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
            base.SetupTestsForManagement();
            _rdpCred = new PSCredential("rdpuser", string.Format("Password1!").ConvertToSecureString());

            grantcmdlet = new GrantAzureHDInsightRdpServicesAccessCommand
            {
                CommandRuntime = commandRuntimeMock.Object,
                HDInsightManagementClient = hdinsightManagementMock.Object,
                ClusterName = ClusterName,
                ResourceGroupName = ResourceGroupName,
                RdpCredential = _rdpCred,
                RdpAccessExpiry = new DateTime(2015, 1, 1)
            };
            revokecmdlet = new RevokeAzureHDInsightRdpServicesAccessCommand
            {
                CommandRuntime = commandRuntimeMock.Object,
                HDInsightManagementClient = hdinsightManagementMock.Object,
                ClusterName = ClusterName,
                ResourceGroupName = ResourceGroupName
            };
        }