コード例 #1
0
ファイル: DeploymentHelperTest.cs プロジェクト: melnx/Bermuda
        public void DeleteDeploymentTest()
        {
            DeploymentHelper target = new DeploymentHelper();

            string subscriptionId = "e57cc5fa-5cf7-41c0-a33c-3adaf2944c4a";

            string filePath = @"C:\Development\Certificates\AzureManagementCertificate.cer";

            List <Byte> certificateBytes = CertificateUtility.GetCertificateBytes(filePath);

            string serviceName = "commandlinetest";

            string deploymentSlot = "staging";

            string expected = string.Empty;
            string actual;

            actual = target.DeleteDeployment(subscriptionId, certificateBytes, serviceName, deploymentSlot);

            string opsStatus = string.Empty;

            string status = "InProgress";

            while (status == "InProgress")
            {
                opsStatus = target.GetOperationStatus(subscriptionId, certificateBytes, actual, out status);

                Trace.WriteLine("Ops Status = " + status);

                Thread.Sleep(2000);
            }


            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
ファイル: DeploymentHelperTest.cs プロジェクト: melnx/Bermuda
        public void GetHostedServiceTest()
        {
            HostedServiceHelper target = new HostedServiceHelper();

            string subscriptionId = "32e65da4-1eaf-4073-940a-51d7357d321b";

            string filePath = @"C:\Development\Certificates\AzureManagementCertificate.cer";

            List <Byte> certificateBytes = CertificateUtility.GetCertificateBytes(filePath);

            string serviceName = "evoappweb";

            HostedService expected = null;
            HostedService actual;

            actual = target.GetHostedService(subscriptionId, certificateBytes, serviceName);

            Assert.AreEqual(expected, actual);
        }