Skip to content

Commit 9eeef7a

Browse files
committed
Merge pull request Azure#30 from huangpf/crp2
Crp2
2 parents 6ea3898 + d489dde commit 9eeef7a

File tree

236 files changed

+952
-1228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+952
-1228
lines changed

AzurePowershell.Test.targets

Lines changed: 42 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@
3333
<AzureRTAllPreviewFilter>"Functional|AzureRTScenario|Preview"</AzureRTAllPreviewFilter>
3434
<AzureRTUploadSeqFilter>"AzureRTUpload|Sequential"</AzureRTUploadSeqFilter>
3535
<AzureRTSeqAllFilter>"AzureRTUpload|Sequential|Network"</AzureRTSeqAllFilter>
36+
<TestTimeout Condition=" '$(TestTimeout)' == '' ">100000000</TestTimeout>
3637
</PropertyGroup>
3738

3839
<ItemGroup>
3940
<XUnitTests Include=".\src\Common\Commands.Common.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Common.Test.dll"/>
4041
<XUnitTests Include=".\src\ResourceManager\Sql\Commands.Sql.Test\bin\Debug\Microsoft.Azure.Commands.Sql.Test.dll"/>
4142
<XUnitTests Include=".\src\ServiceManagement\Services\Commands.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Test.dll"/>
43+
<XUnitTests Include=".\src\ServiceManagement\StorSimple\Commands.StorSimple.Test\bin\Debug\Microsoft.WindowsAzure.Commands.StorSimple.Test.dll"/>
4244
<XUnitTests Include=".\src\ResourceManager\Resources\Commands.Resources.Test\bin\Debug\Microsoft.Azure.Commands.Resources.Test.dll"/>
45+
<XUnitTests Include=".\src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.Test.dll"/>
4346
<XUnitTests Include=".\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll"/>
4447
<XUnitTests Include=".\src\ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\bin\Debug\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"/>
4548
<XUnitTests Include=".\src\ResourceManager\Batch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll"/>
@@ -49,11 +52,10 @@
4952
<XUnitTests Include=".\src\ServiceManagement\RemoteApp\Commands.RemoteApp.Test\bin\Debug\Microsoft.Azure.Commands.RemoteApp.Tests.dll"/>
5053
<XUnitTests Include=".\src\Common\Commands.ScenarioTest\bin\Debug\Microsoft.WindowsAzure.Commands.ScenarioTest.dll"/>
5154
<XUnitTests Include=".\src\ServiceManagement\RecoveryServices\Commands.RecoveryServices.Test\bin\Debug\Microsoft.Azure.Commands.RecoveryServices.Test.dll"/>
52-
<XUnitTests Include=".\src\ServiceManagement\StorSimple\Commands.StorSimple.Test\bin\Debug\Microsoft.WindowsAzure.Commands.StorSimple.Test.dll"/>
5355
</ItemGroup>
5456

5557
<Target Name="InvokeMSTest">
56-
<!--Remove existing test result; otherwsie mstest will error-->
58+
<!--Remove existing test result; otherwise mstest will error-->
5759
<Delete Files="$(_testResult)"/>
5860
<Exec
5961
Command="MSTest.exe /testcontainer:$(_testAssembly) /testsettings:$(_testSettings) /category:$(_testFilter) /resultsfile:$(_testResult)"
@@ -63,8 +65,23 @@
6365
<Target Name="InvokeXUnit">
6466
<Message Importance="high" Text="Running XUnit tests" />
6567
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
66-
<Xunit.Runner.MSBuild.xunit Assemblies="@(XUnitTests)" Html="$(TestOutputDirectory)\xunit.tests.dll.html" Verbose="true"
67-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
68+
<Exec
69+
Command="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe &quot;%(XUnitTests.Identity)&quot; -trait &quot;AcceptanceType=CheckIn&quot; -html &quot;$(TestOutputDirectory)\%(XUnitTests.Filename).html&quot;"
70+
Timeout="$(TestTimeout)" ContinueOnError="false"/>
71+
<OnError ExecuteTargets="TimeoutErrorHandler"/>
72+
</Target>
73+
74+
<Target Name="InvokeXUnitAll">
75+
<Message Importance="high" Text="Running XUnit tests" />
76+
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
77+
<Exec
78+
Command="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe &quot;%(XUnitTests.Identity)&quot; -notrait &quot;RunType=LiveOnly&quot; -html &quot;$(TestOutputDirectory)\%(XUnitTests.Filename).html&quot;"
79+
Timeout="$(TestTimeout)" ContinueOnError="false"/>
80+
<OnError ExecuteTargets="TimeoutErrorHandler"/>
81+
</Target>
82+
83+
<Target Name="TimeoutErrorHandler">
84+
<Error Text="XUnit tests in assembly &quot;%(XUnitTests.Filename).dll&quot; failed or timed out. Ensure that all tests in a project pass and collectively take less than 1 minute to run."/>
6885
</Target>
6986

