@@ -97,6 +97,7 @@ Describe 'Test Suite' {
97
97
$esxiServer = $inputData .$domain .' ESXi Hosts' [0 ]
98
98
$cluster = $inputData .$domain .' Clusters' [0 ]
99
99
$nsxManagerNode = $inputData .$domain .' NSX Manager Nodes' [0 ]
100
+ $nsxManager = $inputData .$domain .' NSX Manager' [0 ]
100
101
$nsxEdgeNode = $inputData .$domain .' NSX Edge Nodes' [0 ]
101
102
}
102
103
@@ -473,7 +474,7 @@ Describe 'Test Suite' {
473
474
474
475
# Get the index of the NSX Edge.
475
476
$index = Get-Index - output $currentExpirationSettings - server $nsxEdgeNode - user $rootUser - useLiveData $useLiveData
476
- Write-LogToFile - message " The index of the NSX Edge node ${$inputData.$domain.'Edge Nodes'[0]} in the output is $index "
477
+ Write-LogToFile - message " The index of the NSX Edge node $nsxEdgeNode in the output is $index "
477
478
}
478
479
479
480
# Expect a success.
@@ -545,7 +546,7 @@ Describe 'Test Suite' {
545
546
$currentExpirationSettings = Request-NsxtManagerPasswordExpiration - server $server - user $user - pass $pass - domain $domain
546
547
547
548
# Get the index of the NSX Manager.
548
- $index = Get-Index - output $currentExpirationSettings - server $inputData . $domain . ' Manager Node ' [ 0 ] - user $rootUser - useLiveData $useLiveData
549
+ $index = Get-Index - output $currentExpirationSettings - server $nsxManager - user $rootUser - useLiveData $useLiveData
549
550
Write-LogToFile - message " The index of the NSX Manager node $nsxManagerNode in the output is $index "
550
551
551
552
# Decrement the Max Days by 1.
@@ -569,7 +570,7 @@ Describe 'Test Suite' {
569
570
$updatedExpirationSettings = Request-NsxtManagerPasswordExpiration - server $server - user $user - pass $pass - domain $domain
570
571
571
572
# Get the index of the NSX Manager.
572
- $index = Get-Index - output $updatedExpirationSettings - server $inputData . $domain . ' Manager Node ' [ 0 ] - user $rootUser - useLiveData $useLiveData
573
+ $index = Get-Index - output $updatedExpirationSettings - server $nsxManager - user $rootUser - useLiveData $useLiveData
573
574
574
575
# Get the updated Max Days.
575
576
$outMaxDays = $updatedExpirationSettings [$index ].' Max Days'
0 commit comments