Skip to content

Commit 0c00632

Browse files
atpham256shahabhijeet
authored andcommitted
Update Stream Analytics Cmdlets to use new SDK (#4200)
* Update Stream Analytics Cmdlets to use new SDK - Updated the Stream Analytics NuGet reference to 2.0.0 - Added Microsoft.Rest.ClientRuntime.Azure and Microsoft.Rest.ClientRuntime.Azure.TestFramework NuGets to packages.config - Updated various other NuGet dependencies to more up to date versions - Updated cmdlet code to use the new Stream Analytics management SDK - Updated test infrastructure to use the new test framework - Removed code references to Hyak libraries since the new version of the SDK was not built on top of Hyak anymore - Added more validation logic to tests - Re-ran tests and updated the session records * Suppress breaking changes error messages - Discussed with PowerShell team and got confirmation from them that the "The type of property X..." error messages can be safely ignored. They are not breaking changes since the type was simply renamed and the properties were preserved. - For "The property 'Type'..." error messages can also be ignored since those are discriminatory types used for serialization/deserialization and the property is no longer produced when using Swagger/AutoRest based SDKs. - For the remaining DateTime type error, I do not see any reference to that property in the Commands.StreamAnalytics.* projects. I believe this may be a case where the property is not exposed to the customer and therefore means there is no breaking change associated with this error.
1 parent caa42b0 commit 0c00632

37 files changed

+6196
-959
lines changed

src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.0.19.2-preview\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
6464
</Reference>
6565
<Reference Include="Microsoft.Azure.Management.StreamAnalytics">
66-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.StreamAnalytics.1.8.0\lib\net40\Microsoft.Azure.Management.StreamAnalytics.dll</HintPath>
66+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.StreamAnalytics.2.0.0\lib\net452\Microsoft.Azure.Management.StreamAnalytics.dll</HintPath>
6767
</Reference>
6868
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
6969
<SpecificVersion>False</SpecificVersion>
@@ -97,11 +97,19 @@
9797
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.28.3\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll</HintPath>
9898
</Reference>
9999
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
100-
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll</HintPath>
100+
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.8\lib\net452\Microsoft.Rest.ClientRuntime.dll</HintPath>
101+
<Private>True</Private>
102+
</Reference>
103+
<Reference Include="Microsoft.Rest.ClientRuntime.Azure, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
104+
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.7\lib\net452\Microsoft.Rest.ClientRuntime.Azure.dll</HintPath>
101105
<Private>True</Private>
102106
</Reference>
103107
<Reference Include="Microsoft.Rest.ClientRuntime.Azure.Authentication, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
104-
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.Authentication.2.2.9-preview\lib\net45\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll</HintPath>
108+
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.Authentication.2.3.1\lib\net452\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll</HintPath>
109+
<Private>True</Private>
110+
</Reference>
111+
<Reference Include="Microsoft.Rest.ClientRuntime.Azure.TestFramework">
112+
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.TestFramework.1.7.2\lib\net452\Microsoft.Rest.ClientRuntime.Azure.TestFramework.dll</HintPath>
105113
<Private>True</Private>
106114
</Reference>
107115
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">

src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Function.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@
1414
},
1515
"binding": {
1616
"type": "Microsoft.MachineLearning/WebService",
17-
"properties": {
18-
"endpoint": "https://ussouthcentral.services.azureml.net/workspaces/f80d5d7a77fa4a46bf2a30c63c078dca/services/b7be5e40fd194258896fb602c1858eaf/execute?api-version=2.0&details=true",
19-
"apiKey": "$EncryptedStringForTesting",
20-
"inputs": {
21-
"name": "input1",
22-
"columnNames": [
23-
{
24-
"name": "tweet",
25-
"dataType": "String",
26-
"mapTo": 0
27-
}
28-
]
29-
},
30-
"outputs": [
31-
{
32-
"name": "Sentiment",
33-
"dataType": "String"
34-
}
35-
],
36-
"batchSize": 10
37-
}
17+
"properties": {
18+
"endpoint": "https://ussouthcentral.services.azureml.net/workspaces/f80d5d7a77fa4a46bf2a30c63c078dca/services/b7be5e40fd194258896fb602c1858eaf/execute?api-version=2.0&details=true",
19+
"apiKey": "$EncryptedStringForTesting",
20+
"inputs": {
21+
"name": "input1",
22+
"columnNames": [
23+
{
24+
"name": "tweet",
25+
"dataType": "String",
26+
"mapTo": 0
27+
}
28+
]
29+
},
30+
"outputs": [
31+
{
32+
"name": "Sentiment",
33+
"dataType": "String"
34+
}
35+
],
36+
"batchSize": 10
37+
}
3838
}
3939
}
4040
}

