Skip to content

Commit 76e6148

Browse files
author
unknown
committed
Merge branch 'dev' of https://github.com/AzureRT/azure-powershell into dev
2 parents d4d0e42 + bc7bc2f commit 76e6148

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,56 @@ public TestContext TestContext
8989
public static void AssemblyInit(TestContext context)
9090
{
9191
SetTestSettings();
92+
93+
vmPowershellCmdlets = new ServiceManagementCmdletTestHelper();
94+
95+
try
96+
{
97+
vmPowershellCmdlets.RunPSScript("Get-AzureService | Remove-AzureService -Force");
98+
}
99+
catch
100+
{
101+
}
102+
103+
try
104+
{
105+
vmPowershellCmdlets.RunPSScript("Get-AzureDisk | Remove-AzureDisk");
106+
}
107+
catch
108+
{
109+
}
110+
111+
try
112+
{
113+
vmPowershellCmdlets.RunPSScript(@"Get-AzureVMImage | where {$_.Category -eq 'User'} | Remove-AzureVMImage");
114+
}
115+
catch
116+
{
117+
}
118+
119+
try
120+
{
121+
vmPowershellCmdlets.RunPSScript("Remove-AzureVNetConfig");
122+
}
123+
catch
124+
{
125+
}
126+
127+
try
128+
{
129+
vmPowershellCmdlets.RunPSScript("Get-AzureAffinityGroup | Remove-AzureAffinityGroup");
130+
}
131+
catch
132+
{
133+
}
134+
135+
try
136+
{
137+
vmPowershellCmdlets.RunPSScript("Get-AzureReservedIP | Remove-AzureReservedIP -Force");
138+
}
139+
catch
140+
{
141+
}
92142
}
93143

94144
[AssemblyCleanup]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void CleanupTest()
7777
}
7878

7979
[TestMethod]
80-
[TestCategory(Category.Functional)]
80+
[TestCategory(Category.Sequential)]
8181
public void TestNonExistingExtensionImageList()
8282
{
8383
var factory = new VirtualMachineExtensionImageFactory(client.Object);
@@ -91,7 +91,7 @@ public void TestNonExistingExtensionImageList()
9191
}
9292

9393
[TestMethod]
94-
[TestCategory(Category.Functional)]
94+
[TestCategory(Category.Sequential)]
9595
public void TestMakeListWithoutClient()
9696
{
9797
var factory = new VirtualMachineExtensionImageFactory(null);
@@ -105,7 +105,7 @@ public void TestMakeListWithoutClient()
105105
}
106106

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

0 commit comments

Comments
 (0)