Skip to content

Commit

Permalink
#182 TD version is considered while verifiying the expected field cou…
Browse files Browse the repository at this point in the history
…nt in GetIshSetting test.
  • Loading branch information
Arian Taghva Manesh committed Jan 19, 2024
1 parent 05d58d6 commit c2f214e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ Describe "Get-IshSetting" -Tags "Read" {
$ishFields = Get-IshSetting -IshSession $ishSession -RequestedMetadata $requestedMetadata
$ishSession.DefaultRequestedMetadata = $oldDefaultRequestedMetadata
$ishFields.GetType().Name | Should -BeExactly "Object[]"
$ishFields.Length | Should -Be 14
if((([Version]$ishSession.ServerVersion).Major -eq 15 -and ([Version]$ishSession.ServerVersion).Minor -ge 1) -or ([Version]$ishSession.ServerVersion).Major -ge 16)
{
$ishFields.Length | Should -Be 13
}
else
{
$ishFields.Length | Should -Be 14
}
(Get-IshMetadataField -IshSession $ishSession -IshField $ishFields -Name "NAME" -Level None) | Should -Be "Configuration card"
}
It "Parameter IshSession.DefaultRequestedMetadata=Basic" {
Expand Down

0 comments on commit c2f214e

Please sign in to comment.