Skip to content

Commit d15673b

Browse files
committed
fix test
1 parent 9726a22 commit d15673b

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 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,13 +1126,13 @@ 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(
1133-
domainName, cred, 35, false, serviceName, DeploymentSlotType.Staging, null, (X509Certificate2)null, null, (PSCredential)null, null, "1.*");
1135+
domainName, cred, 35, false, serviceName, DeploymentSlotType.Production, null, (X509Certificate2)null, null, (PSCredential)null, null, "1.*");
11341136

11351137
resultContext = vmPowershellCmdlets.GetAzureServiceDomainJoinExtension(serviceName);
11361138
Assert.IsTrue(resultContext.User == cred.UserName);
@@ -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)