src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Input.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
}
2020
],
2121
"container": "samples",
22-
"blobName": "sample-blob",
23-
"PathPattern": "",
24-
"DateFormat": "yyyy/MM/dd",
25-
"TimeFormat": "HH",
22+
"blobName": "sample-blob",
23+
"pathPattern": "",
24+
"dateFormat": "yyyy/MM/dd",
25+
"timeFormat": "HH",
2626
"SourcePartitionCount": null
2727
}
2828
}

src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Job.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"type": "Microsoft.Storage/Blob",
2222
"properties": {
2323
"storageAccounts": [
24-
{
25-
"accountName": "azurenrtdogfood",
26-
"accountKey": "$EncryptedStringForTesting"
27-
}
24+
{
25+
"accountName": "azurenrtdogfood",
26+
"accountKey": "$EncryptedStringForTesting"
27+
}
2828
],
2929
"container": "samples",
3030
"pathPattern": ""
@@ -46,13 +46,13 @@
4646
"properties": {
4747
"datasource": {
4848
"type": "Microsoft.Sql/Server/Database",
49-
"properties": {
50-
"server": "$EncryptedStringForTesting.database.windows.net",
51-
"database": "azurenrtsql",
52-
"user": "azurenrt@$EncryptedStringForTesting",
53-
"password": "$EncryptedStringForTesting",
54-
"table": "Samples"
55-
}
49+
"properties": {
50+
"server": "$EncryptedStringForTesting.database.windows.net",
51+
"database": "azurenrtsql",
52+
"user": "azurenrt@$EncryptedStringForTesting",
53+
"password": "$EncryptedStringForTesting",
54+
"table": "Samples"
55+
}
5656
}
5757
}
5858
}

src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"properties": {
88
"server": "$EncryptedStringForTesting.database.windows.net",
99
"database": "azurenrtsql",
10-
"user": "azurenrt@$EncryptedStringForTesting",
11-
"password": "$EncryptedStringForTesting",
10+
"user": "azurenrt@$EncryptedStringForTesting",
11+
"password": "$EncryptedStringForTesting",
1212
"table": "Samples"
1313
}
1414
}

src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/EndToEndTests.ps1

Lines changed: 66 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,82 @@
1414

