Modified DEPLOYMENT loop test to run with selected VM sizes.

This commit is contained in:
Shital Savekar 2017-12-29 20:34:30 -08:00
Родитель 92a588b0e0
Коммит 8b8378ac03
3 изменённых файлов: 45 добавлений и 4 удалений

Двоичные данные
1

Двоичный файл не отображается.

Просмотреть файл

@ -6758,6 +6758,21 @@
<DeploymentCount>250</DeploymentCount>
<TestID>Reboot_01</TestID>
</test>
<test>
<testName>ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST-LIMITED</testName>
<testScript></testScript>
<testScriptPs1>ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST.ps1</testScriptPs1>
<files>.\remote-scripts\temp.txt</files>
<setupType>BVTDeployment</setupType>
<TestType></TestType>
<TestFeature></TestFeature>
<SubtestValues>CUSTOM,VM,SIZES</SubtestValues>
<SupportedExecutionModes>AzureServiceManagement,AzureResourceManager</SupportedExecutionModes>
<StandardVMSizes>Standard_A0,Standard_E64_v3,Standard_A7,Standard_D64_v3,Basic_A0,Standard_E32_v3,Basic_A4,Standard_D32_v3,Standard_D1_v2,Standard_D15_v2,Standard_F1,Standard_A1_v2,Standard_F16,Standard_A8_v2,Standard_D1,Standard_D14,Standard_D2_v3,Standard_G5,Standard_E2_v3,Standard_G1,Standard_A8</StandardVMSizes>
<PremiumVMSizes>Standard_DS1_v2,Standard_E64s_v3,Standard_DS15_v2,Standard_F1s,Standard_D64s_v3,Standard_F16s,Standard_E32s_v3,Standard_DS1,Standard_DS14,Standard_B1ms,Standard_L32s,Standard_B8ms,Standard_D2s_v3,Standard_D32s_v3,Standard_E2s_v3,Standard_GS5,Standard_GS1,Standard_L4s</PremiumVMSizes>
<TestID>Reboot_01</TestID>
</test>
<test>
<testName>ICA-VM-REBOOT-TEST</testName>
<testScript></testScript>
@ -7984,6 +7999,12 @@
<Name>ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST</Name>
</test>
</Cycle>
<Cycle>
<cycleName>DEPLOYMENT-LIMITED</cycleName>
<test>
<Name>ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST-LIMITED</Name>
</test>
</Cycle>
<Cycle>
<cycleName>LEGACY-DEPLOYMENT</cycleName>
<test>

Просмотреть файл

@ -54,7 +54,21 @@ else
$Location = (Get-AzureStorageAccount -StorageAccountName $StorAccount).GeoPrimaryLocation
$AccountType = (Get-AzureStorageAccount -StorageAccountName $StorAccount).AccountType
$SupportSizes = (Get-AzureLocation | where {$_.Name -eq $location}).VirtualMachineRoleSizes
}
}
if ($currentTestData.StandardVMSizes -and $AccountType -match 'Standard' )
{
$targetVMSizes = ($currentTestData.StandardVMSizes).Split(",")
}
elseif ($currentTestData.PremiumVMSizes -and $AccountType -match 'Premium')
{
$targetVMSizes = ($currentTestData.PremiumVMSizes).Split(",")
}
else
{
$targetVMSizes = $SupportSizes
}
Write-Host "targetVMSizes = $targetVMSizes"
foreach($size in $SupportSizes)
{
if ($size -imatch 'Promo')
@ -63,13 +77,19 @@ else
}
else
{
if(($size -match 'DS') -or ($size -match 'GS') -or ($size.Trim().EndsWith("s")))
if(($size -match 'DS') -or ($size -match 'GS') -or ($size.Trim().EndsWith("s")) -or ($size.Contains("s_v")))
{
$XioSizes += $size.Trim()
if ( $targetVMsizes.Contains("$size") )
{
$XioSizes += $size.Trim()
}
}
else
{
$StandardSizes += $size.Trim()
if ( $targetVMsizes.Contains("$size") )
{
$StandardSizes += $size.Trim()
}
}
}
}