summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-06-24 09:41:47 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-06-24 09:41:47 -0700
commiteee6b43216015cf7db9825b60c3c5f35d624c203 (patch)
tree092cdcf3eae7c4f62fdaaf14e68ef136b01830aa /spec
parent201ad1ab88405f3c676712be27cb9d3ad15a4c63 (diff)
downloadchef-eee6b43216015cf7db9825b60c3c5f35d624c203.tar.gz
Refactored tests for older Windows versions
Signed-off-by: John McCrae <john.mccrae@progress.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/client/client_spec.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb
index 3fa2e608e1..1bd84fa940 100644
--- a/spec/integration/client/client_spec.rb
+++ b/spec/integration/client/client_spec.rb
@@ -73,12 +73,7 @@ describe "chef-client" do
def verify_export_password_exists
powershell_exec! <<~EOH
Try {
- if (-not (($PSVersionTable.PSVersion.Major -ge 5) -and ($PSVersionTable.PSVersion.Build -ge 22000)) ) {
- $response = Get-ItemProperty -Path "HKLM:\\Software\\Progress\\Authentication" -Name "PfxPass" -ErrorAction Stop
- }
- else {
- $response = Get-ItemPropertyValue -Path "HKLM:\\Software\\Progress\\Authentication" -Name "PfxPass" -ErrorAction Stop
- }
+ $response = Get-ItemProperty -Path "HKLM:\\Software\\Progress\\Authentication" -Name "PfxPass" -ErrorAction Stop
if ($response) {return $true}
}
Catch {