Skip to content

Commit bb57e5c

Browse files
author
Ajit Navasare (MINDTREE LIMITED)
committed
Merge branch 'preview' of https://github.com/Azure/azure-powershell into EHFixes
# Conflicts: # tools/StaticAnalysis/Exceptions/BreakingChangeIssues.csv
2 parents 2d22850 + 9d95903 commit bb57e5c

File tree

210 files changed

+33905
-1478
lines changed

Some content is hidden

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

210 files changed

+33905
-1478
lines changed

AzurePowershell.Test.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
<XUnitTests Include=".\src\ResourceManager\CognitiveServices\CognitiveServices.Test\bin\Debug\Microsoft.Azure.Commands.Management.CognitiveServices.Test.dll"/>
7878
<XUnitTests Include=".\src\ResourceManager\ContainerRegistry\Commands.ContainerRegistry.Test\bin\Debug\Microsoft.Azure.Commands.ContainerRegistry.Test.dll"/>
7979
<XUnitTests Include=".\src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.Test.dll"/>
80+
<XUnitTests Include=".\src\ResourceManager\Consumption\Commands.Consumption.Test\bin\Debug\Microsoft.Azure.Commands.Consumption.Test.dll"/>
8081
<XUnitTests Include=".\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll"/>
8182
<XUnitTests Include=".\src\ResourceManager\DataLakeAnalytics\Commands.DataLakeAnalytics.Test\bin\Debug\Microsoft.Azure.Commands.DataLakeAnalytics.Test.dll"/>
8283
<XUnitTests Include=".\src\ResourceManager\DataLakeStore\Commands.DataLakeStore.Test\bin\Debug\Microsoft.Azure.Commands.DataLake.Test.dll"/>
@@ -109,6 +110,7 @@
109110
<XUnitTests Include=".\src\Common\Commands.Common.Authentication.Test\bin\Debug\Microsoft.Azure.Commands.Common.Authentication.Test.dll"/>
110111
<XUnitTests Include=".\src\ResourceManager\ServiceBus\Commands.ServiceBus.Test\bin\Debug\Microsoft.Azure.Commands.ServiceBus.Test.dll"/>
111112
<XUnitTests Include=".\src\ResourceManager\EventHub\Commands.EventHub.Test\bin\Debug\Microsoft.Azure.Commands.EventHubs.Test.dll"/>
113+
<XUnitTests Include=".\src\ResourceManager\Relay\Commands.Relay.Test\bin\Debug\Microsoft.Azure.Commands.Relay.Test.dll"/>
112114
<XUnitTests Include="@(AsmXUnitTests)"/>
113115
</ItemGroup>
114116
<ItemGroup Condition=" '$(scope)' == 'ServiceManagement' ">

documentation/Using-Azure-TestFramework.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@
1010
4. Record/Playback tests
1111
5. Change Test Environment settings at run-time
1212
6. Troubleshooting
13-
7. Environment Variable Reference
13+
7. Supported Key=Value pairs in ConnectionString
14+
8. Environment Variable Reference
1415

1516
## 1. Getting Started
16-
1. Launch .\tools\PS-VSPrompt shortcut
17+
1. Double click .\tools\PS-VSPrompt shortcut
1718
1. This starts VS Dev command prompt in PowerShell
1819
2. Import module that helps in performing basic repository tasks
1920
1. Import-Module Repo-Tasks.psd1
20-
2. Type Get-Command -Module Repo-Tasks to see list of cmdlets
21+
2. Type Get-Commands -Module Repo-Tasks to see list of cmdlets
2122
3. Get-Help <CommandName> to get help on individual commands.
2223

23-
## 2. Acquiring TestFramework
24+
## 2. Accquring TestFramework
2425

2526
TestFramework is available on NuGet at https://www.nuget.org/packages/Microsoft.Rest.ClientRuntime.Azure.TestFramework/ .
2627

@@ -105,17 +106,21 @@ Changing the above properties at run-time has the potential to hard code few thi
105106

106107
Ensure that the `HttpRecorderMode` in the `TEST_CSM_ORGID_AUTHENTICATION` environment variable is consistent with the value in `AZURE_TEST_MODE` environment variable.
107108

108-
## 7. Environment Variable Reference
109+
##7. Connection string
110+
Connection string is provided to Test Framework using following environment variables.
111+
In order to debug test set the following environment variables before starting Visual Studio:
109112

110-
#### 7.1. Supported Keys in connection string
113+
TEST_CSM_ORGID_AUTHENTICATION=SubscriptionId={SubId};UserId={orgId};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record;
114+
115+
#### 7.1 Supported Key=Value pairs in Connectionstring
111116
* ManagementCertificate
112117
* SubscriptionId
113118
* AADTenant
114119
* UserId
115120
* Password
116121
* ServicePrincipal
117122
* ServicePrincipalSecret
118-
* Environment={Prod | DogFood | Next | Current}
123+
* Environment={Prod | DogFood | Next | Current | Custom}
119124
* RawToken
120125
* RawGraphToken
121126
* HttpRecorderMode={Record | Playback}
@@ -129,10 +134,9 @@ Ensure that the `HttpRecorderMode` in the `TEST_CSM_ORGID_AUTHENTICATION` enviro
129134
* AADAuthEndpoint
130135
* GraphTokenAudienceUri
131136

137+
## 8. Supported Environment in Test framework (Azure environments)
132138

133-
#### 7.2 Environment Defaults
134-
135-
Setting `Environment` in the connection string will result in the following default values:
139+
#### 8.1 Default Environments and associated Uri
136140

137141
##### Environment = Prod
138142

@@ -189,3 +193,11 @@ Setting `Environment` in the connection string will result in the following defa
189193
GraphTokenAudienceUri = "https://graph.ppe.windows.net/"
190194
DataLakeStoreServiceUri = "https://caboaccountdogfood.net"
191195
DataLakeAnalyticsJoAbndCatalogServiceUri = "https://konaaccountdogfood.net"
196+
197+
##### Environment = Custom
198+
When specified, test framework expect all Uri's to be provided by the user as part of the connection string.
199+
200+
What is also supported is as below (connections string example)
201+
>SubscriptionId=subId;Environment=Prod;AADAuthUri=customAuthUri;ResourceManagementUri=CustomR>esourceMgmtUri
202+
203+
Which translates to, all Uri from pre-defined Prod environment will be used, but AADAuthUri and ResourceManagementUri will be overridden by the one provided in the connection string

0 commit comments

Comments
 (0)