Skip to content

Commit 65b280d

Browse files
author
unknown
committed
Remove commented code
1 parent c695eb7 commit 65b280d

File tree

1 file changed

+0
-59
lines changed

1 file changed

+0
-59
lines changed

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

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -94,65 +94,6 @@ public static void AssemblyInit(TestContext context)
9494
[AssemblyCleanup]
9595
public static void CleanUpAssembly()
9696
{
97-
//vmPowershellCmdlets = new ServiceManagementCmdletTestHelper();
98-
99-
//// Cleaning up affinity groups
100-
//var affGroup = vmPowershellCmdlets.GetAzureAffinityGroup();
101-
//if (affGroup.Count > 0)
102-
//{
103-
// foreach (var aff in affGroup)
104-
// {
105-
// try
106-
// {
107-
// vmPowershellCmdlets.RemoveAzureAffinityGroup(aff.Name);
108-
// }
109-
// catch (Exception e)
110-
// {
111-
// if (e.ToString().Contains(BadRequestException))
112-
// {
113-
// Console.WriteLine("Affinity Group, {0}, is not deleted.", aff.Name);
114-
// }
115-
// }
116-
// }
117-
//}
118-
119-
//if (defaultAzureSubscription != null)
120-
//{
121-
// // Cleaning up virtual disks
122-
// try
123-
// {
124-
// Retry(String.Format("Get-AzureDisk | Where {{$_.DiskName.Contains(\"{0}\")}} | Remove-AzureDisk", serviceNamePrefix), "in use");
125-
// if (deleteDefaultStorageAccount)
126-
// {
127-
// //vmPowershellCmdlets.RemoveAzureStorageAccount(defaultAzureSubscription.CurrentStorageAccountName);
128-
// }
129-
// }
130-
// catch
131-
// {
132-
// Console.WriteLine("Error occurred during cleaning up disks..");
133-
// }
134-
135-
// // Cleaning up vm images
136-
// try
137-
// {
138-
// vmPowershellCmdlets.RunPSScript("Get-AzureVMImage | Where {$_.Categori -eq \"User\"} | Remove-AzureVMImage");
139-
// }
140-
// catch
141-
// {
142-
// Console.WriteLine("Error occurred during cleaning up vm images..");
143-
// }
144-
145-
// // Cleaning up reserved ips
146-
// try
147-
// {
148-
// vmPowershellCmdlets.RunPSScript("Get-AzureReservedIp | Remove-AzureReservedIp -Force");
149-
// }
150-
// catch
151-
// {
152-
// Console.WriteLine("Error occurred during cleaning up reserved ips..");
153-
// }
154-
//}
155-
15697
if (string.IsNullOrEmpty(currentEnvName))
15798
{
15899
vmPowershellCmdlets.RunPSScript(string.Format("Remove-AzureEnvironment -Name {0} -Force", TempEnvName));

0 commit comments

Comments
 (0)