Skip to content

Commit b5a82bb

Browse files
committed
Converted test project for management lib to swagger
A few more changes Added AllowUpdatein Applications method/Fixed playback mode that contains resource groups Fixes for current applications operation, check null ref Fixed recordings for Updating Application Packages/Create And Remove Batch Account Removed adding pool in the Upgrade App Packages test Removed adding pool in the Upgrade App Packages test Added application recordings Redid Application tests Removed 1.5 off of management batch in packages config Deleted returns for delete accounts operation Changed StorageId to AutoStorageAccountId Fixed ctors for exceptions Changed the ListAccounts work flow Fixed application tests, added linq queries for listaccounts operation Updated application tests Fixed usings for commands Added records directory to httpmock
1 parent 8c64af3 commit b5a82bb

File tree

46 files changed

+2981
-3049
lines changed

Some content is hidden

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

46 files changed

+2981
-3049
lines changed

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/NewBatchAccountCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void NewBatchWithAutoStorageAccountTest()
7878
cmdlet.AccountName = accountName;
7979
cmdlet.ResourceGroupName = resourceGroup;
8080
cmdlet.Location = location;
81-
cmdlet.StorageId = storageId;
81+
cmdlet.AutoStorageAccountId = storageId;
8282

8383
cmdlet.ExecuteCmdlet();
8484

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/SetBatchAccountCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void UpdateAccountTest()
6666
cmdlet.AccountName = accountName;
6767
cmdlet.ResourceGroupName = resourceGroup;
6868
cmdlet.Tag = tags;
69-
cmdlet.StorageId = storageId;
69+
cmdlet.AutoStorageAccountId = storageId;
7070

7171
cmdlet.ExecuteCmdlet();
7272

src/ResourceManager/AzureBatch/Commands.Batch.Test/Applications/GetBatchApplicationPackageCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public GetBatchApplicationPackageCommandTests()
3333

3434
[Fact]
3535
[Trait(Category.AcceptanceType, Category.CheckIn)]
36-
public void GetBatchApplicationsTest()
36+
public void GetBatchApplicationPackageTest()
3737
{
3838
string accountName = "account01";
3939
string resourceGroup = "resourceGroup";

src/ResourceManager/AzureBatch/Commands.Batch.Test/Applications/NewBatchApplicationPackageCommandTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void UploadBatchApplicationPackageTest()
4444

4545
PSApplicationPackage applicationPackageResponse = new PSApplicationPackage();
4646

47-
batchClientMock.Setup(b => b.UploadApplicationPackage(resourceGroup, accountName, applicationId, version, filePath, format, false)).Returns(applicationPackageResponse);
47+
batchClientMock.Setup(b => b.UploadAndActivateApplicationPackage(resourceGroup, accountName, applicationId, version, filePath, format, false)).Returns(applicationPackageResponse);
4848

4949
cmdlet.AccountName = accountName;
5050
cmdlet.ResourceGroupName = resourceGroup;
@@ -57,7 +57,7 @@ public void UploadBatchApplicationPackageTest()
5757
commandRuntimeMock.Setup(f => f.ShouldProcess(It.IsAny<string>(), It.IsAny<string>())).Returns(true);
5858
cmdlet.ExecuteCmdlet();
5959

60-
batchClientMock.Verify(b => b.UploadApplicationPackage(resourceGroup, accountName, applicationId, version, filePath, format, false), Times.Once());
60+
batchClientMock.Verify(b => b.UploadAndActivateApplicationPackage(resourceGroup, accountName, applicationId, version, filePath, format, false), Times.Once());
6161
}
6262

6363
[Fact]
@@ -73,7 +73,7 @@ public void ActivateApplicationPackage()
7373

7474
PSApplicationPackage applicationPackageResponse = new PSApplicationPackage();
7575

76-
batchClientMock.Setup(b => b.UploadApplicationPackage(resourceGroup, accountName, applicationId, version, filePath, format, true)).Returns(applicationPackageResponse);
76+
batchClientMock.Setup(b => b.UploadAndActivateApplicationPackage(resourceGroup, accountName, applicationId, version, filePath, format, true)).Returns(applicationPackageResponse);
7777

