Skip to content

Commit e270aa0

Browse files
author
unknown
committed
Remove commented codes.
Re-activate unit tests.
1 parent 1cc92d9 commit e270aa0

File tree

5 files changed

+6
-23
lines changed

5 files changed

+6
-23
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests/ExtensionTests/CustomScriptExtensionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ private void GetCustomScriptExtensionVersion()
195195
{
196196
Utilities.PrintHeader("Listing the available VM extensions");
197197
var extensionsInfo = vmPowershellCmdlets.GetAzureVMAvailableExtension(ConstCustomScriptExtensionName, ConstCustomScriptExtensionPublisher, true);
198-
//customScriptExtension = extensionsInfo.OrderBy(c => c.Version).LastOrDefault();
199198
customScriptExtension = extensionsInfo.Where(c => c.Version.Equals("1.1")).FirstOrDefault();
200199

201200
Match m = Regex.Match(customScriptExtension.Version, @"((\.).*?){2}");

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -751,11 +751,6 @@ public void AzureMultiNicTest()
751751

752752
// Create a VNet
753753
var vnetConfig = vmPowershellCmdlets.GetAzureVNetConfig(null);
754-
//if (vnetConfig.Count > 0)
755-
//{
756-
// vmPowershellCmdlets.RunPSScript("Get-AzureService | Remove-AzureService -Force");
757-
// Utilities.RetryActionUntilSuccess(() => vmPowershellCmdlets.RemoveAzureVNetConfig(), "in use", 5, 30);
758-
//}
759754
vmPowershellCmdlets.SetAzureVNetConfig(Directory.GetCurrentDirectory() + "\\VnetconfigWithLocation.netcfg");
760755
var sites = vmPowershellCmdlets.GetAzureVNetSite(null);
761756
var subnet = sites[0].Subnets.First().Name;

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,6 @@ public void AzureEndpointLBDTest()
263263
if (p == AzureEndPointConfigInfo.ParameterSet.NoLB)
264264
{
265265
Console.WriteLine("Skipping None until the bug is fixed..");
266-
//Console.WriteLine("-----Change the second endpoint.");
267-
//ep2Info.EndpointLocalPort = ep2LocalPortChanged;
268-
//ep2Info.EndpointPublicPort = ep2PublicPortChanged;
269-
//ep2Info.LoadBalancerDistribution = LoadBalancerDistribution.None;
270-
//vmPowershellCmdlets.SetEndPoint(defaultVm, serviceName, ep2Info); // Set-AzureEndpoint with Get-AzureVM and Update-AzureVm
271-
//CheckEndpoint(defaultVm, serviceName, new[] { ep2Info });
272266
}
273267
else
274268
{

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ public static void Intialize(TestContext context)
4747
{
4848
imageName = vmPowershellCmdlets.GetAzureVMImageName(new[] { "Windows" }, false);
4949
var vnetConfig = vmPowershellCmdlets.GetAzureVNetConfig(null);
50-
//if (vnetConfig.Count > 0)
51-
//{
52-
// vmPowershellCmdlets.RunPSScript("Get-AzureService | Remove-AzureService -Force");
53-
// Utilities.RetryActionUntilSuccess(() => vmPowershellCmdlets.RemoveAzureVNetConfig(), "in use", 5, 30);
54-
//}
5550
ReadVnetConfig();
5651
SetVNetForStaticCAtest();
5752
}

src/ServiceManagement/Compute/Commands.ServiceManagement.Test/UnitTests/Cmdlets/IaaS/Extensions/VirtualMachineExtensionImageFactoryTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public void CleanupTest()
7676
{
7777
}
7878

79-
//[TestMethod]
80-
//[TestCategory(Category.Functional)]
79+
[TestMethod]
80+
[TestCategory(Category.Functional)]
8181
public void TestNonExistingExtensionImageList()
8282
{
8383
var factory = new VirtualMachineExtensionImageFactory(client.Object);
@@ -90,8 +90,8 @@ public void TestNonExistingExtensionImageList()
9090
Assert.IsTrue(!list.Any());
9191
}
9292

93-
//[TestMethod]
94-
//[TestCategory(Category.Functional)]
93+
[TestMethod]
94+
[TestCategory(Category.Functional)]
9595
public void TestMakeListWithoutClient()
9696
{
9797
var factory = new VirtualMachineExtensionImageFactory(null);
@@ -104,8 +104,8 @@ public void TestMakeListWithoutClient()
104104
Assert.IsTrue(!list.Any());
105105
}
106106

107-
//[TestMethod]
108-
//[TestCategory(Category.Functional)]
107+
[TestMethod]
108+
[TestCategory(Category.Functional)]
109109
public void TestMakeListWithClient()
110110
{
111111
var factory = new VirtualMachineExtensionImageFactory(client.Object);

0 commit comments

Comments
 (0)