Skip to content

Commit 79aec34

Browse files
author
Avijit Gupta
committed
Changes in tests
1 parent b586756 commit 79aec34

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ private static string GetServiceManagementUrl(string publishSettingsFile)
168168

169169
public static void SetTestSettings()
170170
{
171+
// Please remove this line once all tests are done
171172
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
172173
delegate(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate,
173174
System.Security.Cryptography.X509Certificates.X509Chain chain,

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class VirtualIPTests : ServiceManagementTest
3636
public static void ClassInitialize(TestContext context)
3737
{
3838
var vnetConfig = vmPowershellCmdlets.GetAzureVNetConfig(null);
39-
vmPowershellCmdlets.SetAzureVNetConfig(Directory.GetCurrentDirectory() + "\\VnetconfigWithLocation.netcfg");
39+
vmPowershellCmdlets.SetAzureVNetConfig(Directory.GetCurrentDirectory() + "\\Resources\\VnetconfigWithLocation.netcfg");
4040
var sites = vmPowershellCmdlets.GetAzureVNetSite(null);
4141
subNet = sites[0].Subnets.First().Name;
4242
vnetName = sites[0].Name;
@@ -104,7 +104,7 @@ public void TestVirtualIPLifecycle()
104104
};
105105

106106
var updatedVM = vmPowershellCmdlets.AddAzureEndPoint(endpointInfo);
107-
107+
vmPowershellCmdlets.UpdateAzureVM(vmName, serviceName, updatedVM);
108108
deployment = vmPowershellCmdlets.GetAzureDeployment(serviceName, DeploymentSlotType.Production);
109109
retrievedVip = deployment.VirtualIPs.FirstOrDefault(vip => string.Equals(vip.Name, vipName));
110110
Assert.IsNotNull(retrievedVip);
@@ -120,8 +120,9 @@ public void TestVirtualIPLifecycle()
120120
Vm = updatedVM
121121
};
122122

123-
Utilities.ExecuteAndLog(() => vmPowershellCmdlets.RemoveAzureEndPoint(endpointName, updatedVM), "Removing Azure Endpoint");
124-
123+
updatedVM = vmPowershellCmdlets.RemoveAzureEndPoint(endpointName, updatedVM);
124+
vmPowershellCmdlets.UpdateAzureVM(vmName, serviceName, updatedVM);
125+
125126
deployment = vmPowershellCmdlets.GetAzureDeployment(serviceName, DeploymentSlotType.Production);
126127
retrievedVip = deployment.VirtualIPs.FirstOrDefault(vip => string.Equals(vip.Name, vipName));
127128
Assert.IsNotNull(retrievedVip);

0 commit comments

Comments
 (0)