7087
<Target Name="BeforeRunTests">
@@ -74,46 +91,51 @@
7491

7592
<Target Name="TestManagement">
7693
<Xunit.Runner.MSBuild.xunit Assemblies="$(ManagementTestDebug)" Html="$(TestOutputDirectory)\ManagementDebug.xunit.dll.html" Verbose="false"
77-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
94+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
7895
</Target>
7996

8097
<Target Name="TestManagedCache">
8198
<PropertyGroup>
8299
<_ManagedCacheTestAssembly>.\src\ServiceManagement\ManagedCache\Commands.ManagedCache.Test\bin\Debug\Microsoft.Azure.Commands.ManagedCache.Test.dll</_ManagedCacheTestAssembly>
83100
</PropertyGroup>
84101
<Xunit.Runner.MSBuild.xunit Assemblies="$(_ManagedCacheTestAssembly)" Html="$(TestOutputDirectory)\ManagedCache.xunit.dll.html" Verbose="false"
85-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
102+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
86103
</Target>
87104

88105
<Target Name="TestResourceManager">
89106
<Xunit.Runner.MSBuild.xunit Assemblies="$(ResourceManagerTestDebug)" Html="$(TestOutputDirectory)\ResourceManagerTestDebug.xunit.dll.html" Verbose="false"
90-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
107+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
91108
</Target>
92-
109+
110+
<Target Name="TestCompute">
111+
<Xunit.Runner.MSBuild.xunit Assemblies="$(ComputeTestDebug)" Html="$(TestOutputDirectory)\ComputeTestDebug.xunit.dll.html" Verbose="false"
112+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
113+
</Target>
114+
93115
<Target Name="TestBatch">
94116
<Xunit.Runner.MSBuild.xunit Assemblies="$(BatchTestDebug)" Html="$(TestOutputDirectory)\BatchTestDebug.xunit.dll.html" Verbose="false"
95-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
117+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
96118
</Target>
97119

98120

99121
<Target Name="TestRemoteApp">
100122
<Xunit.Runner.MSBuild.xunit Assemblies="$(RemoteAppTestDebug)" Html="$(TestOutputDirectory)\RemoteAppTestDebug.xunit.dll.html" Verbose="false"
101-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
123+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
102124
</Target>
103125

104126
<Target Name="TestWebsites">
105127
<Xunit.Runner.MSBuild.xunit Assemblies="$(WebsitesTestDebug)" Html="$(TestOutputDirectory)\WebsitesTestDebug.xunit.dll.html" Verbose="false"
106-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
128+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
107129
</Target>
108130

109131
<Target Name="TestDataFactoryManager">
110132
<Xunit.Runner.MSBuild.xunit Assemblies="$(DataFactoryManagerTestDebug)" Html="$(TestOutputDirectory)\DataFactoryManagerTestDebug.xunit.dll.html" Verbose="false"
111-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
133+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
112134
</Target>
113135

114136
<Target Name="TestStreamAnalyticsManager">
115137
<Xunit.Runner.MSBuild.xunit Assemblies="$(StreamAnalyticsManagerTestDebug)" Html="$(TestOutputDirectory)\StreamAnalyticsManagerTestDebug.xunit.dll.html" Verbose="false"
116-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
138+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
117139
</Target>
118140

