CFINSPEC-291: Remove byebugs and noise

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-06-01 13:30:28 +05:30
parent c3b1ce3e9e
commit 4d538f57c2
2 changed files with 0 additions and 3 deletions

View file

@ -41,7 +41,6 @@ module Inspec::Resources
grep = Regexp.new(grep)
end
# require "byebug"; byebug
all_cmds = ps_axo
@list = all_cmds.find_all do |hm|
hm[:command] =~ grep || hm[:process_name] =~ grep
@ -190,7 +189,6 @@ module Inspec::Resources
end
def build_process_list(command, regex, field_map)
# require "byebug"; byebug
cmd = inspec.command(command)
all = cmd.stdout.split("\n")[1..-1]
return [] if all.nil?

View file

@ -528,7 +528,6 @@ class MockLoader
# modprobe for kernel_module
"modprobe --showconfig" => cmd.call("modprobe-config"),
# get-process cmdlet for processes resource
# '$Proc = Get-Process -IncludeUserName | Where-Object {$_.Path -ne $null } | Select-Object PriorityClass,Id,CPU,PM,VirtualMemorySize,NPM,SessionId,Responding,StartTime,TotalProcessorTime,UserName,Path | ConvertTo-Csv -NoTypeInformation;$Proc.Replace("""","").Replace("`r`n","`n")' => cmd.call("get-process_processes"),
'$Proc = Get-Process -IncludeUserName | Select-Object PriorityClass,Id,CPU,PM,VirtualMemorySize,NPM,SessionId,Responding,StartTime,TotalProcessorTime,UserName,Path,ProcessName | ConvertTo-Csv -NoTypeInformation;$Proc.Replace("""","").Replace("`r`n","`n")' => cmd.call("get-process_processes"),
# host resource: TCP/UDP reachability check on linux
%{sh -c 'type "nc"'} => empty.call,