@@ -36,7 +36,7 @@ public class VirtualIPTests : ServiceManagementTest
36
36
public static void ClassInitialize ( TestContext context )
37
37
{
38
38
var vnetConfig = vmPowershellCmdlets . GetAzureVNetConfig ( null ) ;
39
- vmPowershellCmdlets . SetAzureVNetConfig ( Directory . GetCurrentDirectory ( ) + "\\ VnetconfigWithLocation.netcfg" ) ;
39
+ vmPowershellCmdlets . SetAzureVNetConfig ( Directory . GetCurrentDirectory ( ) + "\\ Resources \\ VnetconfigWithLocation.netcfg" ) ;
40
40
var sites = vmPowershellCmdlets . GetAzureVNetSite ( null ) ;
41
41
subNet = sites [ 0 ] . Subnets . First ( ) . Name ;
42
42
vnetName = sites [ 0 ] . Name ;
@@ -104,7 +104,7 @@ public void TestVirtualIPLifecycle()
104
104
} ;
105
105
106
106
var updatedVM = vmPowershellCmdlets . AddAzureEndPoint ( endpointInfo ) ;
107
-
107
+ vmPowershellCmdlets . UpdateAzureVM ( vmName , serviceName , updatedVM ) ;
108
108
deployment = vmPowershellCmdlets . GetAzureDeployment ( serviceName , DeploymentSlotType . Production ) ;
109
109
retrievedVip = deployment . VirtualIPs . FirstOrDefault ( vip => string . Equals ( vip . Name , vipName ) ) ;
110
110
Assert . IsNotNull ( retrievedVip ) ;
@@ -120,8 +120,9 @@ public void TestVirtualIPLifecycle()
120
120
Vm = updatedVM
121
121
} ;
122
122
123
- Utilities . ExecuteAndLog ( ( ) => vmPowershellCmdlets . RemoveAzureEndPoint ( endpointName , updatedVM ) , "Removing Azure Endpoint" ) ;
124
-
123
+ updatedVM = vmPowershellCmdlets . RemoveAzureEndPoint ( endpointName , updatedVM ) ;
124
+ vmPowershellCmdlets . UpdateAzureVM ( vmName , serviceName , updatedVM ) ;
125
+
125
126
deployment = vmPowershellCmdlets . GetAzureDeployment ( serviceName , DeploymentSlotType . Production ) ;
126
127
retrievedVip = deployment . VirtualIPs . FirstOrDefault ( vip => string . Equals ( vip . Name , vipName ) ) ;
127
128
Assert . IsNotNull ( retrievedVip ) ;
0 commit comments