Skip to content

Commit 6ab0000

Browse files
author
jasper-schneider
committed
Fix Tests
There was a PR changing cmdlet names from RM to Rm, and there was another PR that added some scenario tests using the RM name. Both were merged close together, causing a test issue.
1 parent 48ccf0b commit 6ab0000

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function Test-UpdateComputeNodeUser
4949
{
5050
param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$userName)
5151

52-
$context = Get-AzureRMBatchAccountKeys -Name $accountName
52+
$context = Get-AzureRmBatchAccountKeys -Name $accountName
5353

5454
# Basically just validating that we can set the parameters and execute the cmdlet without error.
5555
# If a Get user API is added, we can validate that the properties were actually updated.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function Test-UpdateJobSchedule
336336
{
337337
param([string]$accountName, [string]$jobScheduleId)
338338

339-
$context = Get-AzureRMBatchAccountKeys -Name $accountName
339+
$context = Get-AzureRmBatchAccountKeys -Name $accountName
340340

341341
$jobSchedule = Get-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context
342342

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ function Test-UpdateJob
333333
{
334334
param([string]$accountName, [string]$jobId)
335335

336-
$context = Get-AzureRMBatchAccountKeys -Name $accountName
336+
$context = Get-AzureRmBatchAccountKeys -Name $accountName
337337

338338
# Create the job with an auto pool
339339
$poolSpec = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolSpecification

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function Test-UpdatePool
172172
{
173173
param([string]$accountName, [string]$poolId)
174174

175-
$context = Get-AzureRMBatchAccountKeys -Name $accountName
175+
$context = Get-AzureRmBatchAccountKeys -Name $accountName
176176

177177
$pool = Get-AzureBatchPool_ST $poolId -BatchContext $context
178178

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function Test-UpdateTask
183183
{
184184
param([string]$accountName, [string]$jobId, [string]$taskId)
185185

186-
$context = Get-AzureRMBatchAccountKeys -Name $accountName
186+
$context = Get-AzureRmBatchAccountKeys -Name $accountName
187187

188188
$task = Get-AzureBatchTask_ST $jobId $taskId -BatchContext $context
189189

src/ResourceManager/AzureBatch/Commands.Batch/Accounts/GetBatchAccountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace Microsoft.Azure.Commands.Batch
2020
{
21-
[Cmdlet(VerbsCommon.Get, Constants.AzureRMBatchAccount), OutputType(typeof(BatchAccountContext))]
21+
[Cmdlet(VerbsCommon.Get, Constants.AzureRmBatchAccount), OutputType(typeof(BatchAccountContext))]
2222
public class GetBatchAccountCommand : BatchCmdletBase
2323
{
2424
[Alias("Name")]

src/ResourceManager/AzureBatch/Commands.Batch/Accounts/GetBatchAccountKeysCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Microsoft.Azure.Commands.Batch
1919
{
20-
[Cmdlet(VerbsCommon.Get, Constants.AzureRMBatchAccountKeys), OutputType(typeof(BatchAccountContext))]
20+
[Cmdlet(VerbsCommon.Get, Constants.AzureRmBatchAccountKeys), OutputType(typeof(BatchAccountContext))]
2121
public class GetBatchAccountKeysCommand : BatchCmdletBase
2222
{
2323
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,

src/ResourceManager/AzureBatch/Commands.Batch/Accounts/NewBatchAccountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace Microsoft.Azure.Commands.Batch
2020
{
21-
[Cmdlet(VerbsCommon.New, Constants.AzureRMBatchAccount), OutputType(typeof(BatchAccountContext))]
21+
[Cmdlet(VerbsCommon.New, Constants.AzureRmBatchAccount), OutputType(typeof(BatchAccountContext))]
2222
public class NewBatchAccountCommand : BatchCmdletBase
2323
{
2424
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,

src/ResourceManager/AzureBatch/Commands.Batch/Accounts/NewBatchAccountKeyCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace Microsoft.Azure.Commands.Batch
2020
{
21-
[Cmdlet(VerbsCommon.New, Constants.AzureRMBatchAccountKey), OutputType(typeof(BatchAccountContext))]
21+
[Cmdlet(VerbsCommon.New, Constants.AzureRmBatchAccountKey), OutputType(typeof(BatchAccountContext))]
2222
public class RegenBatchAccountKeyCommand : BatchCmdletBase
2323
{
2424
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,

src/ResourceManager/AzureBatch/Commands.Batch/Accounts/RemoveBatchAccountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace Microsoft.Azure.Commands.Batch
2020
{
21-
[Cmdlet(VerbsCommon.Remove, Constants.AzureRMBatchAccount)]
21+
[Cmdlet(VerbsCommon.Remove, Constants.AzureRmBatchAccount)]
2222
public class RemoveBatchAccountCommand : BatchCmdletBase
2323
{
2424
private static string mamlCall = "RemoveAccount";

src/ResourceManager/AzureBatch/Commands.Batch/Accounts/SetBatchAccountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace Microsoft.Azure.Commands.Batch
2020
{
21-
[Cmdlet(VerbsCommon.Set, Constants.AzureRMBatchAccount), OutputType(typeof(BatchAccountContext))]
21+
[Cmdlet(VerbsCommon.Set, Constants.AzureRmBatchAccount), OutputType(typeof(BatchAccountContext))]
2222
public class SetBatchAccountCommand : BatchCmdletBase
2323
{
2424
[Parameter(Mandatory = true, Position = 0, ValueFromPipelineByPropertyName = true,

src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public class Constants
1919
public const int DefaultMaxCount = 1000;
2020

2121
// ARM cmdlet nouns
22-
public const string AzureRMBatchAccount = "AzureRmBatchAccount";
23-
public const string AzureRMBatchAccountKey = "AzureRmBatchAccountKey";
24-
public const string AzureRMBatchAccountKeys = "AzureRmBatchAccountKeys";
22+
public const string AzureRmBatchAccount = "AzureRmBatchAccount";
23+
public const string AzureRmBatchAccountKey = "AzureRmBatchAccountKey";
24+
public const string AzureRmBatchAccountKeys = "AzureRmBatchAccountKeys";
2525

2626
// Batch Service cmdlet nouns
2727
public const string AzureBatchPool = "AzureBatchPool";

0 commit comments

Comments
 (0)