7878
cmdlet.AccountName = accountName;
7979
cmdlet.ResourceGroupName = resourceGroup;
@@ -87,7 +87,7 @@ public void ActivateApplicationPackage()
8787
commandRuntimeMock.Setup(f => f.ShouldProcess(It.IsAny<string>(), It.IsAny<string>())).Returns(true);
8888
cmdlet.ExecuteCmdlet();
8989

90-
batchClientMock.Verify(b => b.UploadApplicationPackage(resourceGroup, accountName, applicationId, version, filePath, format, true), Times.Once());
90+
batchClientMock.Verify(b => b.UploadAndActivateApplicationPackage(resourceGroup, accountName, applicationId, version, filePath, format, true), Times.Once());
9191
}
9292
}
9393
}

src/ResourceManager/AzureBatch/Commands.Batch.Test/Applications/RemoveBatchApplicationCommandTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public void DeleteBatchApplicationTest()
3535
string resourceGroup = "resourceGroup";
3636
string applicationId = "applicationId";
3737

38-
AzureOperationResponse deleteResponse = new AzureOperationResponse();
39-
batchClientMock.Setup(b => b.DeleteApplication(resourceGroup, accountName, applicationId)).Returns(deleteResponse);
40-
4138
cmdlet.AccountName = accountName;
4239
cmdlet.ResourceGroupName = resourceGroup;
4340
cmdlet.ApplicationId = applicationId;

src/ResourceManager/AzureBatch/Commands.Batch.Test/Applications/RemoveBatchApplicationPackageCommandTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ public void DeleteBatchApplicationPackageTest()
3636
string applicationId = "applicationId";
3737
string version = "version";
3838

39-
AzureOperationResponse deleteResponse = new AzureOperationResponse();
40-
41-
batchClientMock.Setup(b => b.DeleteApplicationPackage(resourceGroup, accountName, applicationId, version)).Returns(deleteResponse);
42-
4339
cmdlet.AccountName = accountName;
4440
cmdlet.ResourceGroupName = resourceGroup;
4541
cmdlet.ApplicationId = applicationId;

src/ResourceManager/AzureBatch/Commands.Batch.Test/Applications/SetBatchApplicationCommandTests.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ public void UpdateBatchApplicationTest()
3434
string displayName = "name";
3535
string defaultVersion = "version";
3636

37-
AzureOperationResponse updateResponse = new AzureOperationResponse();
38-
39-
batchClientMock.Setup(b => b.UpdateApplication(resourceGroup, accountName, applicationId, true, defaultVersion, displayName)).Returns(updateResponse);
40-
4137
cmdlet.AccountName = accountName;
4238
cmdlet.ResourceGroupName = resourceGroup;
4339
cmdlet.ApplicationId = applicationId;
@@ -59,10 +55,6 @@ public void UpdateBatchApplicationAllowUpdatesOnlyTest()
5955
string resourceGroup = "resourceGroup";
6056
string applicationId = "applicationId";
6157

62-
AzureOperationResponse updateResponse = new AzureOperationResponse();
63-
64-
batchClientMock.Setup(b => b.UpdateApplication(resourceGroup, accountName, applicationId, true, null, null)).Returns(updateResponse);
65-
6658
cmdlet.AccountName = accountName;
6759
cmdlet.ResourceGroupName = resourceGroup;
6860
cmdlet.ApplicationId = applicationId;
@@ -82,10 +74,6 @@ public void UpdateBatchApplicationDefault()
8274
string resourceGroup = "resourceGroup";
8375
string applicationId = "applicationId";
8476

85-
AzureOperationResponse updateResponse = new AzureOperationResponse();
86-
87-
batchClientMock.Setup(b => b.UpdateApplication(resourceGroup, accountName, applicationId, null, null, null)).Returns(updateResponse);
88-
8977
cmdlet.AccountName = accountName;
9078
cmdlet.ResourceGroupName = resourceGroup;
9179
cmdlet.ApplicationId = applicationId;

