Skip to content

Commit 836e3c5

Browse files
committed
fix test
1 parent 9726a22 commit 836e3c5

File tree

1 file changed

+4
-4
lines changed
  • src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests

1 file changed

+4
-4
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests/ScenarioTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,8 @@ public void AzureServiceADDomainExtensionTest()
11151115
Assert.IsTrue(resultContext.Restart == false);
11161116
Assert.IsTrue(resultContext.Version == "1.*");
11171117

1118+
vmPowershellCmdlets.RemoveAzureDeployment(serviceName, DeploymentSlotType.Production, true);
1119+
11181120
// Domain Config
11191121
var domainName = "test.bing.com";
11201122
config = vmPowershellCmdlets.NewAzureServiceDomainJoinExtensionConfig(
@@ -1124,9 +1126,9 @@ public void AzureServiceADDomainExtensionTest()
11241126
Assert.IsTrue(config.PublicConfiguration.Contains(domainName));
11251127
Assert.IsTrue(config.PublicConfiguration.Contains("35"));
11261128

1127-
vmPowershellCmdlets.NewAzureDeployment(serviceName, packagePath1.FullName, configPath1.FullName, DeploymentSlotType.Staging, deploymentLabel, deploymentName, false, false, config);
1129+
vmPowershellCmdlets.NewAzureDeployment(serviceName, packagePath1.FullName, configPath1.FullName, DeploymentSlotType.Production, deploymentLabel, deploymentName, false, false, config);
11281130

1129-
vmPowershellCmdlets.RemoveAzureServiceDomainJoinExtension(serviceName, DeploymentSlotType.Staging);
1131+
vmPowershellCmdlets.RemoveAzureServiceDomainJoinExtension(serviceName, DeploymentSlotType.Production);
11301132

11311133
// Join a Domain
11321134
vmPowershellCmdlets.SetAzureServiceDomainJoinExtension(
@@ -1140,10 +1142,8 @@ public void AzureServiceADDomainExtensionTest()
11401142
Assert.IsTrue(resultContext.Version == "1.*");
11411143

11421144
vmPowershellCmdlets.RemoveAzureDeployment(serviceName, DeploymentSlotType.Production, true);
1143-
vmPowershellCmdlets.RemoveAzureDeployment(serviceName, DeploymentSlotType.Staging, true);
11441145

11451146
pass &= Utilities.CheckRemove(vmPowershellCmdlets.GetAzureDeployment, serviceName, DeploymentSlotType.Production);
1146-
pass &= Utilities.CheckRemove(vmPowershellCmdlets.GetAzureDeployment, serviceName, DeploymentSlotType.Staging);
11471147
}
11481148
catch (Exception e)
11491149
{

0 commit comments

Comments
 (0)