Skip to content

Commit b0ce71b

Browse files
sowjuectenthirtyam
authored andcommitted
fix: diff between inputdata.json and pester tests
Fixed diff between `inputdata.json` and the Pester tests. Ref: #181 Signed-off-by: Sowjanya.V <[email protected]>
1 parent 597c8be commit b0ce71b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/PPM.Tests.ps1

+4-3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Describe 'Test Suite' {
9797
$esxiServer = $inputData.$domain.'ESXi Hosts'[0]
9898
$cluster = $inputData.$domain.'Clusters'[0]
9999
$nsxManagerNode = $inputData.$domain.'NSX Manager Nodes'[0]
100+
$nsxManager = $inputData.$domain.'NSX Manager'[0]
100101
$nsxEdgeNode = $inputData.$domain.'NSX Edge Nodes'[0]
101102
}
102103

@@ -473,7 +474,7 @@ Describe 'Test Suite' {
473474

474475
# Get the index of the NSX Edge.
475476
$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"
477478
}
478479

479480
# Expect a success.
@@ -545,7 +546,7 @@ Describe 'Test Suite' {
545546
$currentExpirationSettings = Request-NsxtManagerPasswordExpiration -server $server -user $user -pass $pass -domain $domain
546547

547548
# 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
549550
Write-LogToFile -message "The index of the NSX Manager node $nsxManagerNode in the output is $index"
550551

551552
# Decrement the Max Days by 1.
@@ -569,7 +570,7 @@ Describe 'Test Suite' {
569570
$updatedExpirationSettings = Request-NsxtManagerPasswordExpiration -server $server -user $user -pass $pass -domain $domain
570571

571572
# 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
573574

574575
# Get the updated Max Days.
575576
$outMaxDays = $updatedExpirationSettings[$index].'Max Days'

0 commit comments

Comments
 (0)