src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,21 @@
350350
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests\TestUpdatesExistingBatchAccount.json">
351351
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
352352
</None>
353-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestCreatePoolWithApplicationPackage.json" />
354-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestUpdateApplicationPackage.json" />
355-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestUpdatePoolWithApplicationPackage.json" />
356-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestUploadApplication.json" />
357-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestUploadApplicationPackage.json" />
353+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestCreatePoolWithApplicationPackage.json">
354+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
355+
</None>
356+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestUpdateApplicationPackage.json">
357+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
358+
</None>
359+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestUpdatePoolWithApplicationPackage.json">
360+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
361+
</None>
362+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestUploadApplication.json">
363+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
364+
</None>
365+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationTests\TestUploadApplicationPackage.json">
366+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
367+
</None>
358368
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.CertificateTests\TestAddCertificate.json">
359369
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
360370
</None>
@@ -559,7 +569,9 @@
559569
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests\TestGetJobById.json">
560570
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
561571
</None>
562-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests\TestJobWithTaskDependencies.json" />
572+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests\TestJobWithTaskDependencies.json">
573+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
574+
</None>
563575
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests\TestListAllJobs.json">
564576
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
565577
</None>

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchApplicationTests.cs

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
16+
using Microsoft.Azure.Test;
1717
using Xunit;
1818

1919
namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests
@@ -31,30 +31,49 @@ public void TestUploadApplication()
3131
[Fact]
3232
public void TestUploadApplicationPackage()
3333
{
34-
BatchController controller = BatchController.NewInstance;
35-
controller.RunPsTest(string.Format("Test-UploadApplicationPackage '{0}'", filePath));
34+
BatchController.NewInstance.RunPsTest(string.Format("Test-UploadApplicationPackage '{0}'", filePath));
3635
}
3736

3837
[Fact]
3938
public void TestUpdateApplicationPackage()
4039
{
41-
BatchController controller = BatchController.NewInstance;
42-
controller.RunPsTest(string.Format("Test-UpdateApplicationPackage '{0}'", filePath));
40+
BatchController.NewInstance.RunPsTest(string.Format("Test-UpdateApplicationPackage '{0}'", filePath));
4341
}
4442

4543
[Fact]
4644
public void TestCreatePoolWithApplicationPackage()
4745
{
4846
BatchController controller = BatchController.NewInstance;
49-
50-
controller.RunPsTest(string.Format("Test-CreatePoolWithApplicationPackage '{0}' '{1}' ", "pool-id" + Guid.NewGuid().ToString().Substring(0, 5), filePath));
47+
string poolId = "testCreatePoolWithAppPackages";
48+
controller.RunPsTest(string.Format("Test-CreatePoolWithApplicationPackage '{0}' '{1}' ", poolId, filePath));
5149
}
5250

5351
[Fact]
5452
public void TestUpdatePoolWithApplicationPackage()
5553
{
5654
BatchController controller = BatchController.NewInstance;
57-
controller.RunPsTest(string.Format("Test-UpdatePoolWithApplicationPackage '{0}' '{1}'", "pool-id" + Guid.NewGuid().ToString().Substring(0, 5), filePath));
55+
string poolId = "testUpdatePoolWithAppPackages";
56+
BatchAccountContext context = null;
57+
controller.RunPsTestWorkflow(
58+
() =>
59+
{
60+
return new string[]
61+
{
62+
string.Format("Test-UpdatePoolWithApplicationPackage '{0}' '{1}'",
63+
poolId, filePath)
64+
};
65+
},
66+
() =>
67+
{
68+
context = new ScenarioTestContext();
69+
ScenarioTestHelpers.CreateTestPool(controller, context, poolId, 0);
70+
},
71+
() =>
72+
{
73+
ScenarioTestHelpers.DeletePool(controller, context, poolId);
74+
},
75+
TestUtilities.GetCallingClass(),
76+
TestUtilities.GetCurrentMethodName());
5877
}
5978
}
6079
}

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchApplicationTests.ps1

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ function Test-UploadApplicationPackage
6161
finally
6262
{
6363
Remove-AzureRmBatchApplicationPackage -AccountName $context.AccountName -ApplicationId $applicationId -ResourceGroupName $context.ResourceGroupName -ApplicationVersion $applicationVersion
64-
}
64+
Remove-AzureRmBatchApplication -AccountName $context.AccountName -ApplicationId $applicationId -ResourceGroupName $context.ResourceGroupName
65+
}
6566
}
6667

