mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Add explict /usr/sbin/netstat to mockloader, fixes routingtable tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
6fafd446b1
commit
181ef37f2d
1 changed files with 1 additions and 0 deletions
|
@ -409,6 +409,7 @@ class MockLoader
|
|||
"php -c /etc/php/7.4/cli/php.ini -r 'echo get_cfg_var(\"default_mimetype\");'" => cmd.call("get-cfg-var"),
|
||||
# routing_table
|
||||
"netstat -rn" => cmd.call("netstat-rn-linux"),
|
||||
"/usr/sbin/netstat -rn" => cmd.call("netstat-rn-linux"),
|
||||
%{sh -c 'type "netstat"'} => empty.call,
|
||||
# mocks for be_immutable matcher for file resource
|
||||
"lsattr constantfile.txt" => cmd.call("lsattr-output"),
|
||||
|
|
Loading…
Reference in a new issue