1515
<#
1616
.SYNOPSIS
17-
Nagative test. Get resources from an non-existing empty group.
17+
Tests the common usages and scenarios of the cmdlets.
1818
#>
1919
function Test-TestStreamingAnalyticsE2E
2020
{
21-
$resourceGroup = "StreamAnalytics-Default-West-US"
21+
$resourceGroup = "ASASDK"
2222
$jobName = "TestJobPS"
2323
$inputName = "Input"
2424
$outputName = "Output"
2525
$transformationName = "transform1"
2626
$functionName = "scoreTweet"
27-
28-
# Create Job
27+
$expectedContainerName = "samples"
28+
$expectedTableName = "Samples"
29+
$expectedStreamingUnits = 1
30+
$expectedBatchSize = 10
31+
32+
# Gets should throw when the resource doesn't exist
33+
Assert-Throws { Get-AzureRmStreamAnalyticsJob -Name $jobName -ResourceGroupName $resourceGroup }
34+
Assert-Throws { Get-AzureRmStreamAnalyticsInput -Name $inputName -JobName $jobName -ResourceGroupName $resourceGroup }
35+
Assert-Throws { Get-AzureRmStreamAnalyticsOutput -Name $outputName -JobName $jobName -ResourceGroupName $resourceGroup }
36+
Assert-Throws { Get-AzureRmStreamAnalyticsTransformation -Name $transformationName -JobName $jobName -ResourceGroupName $resourceGroup }
37+
Assert-Throws { Get-AzureRmStreamAnalyticsFunction -Name $functionName -JobName $jobName -ResourceGroupName $resourceGroup }
38+
39+
# Create Job
2940
$actual = New-AzureRmStreamAnalyticsJob -File .\Resources\job.json -ResourceGroupName $resourceGroup -Name $jobName -Force
41+
Assert-AreEqual $jobName $actual.JobName
42+
Assert-AreEqual "West US" $actual.Location
43+
Assert-AreEqual "Created" $actual.JobState
44+
Assert-AreEqual "Succeeded" $actual.ProvisioningState
45+
Assert-AreEqual $expectedContainerName $actual.Properties.Inputs[0].Properties.Datasource.Container
46+
Assert-AreEqual $expectedTableName $actual.Properties.Outputs[0].Datasource.Table
47+
Assert-AreEqual $expectedStreamingUnits $actual.Properties.Transformation.StreamingUnits
48+
Assert-AreEqual $expectedBatchSize $actual.Properties.Functions[0].Properties.Binding.BatchSize
3049
$expected = Get-AzureRmStreamAnalyticsJob -Name $jobName -ResourceGroupName $resourceGroup
31-
Assert-AreEqual $expected.Name $actual.Name
50+
Assert-AreEqual $expected.JobName $actual.JobName
51+
Assert-AreEqual $expected.Location $actual.Location
52+
Assert-AreEqual $expected.JobState $actual.JobState
53+
Assert-AreEqual $expected.ProvisioningState $actual.ProvisioningState
54+
Assert-AreEqual $expected.Properties.Inputs[0].Properties.Datasource.Container $actual.Properties.Inputs[0].Properties.Datasource.Container
55+
Assert-AreEqual $expected.Properties.Outputs[0].Properties.Datasource.Table $actual.Properties.Outputs[0].Properties.Datasource.Table
56+
Assert-AreEqual $expected.Properties.Transformation.StreamingUnits $actual.Properties.Transformation.StreamingUnits
57+
Assert-AreEqual $expected.Properties.Functions[0].Properties.Binding.BatchSize $actual.Properties.Functions[0].Properties.Binding.BatchSize
3258

3359
# Get Job Input
3460
$actual = Get-AzureRmStreamAnalyticsInput -JobName $jobName -ResourceGroupName $resourceGroup
3561
Assert-AreEqual $inputName $actual.Name
62+
Assert-AreEqual $jobName $actual.JobName
63+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
64+
Assert-AreEqual $expectedContainerName $actual.Properties.Datasource.Container
3665

3766
# Get Job Output
3867
$actual = Get-AzureRmStreamAnalyticsOutput -JobName $jobName -ResourceGroupName $resourceGroup
3968
Assert-AreEqual $outputName $actual.Name
69+
Assert-AreEqual $jobName $actual.JobName
70+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
71+
Assert-AreEqual $expectedTableName $actual.Properties.Datasource.Table
4072

4173
# Get Job transformation
4274
$actual = Get-AzureRmStreamAnalyticsTransformation -JobName $jobName -Name $transformationName -ResourceGroupName $resourceGroup
4375
Assert-AreEqual $transformationName $actual.Name
76+
Assert-AreEqual $jobName $actual.JobName
77+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
78+
Assert-AreEqual $expectedStreamingUnits $actual.Properties.StreamingUnits
4479

4580
# Get Job function
4681
$actual = Get-AzureRmStreamAnalyticsFunction -JobName $jobName -Name $functionName -ResourceGroupName $resourceGroup
4782
Assert-AreEqual $functionName $actual.Name
83+
Assert-AreEqual $jobName $actual.JobName
84+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
85+
Assert-AreEqual $expectedBatchSize $actual.Properties.Binding.BatchSize
4886

4987
# New Input (Patch)
5088
$actual = New-AzureRmStreamAnalyticsInput -File .\Resources\Input.json -JobName $jobName -ResourceGroupName $resourceGroup -Force
5189
Assert-AreEqual $inputName $actual.Name
90+
Assert-AreEqual $jobName $actual.JobName
91+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
92+
Assert-AreEqual $expectedContainerName $actual.Properties.Datasource.Container
5293

5394
# Test Input
5495
$actual = Test-AzureRmStreamAnalyticsInput -JobName $jobName -Name Input -ResourceGroupName $resourceGroup
@@ -58,6 +99,9 @@ function Test-TestStreamingAnalyticsE2E
5899
# New Output (Patch)
59100
$actual = New-AzureRmStreamAnalyticsOutput -File .\Resources\Output.json -JobName $jobName -ResourceGroupName $resourceGroup -Force
60101
Assert-AreEqual $outputName $actual.Name
102+
Assert-AreEqual $jobName $actual.JobName
103+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
104+
Assert-AreEqual $expectedTableName $actual.Properties.Datasource.Table
61105

62106
# Test Output
63107
$actual = Test-AzureRmStreamAnalyticsOutput -JobName $jobName -Name $outputName -ResourceGroupName $resourceGroup
@@ -67,10 +111,16 @@ function Test-TestStreamingAnalyticsE2E
67111
# Create transformation (Patch)
68112
$actual = New-AzureRmStreamAnalyticsTransformation -File .\Resources\Transformation.json -JobName $jobName -ResourceGroupName $resourceGroup -Force
69113
Assert-AreEqual $transformationName $actual.Name
114+
Assert-AreEqual $jobName $actual.JobName
115+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
116+
Assert-AreEqual $expectedStreamingUnits $actual.Properties.StreamingUnits
70117

71118
# New Function (Patch)
72119
$actual = New-AzureRmStreamAnalyticsFunction -File .\Resources\Function.json -JobName $jobName -ResourceGroupName $resourceGroup -Force
73120
Assert-AreEqual $functionName $actual.Name
121+
Assert-AreEqual $jobName $actual.JobName
122+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
123+
Assert-AreEqual $expectedBatchSize $actual.Properties.Binding.BatchSize
74124

75125
# Test Function
76126
$actual = Test-AzureRmStreamAnalyticsFunction -JobName $jobName -Name $functionName -ResourceGroupName $resourceGroup
@@ -107,6 +157,9 @@ function Test-TestStreamingAnalyticsE2E
107157
# Get Function Default Definition
108158
$actual = Get-AzureRmStreamAnalyticsDefaultFunctionDefinition -File .\Resources\RetrieveDefaultFunctionDefinitionRequest.json -Name $functionName -JobName $jobName -ResourceGroupName $resourceGroup
109159
Assert-AreEqual $functionName $actual.Name
160+
Assert-AreEqual $jobName $actual.JobName
161+
Assert-AreEqual $resourceGroup $actual.ResourceGroupName
162+
Assert-AreEqual 1000 $actual.Properties.Binding.BatchSize
110163

111164
# Remove Function
112165
$actual = Remove-AzureRmStreamAnalyticsFunction -JobName $jobName -Name $functionName -ResourceGroupName $resourceGroup
@@ -123,8 +176,16 @@ function Test-TestStreamingAnalyticsE2E
123176
$expected = "True"
124177
Assert-AreEqual $expected $actual
125178

179+
# Gets should throw when the resource doesn't exist
180+
Assert-Throws { Get-AzureRmStreamAnalyticsInput -Name $inputName -JobName $jobName -ResourceGroupName $resourceGroup }
181+
Assert-Throws { Get-AzureRmStreamAnalyticsOutput -Name $outputName -JobName $jobName -ResourceGroupName $resourceGroup }
182+
Assert-Throws { Get-AzureRmStreamAnalyticsFunction -Name $functionName -JobName $jobName -ResourceGroupName $resourceGroup }
183+
126184
# Remove Job
127185
$actual = Remove-AzureRmStreamAnalyticsJob -Name $jobName -ResourceGroupName $resourceGroup
128186
$expected = "True"
129187
Assert-AreEqual $expected $actual
188+
189+
# Gets should throw when the resource doesn't exist
190+
Assert-Throws { Get-AzureRmStreamAnalyticsJob -Name $jobName -ResourceGroupName $resourceGroup }
130191
}

