Skip to content

Commit 521e91a

Browse files
committed
Re-record tests
1 parent 5b3e557 commit 521e91a

File tree

34 files changed

+699829
-5289
lines changed

34 files changed

+699829
-5289
lines changed

src/Batch/Batch.Test/ScenarioTests/BatchAccountTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public void TestBatchAccountEndToEnd()
3737

3838
[Fact]
3939
[Trait(Category.AcceptanceType, Category.CheckIn)]
40-
public void TestListNodeAgentSkus()
40+
public void TestGetBatchSupportedImages()
4141
{
42-
BatchController.NewInstance.RunPsTest(_logger, "Test-GetBatchNodeAgentSkus");
42+
BatchController.NewInstance.RunPsTest(_logger, "Test-GetBatchSupportedImages");
4343
}
4444
}
4545
}

src/Batch/Batch.Test/ScenarioTests/BatchAccountTests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@ function Test-BatchAccountEndToEnd
9898

9999
<#
100100
.SYNOPSIS
101-
Tests getting a list of Batch node agent skus
101+
Tests getting a list of Batch supported images
102102
#>
103-
function Test-GetBatchNodeAgentSkus
103+
function Test-GetBatchSupportedImages
104104
{
105105
$context = New-Object Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ScenarioTestContext
106106

107107
# Get the node agent skus
108-
$nodeAgentSkus = Get-AzBatchNodeAgentSku -BatchContext $context
108+
$supportedImages = Get-AzBatchSupportedImages -BatchContext $context
109109

110-
foreach($nodeAgentSku in $nodeAgentSkus)
110+
foreach($supportedImage in $supportedImages)
111111
{
112-
Assert-True { $nodeAgentSku.Id.StartsWith("batch.node") }
113-
Assert-True { $nodeAgentSku.OSType -in "linux","windows" }
114-
Assert-AreNotEqual $null $nodeAgentSku.VerifiedImageReferences
112+
Assert-True { $supportedImage.NodeAgentSkuId.StartsWith("batch.node") }
113+
Assert-True { $supportedImage.OSType -in "linux","windows" }
114+
Assert-AreNotEqual $null $supportedImage.VerificationType
115115
}
116116
}

src/Batch/Batch.Test/ScenarioTests/CertificateTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void TestCancelCertificateDelete()
5252
() =>
5353
{
5454
context = new ScenarioTestContext();
55-
thumbprint = ScenarioTestHelpers.AddTestCertificate(controller, context, BatchTestHelpers.TestCertificateFileName);
55+
thumbprint = ScenarioTestHelpers.AddTestCertificate(controller, context, BatchTestHelpers.TestCertificateFileName).ToLowerInvariant();
5656
CertificateReference certRef = new CertificateReference();
5757
certRef.StoreLocation = CertStoreLocation.CurrentUser;
5858
certRef.StoreName = "My";

src/Batch/Batch.Test/ScenarioTests/CertificateTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ function Test-TestCancelCertificateDelete
6767
$filter = "state eq 'active'"
6868
$cert = Get-AzBatchCertificate -Filter $filter -BatchContext $context
6969

70-
Assert-AreEqual $thumbprint $cert.Thumbprint
70+
Assert-AreEqual $thumbprint $cert.Thumbprint.ToLowerInvariant()
7171
}

src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestBatchAccountEndToEnd.json

Lines changed: 265 additions & 265 deletions
Large diffs are not rendered by default.

src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetBatchSupportedImages.json

Lines changed: 63 additions & 0 deletions
Large diffs are not rendered by default.

src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestListNodeAgentSkus.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)