File tree Expand file tree Collapse file tree 2 files changed +53
-3
lines changed
src/ServiceManagement/Compute/Commands.ServiceManagement.Test
UnitTests/Cmdlets/IaaS/Extensions Expand file tree Collapse file tree 2 files changed +53
-3
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,56 @@ public TestContext TestContext
89
89
public static void AssemblyInit ( TestContext context )
90
90
{
91
91
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
+ }
92
142
}
93
143
94
144
[ AssemblyCleanup ]
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public void CleanupTest()
77
77
}
78
78
79
79
[ TestMethod ]
80
- [ TestCategory ( Category . Functional ) ]
80
+ [ TestCategory ( Category . Sequential ) ]
81
81
public void TestNonExistingExtensionImageList ( )
82
82
{
83
83
var factory = new VirtualMachineExtensionImageFactory ( client . Object ) ;
@@ -91,7 +91,7 @@ public void TestNonExistingExtensionImageList()
91
91
}
92
92
93
93
[ TestMethod ]
94
- [ TestCategory ( Category . Functional ) ]
94
+ [ TestCategory ( Category . Sequential ) ]
95
95
public void TestMakeListWithoutClient ( )
96
96
{
97
97
var factory = new VirtualMachineExtensionImageFactory ( null ) ;
@@ -105,7 +105,7 @@ public void TestMakeListWithoutClient()
105
105
}
106
106
107
107
[ TestMethod ]
108
- [ TestCategory ( Category . Functional ) ]
108
+ [ TestCategory ( Category . Sequential ) ]
109
109
public void TestMakeListWithClient ( )
110
110
{
111
111
var factory = new VirtualMachineExtensionImageFactory ( client . Object ) ;
You can’t perform that action at this time.
0 commit comments