src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/StreamAnalyticsScenarioTestsBase.cs

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,18 @@
1818
using Microsoft.Azure.Management.Resources;
1919
using Microsoft.Azure.Management.StreamAnalytics;
2020
using Microsoft.Azure.Subscriptions;
21-
using Microsoft.Azure.Test;
21+
using Microsoft.Azure.Test.HttpRecorder;
22+
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
2223
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2324
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
25+
using System;
26+
using System.Collections.Generic;
27+
using System.IO;
28+
using LegacyRMClient = Microsoft.Azure.Management.Resources;
29+
using LegacyRMSubscription = Microsoft.Azure.Subscriptions;
30+
using LegacyTest = Microsoft.Azure.Test;
31+
using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory;
32+
using TestUtilities = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities;
2433

2534
namespace Microsoft.Azure.Commands.StreamAnalytics.Test
2635
{
@@ -33,9 +42,9 @@ protected StreamAnalyticsScenarioTestsBase()
3342
helper = new EnvironmentSetupHelper();
3443
}
3544

36-
protected void SetupManagementClients()
45+
protected void SetupManagementClients(MockContext context)
3746
{
38-
var streamAnalyticsManagementClient = GetStreamAnalyticsManagementClient();
47+
var streamAnalyticsManagementClient = GetStreamAnalyticsManagementClient(context);
3948
var resourceManagementClient = GetResourceManagementClient();
4049
var subscriptionsClient = GetSubscriptionClient();
4150
var galleryClient = GetGalleryClient();
@@ -50,11 +59,21 @@ protected void SetupManagementClients()
5059

5160
protected void RunPowerShellTest(params string[] scripts)
5261
{
53-
using (UndoContext context = UndoContext.Current)
54-
{
55-
context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2));
62+
var callingClassType = TestUtilities.GetCallingClass(2);
63+
var mockName = TestUtilities.GetCurrentMethodName(2);
64+
Dictionary<string, string> d = new Dictionary<string, string>();
65+
d.Add("Microsoft.Resources", null);
66+
d.Add("Microsoft.Features", null);
67+
d.Add("Microsoft.Authorization", null);
68+
var providersToIgnore = new Dictionary<string, string>();
69+
providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01");
70+
HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore);
71+
HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords");
5672

