Skip to content

Commit 58ddbd5

Browse files
authored
Merge branch 'preview' into patch-2
2 parents 22e7f14 + 17648d3 commit 58ddbd5

File tree

195 files changed

+57820
-4134162
lines changed

Some content is hidden

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

195 files changed

+57820
-4134162
lines changed

AzurePowershell.Test.targets

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@
6464
AppDomains="true"
6565
ShadowCopy="false"
6666
ParallelizeTestCollections="false"
67-
ParallelizeAssemblies="true"
67+
ParallelizeAssemblies="false"
6868
IncludeTraits="AcceptanceType=CheckIn"
6969
Html="$(TestOutputDirectory)\AzurePowershellTestResults.html"
70-
MaxParallelThreads="10"
7170
DiagnosticMessages="false"
7271
ContinueOnError="false"
7372
Condition=" @(XUnitTests) != '' "/>
@@ -82,10 +81,9 @@
8281
AppDomains="true"
8382
ShadowCopy="false"
8483
ParallelizeTestCollections="false"
85-
ParallelizeAssemblies="true"
84+
ParallelizeAssemblies="false"
8685
ExcludeTraits="RunType=LiveOnly;AcceptanceType=CheckIn"
8786
Html="$(TestOutputDirectory)\AzurePowershellAllTestResults.html"
88-
MaxParallelThreads="10"
8987
DiagnosticMessages="false"
9088
ContinueOnError="false"
9189
Condition=" @(XUnitTests) != '' "/>

TestMappings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
".\\src\\ResourceManager\\RecoveryServices\\Commands.RecoveryServices.Backup.Test\\bin\\Debug\\Microsoft.Azure.Commands.RecoveryServices.Backup.Test.dll",
147147
".\\src\\ResourceManager\\RecoveryServices\\Commands.RecoveryServices.Test\\bin\\Debug\\Microsoft.Azure.Commands.RecoveryServicesArm.Test.dll"
148148
],
149+
"src/ResourceManager/RecoveryServices.SiteRecovery/": [
150+
".\\src\\ResourceManager\\RecoveryServices.SiteRecovery\\Commands.RecoveryServices.SiteRecovery.Test\\bin\\Debug\\Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.Test.dll"
151+
],
149152
"src/ResourceManager/RedisCache/": [
150153
".\\src\\ResourceManager\\RedisCache\\Commands.RedisCache.Test\\bin\\Debug\\Microsoft.Azure.Commands.RedisCache.Test.dll"
151154
],

build.proj

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,13 +642,27 @@
642642
<Target Name="Test" DependsOnTargets="BeforeRunTests">
643643
<Message Importance="high" Text="Running check in tests..." />
644644

645+
<CallTarget Targets="BinScopeCheck" />
646+
647+
<CallTarget Targets="RunPoliCheck" />
648+
645649
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;$(MSBuildProjectDirectory)\tools\Modules\Run-UnitTests.ps1 -BuildConfig $(Configuration) -Scope $(Scope) &quot;"
646650
ContinueOnError="ErrorAndContinue"/>
647651

648652
<!-- Azure / Stack -->
649653
<CallTarget Targets="InvokeXUnit" />
650654
</Target>
651655

656+
<Target Name="BinScopeCheck">
657+
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;$(MSBuildProjectDirectory)\tools\CheckBinScope.ps1 -BuildConfig $(Configuration) -CIToolsPath $(CIToolsPath) &quot;"
658+
ContinueOnError="False"/>
659+
<OnError ExecuteTargets="BinScopeErrorMessage"/>
660+
</Target>
661+
662+
<Target Name="BinScopeErrorMessage">
663+
<Error Text="Binscope failed, please check the files in src/Package/BinScope"/>
664+
</Target>
665+
652666
<!-- Run Full switch with scenario tests -->
653667
<Target
654668
Name="FullWithScenarioTests"
@@ -665,4 +679,14 @@
665679
<CallTarget Targets="LiveTests"/>
666680
</Target>
667681

682+
<Target Name="RunPoliCheck">
683+
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;$(MSBuildProjectDirectory)\tools\CheckPoliCheck.ps1 -BuildConfig $(Configuration) -CIToolsPath $(CIToolsPath) &quot;"
684+
ContinueOnError="False"/>
685+
<OnError ExecuteTargets="PoliCheckErrorMessage"/>
686+
</Target>
687+
688+
<Target Name="PoliCheckErrorMessage">
689+
<Error Text="PoliCheck failed with a Severity 1 issue, please check the report at in src/Package/PoliCheck-Scan.html"/>
690+
</Target>
691+
668692
</Project>

src/Common/Commands.Common.Authentication.Abstractions/Settings/AuthenticationFactorySettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ namespace Microsoft.Azure.Commands.Common.Authentication.Abstractions
2222
/// </summary>
2323
public class AuthenticationFactorySettings : IExtensibleSettings
2424
{
25+
public const string CommonAdTenant = "Common";
26+
2527
/// <summary>
2628
/// The default token cache used for the authentication factory
2729
/// </summary>

0 commit comments

Comments
 (0)