Skip to content

Commit a669636

Browse files
committed
Fix: Fix diff on naming convention change between inputdata.json and pester code
Fix diff on naming convention change between inputdata.json and pester code Ref: #181 Signed-off-by: Sowjanya.V <[email protected]>
1 parent 597c8be commit a669636

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Bugfix:
1919
- Fixed `VMware.PowerCLI` module name not being added in the required modules list of the manifest file. [GH-170](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/170)
2020
- Fixed `Test-VcfPasswordManagementPrereq` not working while multiple module versions were present. [GH-174](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/174)
2121
- Fixed `Update-VcenterRootPasswordExpiration` to handle empty email string. [GH-177](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/177)
22+
- Fixed `PPM.Tests.ps1`, the diff on naming convention change between inputdata.json and pester code. [GH-182](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/182)
2223

2324
Chore:
2425

VMware.CloudFoundation.PasswordManagement.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = '.\VMware.CloudFoundation.PasswordManagement.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '1.7.2.1006'
14+
ModuleVersion = '1.7.2.1007'
1515

1616
# Supported PSEditions
1717
# CompatiblePSEditions = @()

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)