diff --git a/spec/classes/log4jscanner_spec.rb b/spec/classes/log4jscanner_spec.rb index 3aa342c..837e0cc 100644 --- a/spec/classes/log4jscanner_spec.rb +++ b/spec/classes/log4jscanner_spec.rb @@ -79,14 +79,14 @@ .with_require("File[#{scan_cmd}]") when 'windows' is_expected.to contain_exec('Log4jscanner generate scan data') - .with_path('C:\Windows\System32/WindowsPowerShell/v1.0') + .with_path('C:\Windows\system32/WindowsPowerShell/v1.0') .with_refreshonly(true) .with_command("powershell -executionpolicy remotesigned -file #{scan_cmd}") .with_timeout(0) is_expected.to contain_scheduled_task('Log4jscanner - Cache scan data') .with_ensure('present') .with_enabled(true) - .with_command('C:\Windows\System32/WindowsPowerShell/v1.0/powershell.exe') + .with_command('C:\Windows\system32/WindowsPowerShell/v1.0/powershell.exe') .with_arguments("-NonInteractive -ExecutionPolicy RemoteSigned -File #{scan_cmd}") .with_user('SYSTEM') .with_trigger( diff --git a/spec/default_facts.yml b/spec/default_facts.yml index f532ee4..f777abf 100644 --- a/spec/default_facts.yml +++ b/spec/default_facts.yml @@ -6,4 +6,3 @@ ipaddress: "172.16.254.254" ipaddress6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA" is_pe: false macaddress: "AA:AA:AA:AA:AA:AA" -system32: "C:\\Windows\\System32"