6768
<#
@@ -81,19 +82,20 @@ function Test-UpdateApplicationPackage
8182
try
8283
{
8384
$addAppPack = New-AzureRmBatchApplicationPackage -ResourceGroupName $context.ResourceGroupName -AccountName $context.AccountName -ApplicationId $applicationId -ApplicationVersion $applicationVersion -FilePath $filePath -format "zip"
84-
$beforeUpdateApp = Get-AzureRmBatchApplicationPackage -ResourceGroupName $context.ResourceGroupName -AccountName $context.AccountName -ApplicationId $applicationId -ApplicationVersion $applicationVersion
85+
$beforeUpdateApp = Get-AzureRmBatchApplication -ResourceGroupName $context.ResourceGroupName -AccountName $context.AccountName -ApplicationId $applicationId
8586

8687
Set-AzureRmBatchApplication -ResourceGroupName $context.ResourceGroupName -AccountName $context.AccountName -ApplicationId $applicationId -displayName $newDisplayName -defaultVersion $applicationVersion
8788
$afterUpdateApp = Get-AzureRmBatchApplication -ResourceGroupName $context.ResourceGroupName -AccountName $context.AccountName -ApplicationId $applicationId
8889

8990
Assert-AreEqual $afterUpdateApp.DefaultVersion "foo"
9091
Assert-AreNotEqual $afterUpdateApp.DefaultVersion $beforeUpdateApp.DefaultVersion
91-
Assert-AreEqual $afterUpdateApp.AllowUpdates $false
92+
Assert-AreEqual $afterUpdateApp.AllowUpdates $true
9293
}
9394
finally
9495
{
9596
Remove-AzureRmBatchApplicationPackage -AccountName $context.AccountName -ApplicationId $applicationId -ResourceGroupName $context.ResourceGroupName -ApplicationVersion $applicationVersion
96-
}
97+
Remove-AzureRmBatchApplication -AccountName $context.AccountName -ApplicationId $applicationId -ResourceGroupName $context.ResourceGroupName
98+
}
9799
}
98100

99101
<#
@@ -133,7 +135,8 @@ function Test-CreatePoolWithApplicationPackage
133135
finally
134136
{
135137
Remove-AzureRmBatchApplicationPackage -AccountName $context.AccountName -ApplicationId $applicationId -ResourceGroupName $context.ResourceGroupName -ApplicationVersion $applicationVersion
136-
Remove-AzureBatchPool -Id $poolId -Force -BatchContext $context
138+
Remove-AzureRmBatchApplication -AccountName $context.AccountName -ApplicationId $applicationId -ResourceGroupName $context.ResourceGroupName
139+
Remove-AzureBatchPool -Id $poolId -Force -BatchContext $context
137140
}
138141
}
139142

@@ -157,11 +160,6 @@ function Test-UpdatePoolWithApplicationPackage
157160
Assert-AreEqual $getapp.Id $addAppPack.Id
158161
Assert-AreEqual $getapp.Version $addAppPack.Version
159162

160-
$osFamily = "4"
161-
$targetOSVersion = "*"
162-
$paasConfiguration = New-Object Microsoft.Azure.Commands.Batch.Models.PSCloudServiceConfiguration -ArgumentList @($osFamily, $targetOSVersion)
163-
164-
$addPool = New-AzureBatchPool -Id $poolId -CloudServiceConfiguration $paasConfiguration -TargetDedicated 3 -VirtualMachineSize "small" -BatchContext $context
165163
$getPool = Get-AzureBatchPool -Id $poolId -BatchContext $context
166164

