Skip to content

Commit 5b012ec

Browse files
committed
Adding Recording for test
1 parent 4242b51 commit 5b012ec

File tree

2 files changed

+535
-3
lines changed

2 files changed

+535
-3
lines changed

src/Automation/Automation.Test/ScenarioTests/UpdateManagementTests.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,11 @@ function Test-CreateLinuxIncludedPackageNameMasksSoftwareUpdateConfiguration() {
527527
Test-CreateLinuxOneTimeSoftwareUpdateConfigurationWithAllOption
528528
#>
529529
function Test-CreateLinuxSoftwareUpdateConfigurationWithRebootSetting {
530+
$azureVMIdsLinux = @(
531+
"/subscriptions/d2b38167-d3ca-4d1f-a020-948eee21b6bc/resourceGroups/ikanni-rhel76-hw-001-RG/providers/Microsoft.Compute/virtualMachines/ikanni-rhel76-hw-001",
532+
"/subscriptions/d2b38167-d3ca-4d1f-a020-948eee21b6bc/resourceGroups/ikanni-rhel76-JPE-hw-002-RG/providers/Microsoft.Compute/virtualMachines/ikanni-rhel76-JPE-hw-002"
533+
)
534+
530535
$name = "linx-suc-reboot"
531536
$rebootSetting = "Never"
532537
$startTime = ([DateTime]::Now).AddMinutes(10)
@@ -542,17 +547,17 @@ function Test-CreateLinuxSoftwareUpdateConfigurationWithRebootSetting {
542547
-AutomationAccountName $aa `
543548
-Schedule $s `
544549
-Linux `
545-
-AzureVMResourceId $azureVMIdsL `
550+
-AzureVMResourceId $azureVMIdsLinux `
546551
-NonAzureComputer $nonAzurecomputers `
547552
-Duration (New-TimeSpan -Hours 2) `
548553
-IncludedPackageClassification Security,Critical `
549554
-ExcludedPackageNameMask Mask01,Mask02 `
550555
-IncludedPackageNameMask Mask100 `
551556
-RebootSetting $rebootSetting
552-
557+
553558
Assert-NotNull $suc "New-AzAutomationSoftwareUpdateConfiguration returned null"
554559
Assert-AreEqual $suc.Name $name "Name of created software update configuration didn't match given name"
555-
Assert-AreEqual $suc.RebootSetting $rebootSetting "Reboot setting failed to match"
560+
Assert-AreEqual $suc.UpdateConfiguration.Linux.rebootSetting $rebootSetting "Reboot setting failed to match"
556561

557562
WaitForProvisioningState $name "Failed"
558563
}

0 commit comments

Comments
 (0)