119141
<Target Name="TestServiceManagement">
@@ -151,15 +173,15 @@
151173
<_RecoveryServicesTestAssembly>.\src\ServiceManagement\RecoveryServices\Commands.RecoveryServices.Test\bin\Debug\Microsoft.Azure.Commands.RecoveryServices.Test.dll</_RecoveryServicesTestAssembly>
152174
</PropertyGroup>
153175
<Xunit.Runner.MSBuild.xunit Assemblies="$(_RecoveryServicesTestAssembly)" Html="$(TestOutputDirectory)\RecoveryServices.xunit.dll.html" Verbose="false"
154-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
176+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
155177
</Target>
156178

157179
<Target Name="TestStorSimple">
158180
<PropertyGroup>
159181
<_StorSimpleTestAssembly>.\src\ServiceManagement\StorSimple\Commands.StorSimple.Test\bin\Debug\Microsoft.WindowsAzure.Commands.StorSimple.Test.dll</_StorSimpleTestAssembly>
160182
</PropertyGroup>
161183
<Xunit.Runner.MSBuild.xunit Assemblies="$(_StorSimpleTestAssembly)" Html="$(TestOutputDirectory)\StorSimple.xunit.dll.html" Verbose="false"
162-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
184+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
163185
</Target>
164186

165187
<!-- Run the scenario tests -->
@@ -177,35 +199,35 @@
177199
<Target Name="CommonTests">
178200
<Message Importance="high" Text="Running Common tests" />
179201
<Xunit.Runner.MSBuild.xunit Assemblies="$(CommonTestDebug)" Html="$(TestOutputDirectory)\CommonTests.xunit.dll.html" Verbose="false"
180-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
202+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
181203
</Target>
182204

183205
<!-- Run the Compute tests -->
184206
<Target Name="ComputeTests">
185207
<Message Importance="high" Text="Running Compute tests" />
186208
<Xunit.Runner.MSBuild.xunit Assemblies="$(ComputeTestDebug)" Html="$(TestOutputDirectory)\ComputeTests.xunit.dll.html" Verbose="false"
187-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
209+
ExcludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
188210
</Target>
189211

190212
<!-- Run the sql tests -->
191213
<Target Name="SqlTests">
192214
<Message Importance="high" Text="Running Sql tests" />
193215
<Xunit.Runner.MSBuild.xunit Assemblies="$(SqlTestDebug)" Html="$(TestOutputDirectory)\SqlTests.xunit.dll.html" Verbose="false"
194-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
216+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
195217
</Target>
196218

197219
<!-- Run the KeyVault tests -->
198220
<Target Name="KeyVaultTests">
199221
<Message Importance="high" Text="Running KeyVault tests" />
200222
<Xunit.Runner.MSBuild.xunit Assemblies="$(KeyVaultTestDebug)" Html="$(TestOutputDirectory)\KeyVaultTests.xunit.dll.html" Verbose="true"
201-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
223+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
202224
</Target>
203225

204226
<!-- Run the scenario tests with Mocks -->
205227
<Target Name="MockedScenarioTests">
206228
<Message Importance="high" Text="Running scenario tests with Mocks" />
207229
<Xunit.Runner.MSBuild.xunit Assemblies="$(ScenarioTestDebug)" Html="$(TestOutputDirectory)\MockedScenarioTests.xunit.dll.html" Verbose="true"
208-
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
230+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
209231
</Target>
210232

211233
<Target Name="RunOneSDKCIT" DependsOnTargets="Clean;BuildDebug;BeforeRunTests">