167165
# update pool with application package references
@@ -180,6 +178,6 @@ function Test-UpdatePoolWithApplicationPackage
180178
finally
181179
{
182180
Remove-AzureRmBatchApplicationPackage -AccountName $context.AccountName -ApplicationId $applicationId -ResourceGroupName $context.ResourceGroupName -ApplicationVersion $applicationVersion
183-
Remove-AzureBatchPool -Id $poolId -Force -BatchContext $context
184-
}
181+
Remove-AzureRmBatchApplication -AccountName $context.AccountName -ApplicationId $applicationId -ResourceGroupName $context.ResourceGroupName
182+
}
185183
}

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchController.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2222
using System;
2323
using System.Collections.Generic;
24+
using System.IO;
2425
using System.Linq;
2526
using Microsoft.Azure.Commands.Common.Authentication;
2627
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
@@ -32,7 +33,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests
3233
{
3334
public class BatchController
3435
{
35-
internal static string BatchAccount, BatchAccountKey, BatchAccountUrl, ResourceGroup;
36+
internal static string BatchAccount, BatchAccountKey, BatchAccountUrl, BatchResourceGroup;
3637

3738
private CSMTestEnvironmentFactory csmTestFactory;
3839
private EnvironmentSetupHelper helper;
@@ -88,6 +89,7 @@ public void RunPsTestWorkflow(
8889
providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01");
8990
HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore);
9091

92+
HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords");
9193
using (MockContext context = MockContext.Start(callingClassType, mockName))
9294
{
9395
this.csmTestFactory = SetupCSMTestEnvironmentFactory();
@@ -176,17 +178,22 @@ private BatchManagementClient GetBatchManagementClient(MockContext context)
176178
BatchAccount = Environment.GetEnvironmentVariable(ScenarioTestHelpers.BatchAccountName);
177179
BatchAccountKey = Environment.GetEnvironmentVariable(ScenarioTestHelpers.BatchAccountKey);
178180
BatchAccountUrl = Environment.GetEnvironmentVariable(ScenarioTestHelpers.BatchAccountEndpoint);
179-
ResourceGroup = Environment.GetEnvironmentVariable(ScenarioTestHelpers.BatchAccountResourceGroup);
181+
BatchResourceGroup = Environment.GetEnvironmentVariable(ScenarioTestHelpers.BatchAccountResourceGroup);
180182

181183
HttpMockServer.Variables[ScenarioTestHelpers.BatchAccountName] = BatchAccount;
182184
HttpMockServer.Variables[ScenarioTestHelpers.BatchAccountEndpoint] = BatchAccountUrl;
185+
HttpMockServer.Variables[ScenarioTestHelpers.BatchAccountResourceGroup] = BatchResourceGroup;
183186
}
184187
else if (HttpMockServer.Mode == HttpRecorderMode.Playback)
185188
{
186189
BatchAccount = HttpMockServer.Variables[ScenarioTestHelpers.BatchAccountName];
187190
BatchAccountKey = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==";
188191
BatchAccountUrl = HttpMockServer.Variables[ScenarioTestHelpers.BatchAccountEndpoint];
189-
ResourceGroup = HttpMockServer.Variables[ScenarioTestHelpers.BatchAccountResourceGroup];
192+
193+
if (HttpMockServer.Variables.ContainsKey(ScenarioTestHelpers.BatchAccountResourceGroup))
194+
{
195+
BatchResourceGroup = HttpMockServer.Variables[ScenarioTestHelpers.BatchAccountResourceGroup];
196+
}
190197
}
191198

192199
return context.GetServiceClient<BatchManagementClient>(TestEnvironmentFactory.GetTestEnvironment());

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public ScenarioTestContext() : base()
2828
this.AccountName = BatchController.BatchAccount;
2929
this.PrimaryAccountKey = BatchController.BatchAccountKey;
3030
this.TaskTenantUrl = BatchController.BatchAccountUrl;
31-
this.ResourceGroupName = BatchController.ResourceGroup;
31+
this.ResourceGroupName = BatchController.BatchResourceGroup;
3232
}
3333

3434
protected override BatchServiceClient CreateBatchRestClient(string url, string accountName, string key, DelegatingHandler handler = default(DelegatingHandler))

0 commit comments

Comments
 (0)