57-
SetupManagementClients();
73+
using (MockContext context = MockContext.Start(callingClassType, mockName))
74+
{
75+
SetupManagementClients(context);
76+
var whatisthis = this.GetType().Name;
5877

5978
helper.SetupEnvironment(AzureModule.AzureResourceManager);
6079
helper.SetupModules(AzureModule.AzureResourceManager,
@@ -66,29 +85,29 @@ protected void RunPowerShellTest(params string[] scripts)
6685
}
6786
}
6887

69-
protected StreamAnalyticsManagementClient GetStreamAnalyticsManagementClient()
88+
protected StreamAnalyticsManagementClient GetStreamAnalyticsManagementClient(MockContext context)
7089
{
71-
return TestBase.GetServiceClient<StreamAnalyticsManagementClient>(new CSMTestEnvironmentFactory());
90+
return context.GetServiceClient<StreamAnalyticsManagementClient>(TestEnvironmentFactory.GetTestEnvironment());
7291
}
7392

74-
protected ResourceManagementClient GetResourceManagementClient()
93+
protected LegacyRMClient.ResourceManagementClient GetResourceManagementClient()
7594
{
76-
return TestBase.GetServiceClient<ResourceManagementClient>(new CSMTestEnvironmentFactory());
95+
return LegacyTest.TestBase.GetServiceClient<ResourceManagementClient>(new LegacyTest.CSMTestEnvironmentFactory());
7796
}
7897

79-
protected SubscriptionClient GetSubscriptionClient()
98+
protected LegacyRMSubscription.SubscriptionClient GetSubscriptionClient()
8099
{
81-
return TestBase.GetServiceClient<SubscriptionClient>(new CSMTestEnvironmentFactory());
100+
return LegacyTest.TestBase.GetServiceClient<SubscriptionClient>(new LegacyTest.CSMTestEnvironmentFactory());
82101
}
83102

84103
protected GalleryClient GetGalleryClient()
85104
{
86-
return TestBase.GetServiceClient<GalleryClient>(new CSMTestEnvironmentFactory());
105+
return LegacyTest.TestBase.GetServiceClient<GalleryClient>(new LegacyTest.CSMTestEnvironmentFactory());
87106
}
88107

89108
protected AuthorizationManagementClient GetAuthorizationManagementClient()
90109
{
91-
return TestBase.GetServiceClient<AuthorizationManagementClient>(new CSMTestEnvironmentFactory());
110+
return LegacyTest.TestBase.GetServiceClient<AuthorizationManagementClient>(new LegacyTest.CSMTestEnvironmentFactory());
92111
}
93112
}
94113
}

0 commit comments

Comments
 (0)