ChangeLog.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
2015.03.31 version 0.8.16
2+
* Azure Data Factory:
3+
* Fixes for clean install and subscription registration issues
4+
* Azure HDInsight:
5+
* Support for creating, deleting, listing, and submitting jobs to HDInsight clusters with Linux Operating System.
6+
* Azure Compute
7+
* Fix pipeline issues with Get-AzureVM (#3047)
8+
* Fixed DateTime Overflow issue
9+
* Azure Batch
10+
* Added cmdlets
11+
* Add/Remove Batch Pools
12+
* Get-BatchTaskFileContent
13+
* Get-BatchTaskFile
14+
* Azure Insights
15+
* Added cmdlets
16+
* Add-AutoscaleSetting
17+
* Get-AutoscaleHistory
18+
* Get-AutoscaleSetting
19+
* New-AutoscaleProfile
20+
* New-AutoscaleRule
21+
* Remove-AutoscaleSetting
22+
* Get-Metrics
23+
* Get-MetricDefinitions
24+
* Format-MetricsAsTable
25+
* Azure Websites
26+
* Added cmdlet Get-AzureWebhostingPlanMetrics
27+
* Added Premium support
28+
* Renamed WebSites to WebApp
29+
* AzureProfile
30+
* Made AzureProfile serializable to support workflow scenarios
31+
132
2015.03.11 version 0.8.15.1
233
* Fixes for clean install and subscription registration issues
334

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ This repository contains a set of PowerShell cmdlets for developers and administ
2828
* Log streaming
2929
* Save log
3030
* Cloud Services
31-
* Create scaffolding for cloud service and role. Role support includes Node.js, PHP, Django and Cache.
31+
* Create scaffolding for cloud service and role. Role support includes Node.js and PHP.
3232
* Manage cloud service and role, such as CRUD, start and stop.
33-
* Manage extension
33+
* Manage extension.
3434
* Start/Stop Azure emulator.
3535
* Manage certificate.
3636
* Manage cloud service extensions
@@ -294,4 +294,4 @@ If you encounter any bugs with the library please file an issue in the [Issues](
294294

295295
# Learn More
296296

297-
* [Microsoft Azure Script Center](http://www.azure.microsoft.com/en-us/documentation/scripts/)
297+
* [Microsoft Azure Script Center](http://www.azure.microsoft.com/en-us/documentation/scripts/)

build.proj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</ItemGroup>
2626

2727
<UsingTask
28-
AssemblyFile="$(MSBuildProjectDirectory)\packages\xunit.runners.2.0.0-beta4-build2738\tools\xunit.runner.msbuild.dll"
28+
AssemblyFile="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.runner.msbuild.dll"
2929
TaskName="Xunit.Runner.MSBuild.xunit" />
3030

3131
<!-- Clean the build in all configurations -->
@@ -154,7 +154,7 @@
154154
<!-- Do everything possible -->
155155
<Target
156156
Name="Full"
157-
DependsOnTargets="ForceRestorePackages;Clean;BuildDebug;BuildRelease;Test;BuildSetupDebug;BuildSetupRelease" />
157+
DependsOnTargets="ForceRestorePackages;Clean;BuildDebug;Test;BuildSetupDebug" />
158158

159159
<!-- Build the Cmdlets in Release configuration -->
160160
<Target Name="BuildRelease" DependsOnTargets="ForceRestorePackages">
@@ -180,15 +180,15 @@
180180

181181
<PropertyGroup>
182182
<RunTestLive Condition="'$(RunTestLive)' == ''">false</RunTestLive>
183-
<XUnitExcludedTrait Condition="!$(RunTestLive)">RunType=LiveOnly</XUnitExcludedTrait>
183+
<XUnitIncludedTrait Condition="!$(RunTestLive)">AcceptanceType=CheckIn</XUnitIncludedTrait>
184184
</PropertyGroup>
185185
<!-- Note: all testing related target should go to 'AzurePowershell.test.targets' file except the one used by CI run -->
186186
<Import Project="$(MSBuildThisFileDirectory)AzurePowershell.test.targets"/>
187187

188188
<!-- Run checkin tests for each pull request -->
189189
<Target Name="Test" DependsOnTargets="BuildDebug;BeforeRunTests">
190190
<Message Importance="high" Text="Running check in tests..." />
191-
<CallTarget Targets="InvokeXUnit; TestHDInsight; TestServiceManagement; TestServiceManagementExtensions; TestSqlDatabase; TestStorage; TestDSCExtension_x64; ComputeTests"/>
191+
<CallTarget Targets="InvokeXUnit"/>
192192
</Target>
193193

194194
<!-- Run Full switch with scenario tests -->

packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="xunit.runners" version="2.0.0-beta4-build2738" />
3+
<package id="xunit.runner.console" version="2.0.0" />
44
<package id="xunit.runners" version="1.9.2" />
55
</packages>

0 commit comments

Comments
 (0)