Skip to content

Commit b6167a3

Browse files
author
Maddie Clayton
authored
Merge pull request Azure#7135 from Azure/preview
Merge preview into Network-preview
2 parents 53e0edb + d47ebfe commit b6167a3

File tree

12,252 files changed

+1466068
-6820363
lines changed

Some content is hidden

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

12,252 files changed

+1466068
-6820363
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ If this issue is not a bug report, please remove the below template
2828

2929
### Module Version
3030

31-
<!-- Please run (Get-Module -Name AzureRM -ListAvailable) to get the version(s) of AzureRM installed on your machine -->
31+
<!-- Please run (Get-Module -ListAvailable) to get the version(s) of all modules, including Azure installed on your machine -->
3232

3333
```powershell
34-
Get-Module -Name AzureRM -ListAvailable
34+
Get-Module -ListAvailable
3535
```
3636

3737
### Environment Data
@@ -44,7 +44,7 @@ $PSVersionTable
4444

4545
### Debug Output
4646

47-
<!-- Please run the above script with $DebugPreference = "Continue" and paste the resulting debug stream in the below code block -->
47+
<!-- Please run the above script with $DebugPreference='Continue' and paste the resulting debug stream in the below code block -->
4848

4949
```
5050

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,7 @@ launchSettings.json
235235
/src/StackAdmin/AzureRM/AzureRM.psm1
236236
/src/StackAdmin/AzureStack/AzureStack.psm1
237237
/tools/AzureRM.Netcore/AzureRM.Netcore.psm1
238+
/ModuleMappings.json
239+
/SolutionMappings.json
240+
/TestMappings.json
241+
/tools/Modules/tmp

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: required
22
language: csharp
33
mono: none
4-
dotnet: 2.1.200
4+
dotnet: 2.1.400
55
dist: trusty
66

77
env:
@@ -15,16 +15,20 @@ before_install:
1515
- sudo apt-get install docker-ce
1616
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
1717
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
18+
- wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb
19+
- sudo dpkg -i packages-microsoft-prod.deb
20+
- sudo apt-get install apt-transport-https
1821
- sudo apt-get update
1922
- sudo apt-get install -y powershell
2023
- sudo pwsh -NonInteractive -NoLogo -NoProfile -Command "Install-Module platyPS -Force -Confirm:\$false -Scope CurrentUser"
2124

2225
# https://github.com/travis-ci/travis-ci/issues/1066#issuecomment-383489298
2326
script:
2427
- sudo dotnet msbuild build.proj /t:BuildNetcore /p:Configuration=$CONFIG || travis_terminate 1
28+
- sudo dotnet tools/StaticAnalysis/bin/$CONFIG/netcoreapp2.1/StaticAnalysis.Netcore.dll -p src/Package/$CONFIG -r src/Package -u
2529
- sudo pwsh -NonInteractive -NoLogo -NoProfile -File tools/TestModuleLoading.ps1 || travis_terminate 1
2630
- sudo dotnet test src/Azure.PowerShell.Netcore.Test.sln --filter "AcceptanceType=CheckIn&RunType!=DesktopOnly" --configuration $CONFIG
27-
31+
2832
after_success:
2933
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
3034
docker build . -t $DOCKER_USER/$NAME:$TRAVIS_COMMIT --build-arg CONFIG=$CONFIG;
@@ -35,7 +39,7 @@ after_success:
3539
docker push $DOCKER_USER/$NAME:$TRAVIS_COMMIT;
3640
docker push $DOCKER_USER/$NAME:$TRAVIS_BRANCH;
3741

38-
if [ "$TRAVIS_BRANCH" == "master" ]; then
42+
if [ "$TRAVIS_BRANCH" == "master" ]; then
3943
docker tag $DOCKER_USER/$NAME:$TRAVIS_COMMIT $DOCKER_USER/$NAME:latest;
4044
docker push $DOCKER_USER/$NAME:latest;
4145
fi;

Azure.PowerShell.Netcore.sln

Lines changed: 153 additions & 197 deletions
Large diffs are not rendered by default.

AzurePowershell.Test.targets

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TestSettings>.\src\Local.testsettings</TestSettings>
55
<TestSettings_x64>.\src\Local.x64.testsettings</TestSettings_x64>
66
<ScenarioTestDebug>.\src\ServiceManagement\Common\Commands.ScenarioTest\bin\Debug\Microsoft.WindowsAzure.Commands.ScenarioTest.dll</ScenarioTestDebug>
7-
<CommonTestDebug>.\src\ServiceManagement\Common\Commands.Common.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Common.Test.dll</CommonTestDebug>
87
<BackupTestDebug>.\src\ResourceManager\AzureBackup\Commands.AzureBackup.Test\bin\Debug\Microsoft.Azure.Commands.AzureBackup.Test.dll</BackupTestDebug>
98
<RecoveryServicesBackupTestDebug>.\src\ResourceManager\RecoveryServices\Commands.RecoveryServices.Backup.Test\bin\Debug\Microsoft.Azure.Commands.RecoveryServices.Backup.Test.dll</RecoveryServicesBackupTestDebug>
109
<SqlTestDebug>.\src\ResourceManager\Sql\Commands.Sql.Test\bin\Debug\Microsoft.Azure.Commands.Sql.Test.dll</SqlTestDebug>
@@ -14,7 +13,7 @@
1413
<AzureRTTestSettings>.\src\AzureRT.testsettings</AzureRTTestSettings>
1514
<AzureRTSeqTestSettings>.\src\AzureRTSeq.testsettings</AzureRTSeqTestSettings>
1615
<AzureRTTestContainer>.\src\ServiceManagement\Compute\Commands.ServiceManagement.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Test.dll</AzureRTTestContainer>
17-
<StorageScenarioTestDebug>src\Common\Storage\Commands.Storage.ScenarioTest\bin\Debug\CLITest.dll</StorageScenarioTestDebug>
16+
<StorageScenarioTestDebug>src\Storage\Commands.Storage.ScenarioTest\bin\Debug\CLITest.dll</StorageScenarioTestDebug>
1817
<ManagementTestDebug>.\src\ServiceManagement\Services\Commands.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Test.dll</ManagementTestDebug>
1918
<ResourceManagerTestDebug>.\src\ResourceManager\Resources\Commands.Resources.Test\bin\Debug\Microsoft.Azure.Commands.Resources.Test.dll</ResourceManagerTestDebug>
2019
<DataFactoryManagerTestDebug>.\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll</DataFactoryManagerTestDebug>
@@ -56,21 +55,32 @@
5655
</Target>
5756

5857
<Target Name="InvokeXUnit">
59-
<Message Importance="high" Text="Running XUnit tests" />
60-
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
58+
<PropertyGroup> <!-- Create the file path for the test dll (src/TestResults/<dll name>.html -->
59+
<TestName>$(XUnitTests.Split('\').Length)</TestName>
60+
<TestNamePathLength>$([MSBuild]::Subtract($(TestName), 1))</TestNamePathLength>
61+
<TestSubFileName>$(XUnitTests.Split('\')[$(TestNamePathLength)])</TestSubFileName>
62+
<TestFileName>$(TestOutputDirectory)\$(TestSubFileName).html</TestFileName>
63+
</PropertyGroup>
64+
<Message Importance="high" Text="Running XUnit tests... $(TestFileName)" />
6165

6266
<xunit
63-
Assemblies="@(XUnitTests)"
67+
Assemblies="$(XUnitTests)"
6468
AppDomains="true"
6569
ShadowCopy="false"
6670
ParallelizeTestCollections="false"
67-
ParallelizeAssemblies="true"
71+
ParallelizeAssemblies="false"
6872
IncludeTraits="AcceptanceType=CheckIn"
69-
Html="$(TestOutputDirectory)\AzurePowershellTestResults.html"
70-
MaxParallelThreads="10"
73+
Html="$(TestFileName)"
7174
DiagnosticMessages="false"
72-
ContinueOnError="false"
73-
Condition=" @(XUnitTests) != '' "/>
75+
ContinueOnError="true"
76+
Condition=" $(XUnitTests) != '' ">
77+
<Output TaskParameter="ExitCode" ItemName="XUnitExitCode"/>
78+
</xunit>
79+
80+
81+
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;. Move-Item -Path $(TestOutputDirectory)/$(TestSubFileName).html -Destination $(TestOutputDirectory)/PassingTests/$(TestSubFileName).html &quot;" Condition="%(XUnitExitCode.Identity) == 0"/>
82+
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;. Move-Item -Path $(TestOutputDirectory)/$(TestSubFileName).html -Destination $(TestOutputDirectory)/FailingTests/$(TestSubFileName).html &quot;" Condition="%(XUnitExitCode.Identity) != 0"/>
83+
7484
</Target>
7585

7686
<Target Name="InvokeXUnitAll">
@@ -82,10 +92,9 @@
8292
AppDomains="true"
8393
ShadowCopy="false"
8494
ParallelizeTestCollections="false"
85-
ParallelizeAssemblies="true"
95+
ParallelizeAssemblies="false"
8696
ExcludeTraits="RunType=LiveOnly;AcceptanceType=CheckIn"
8797
Html="$(TestOutputDirectory)\AzurePowershellAllTestResults.html"
88-
MaxParallelThreads="10"
8998
DiagnosticMessages="false"
9099
ContinueOnError="false"
91100
Condition=" @(XUnitTests) != '' "/>
@@ -230,13 +239,6 @@
230239
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
231240
</Target>
232241

233-
<!-- Run the common tests -->
234-
<Target Name="CommonTests">
235-
<Message Importance="high" Text="Running Common tests" />
236-
<Xunit.Runner.MSBuild.xunit Assemblies="$(CommonTestDebug)" Html="$(TestOutputDirectory)\CommonTests.xunit.dll.html" Verbose="false"
237-
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
238-
</Target>
239-
240242
<!-- Run the Compute tests -->
241243
<Target Name="ComputeTests">
242244
<Message Importance="high" Text="Running Compute tests" />

0 commit comments

Comments
 (0)