@@ -1115,6 +1115,8 @@ public void AzureServiceADDomainExtensionTest()
1115
1115
Assert . IsTrue ( resultContext . Restart == false ) ;
1116
1116
Assert . IsTrue ( resultContext . Version == "1.*" ) ;
1117
1117
1118
+ vmPowershellCmdlets . RemoveAzureDeployment ( serviceName , DeploymentSlotType . Production , true ) ;
1119
+
1118
1120
// Domain Config
1119
1121
var domainName = "test.bing.com" ;
1120
1122
config = vmPowershellCmdlets . NewAzureServiceDomainJoinExtensionConfig (
@@ -1124,13 +1126,13 @@ public void AzureServiceADDomainExtensionTest()
1124
1126
Assert . IsTrue ( config . PublicConfiguration . Contains ( domainName ) ) ;
1125
1127
Assert . IsTrue ( config . PublicConfiguration . Contains ( "35" ) ) ;
1126
1128
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 ) ;
1128
1130
1129
- vmPowershellCmdlets . RemoveAzureServiceDomainJoinExtension ( serviceName , DeploymentSlotType . Staging ) ;
1131
+ vmPowershellCmdlets . RemoveAzureServiceDomainJoinExtension ( serviceName , DeploymentSlotType . Production ) ;
1130
1132
1131
1133
// Join a Domain
1132
1134
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.*" ) ;
1134
1136
1135
1137
resultContext = vmPowershellCmdlets . GetAzureServiceDomainJoinExtension ( serviceName ) ;
1136
1138
Assert . IsTrue ( resultContext . User == cred . UserName ) ;
@@ -1140,10 +1142,8 @@ public void AzureServiceADDomainExtensionTest()
1140
1142
Assert . IsTrue ( resultContext . Version == "1.*" ) ;
1141
1143
1142
1144
vmPowershellCmdlets . RemoveAzureDeployment ( serviceName , DeploymentSlotType . Production , true ) ;
1143
- vmPowershellCmdlets . RemoveAzureDeployment ( serviceName , DeploymentSlotType . Staging , true ) ;
1144
1145
1145
1146
pass &= Utilities . CheckRemove ( vmPowershellCmdlets . GetAzureDeployment , serviceName , DeploymentSlotType . Production ) ;
1146
- pass &= Utilities . CheckRemove ( vmPowershellCmdlets . GetAzureDeployment , serviceName , DeploymentSlotType . Staging ) ;
1147
1147
}
1148
1148
catch ( Exception e )
1149
1149
{
0 commit comments