2
0
Fork 0
mirror of https://github.com/inspec/inspec synced 2024-12-22 19:13:24 +00:00
inspec/test/fixtures/cmd
Raimar Sandner fa2f2c2caa make command.exist? POSIX conform
With the current implementation, on a Linux system without bash
command.exist? always returns false. 'sh -c' is guaranteed to exist on a
POSIX-conform system [1] whereas 'bash -c' only works if bash is
actually installed.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html

Obvious fix.
2020-01-19 00:05:33 +01:00
..
$env-computername Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
$env-PATH Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
adsigroups Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
adsiusers Fix tests 2019-11-14 21:22:07 -08:00
apk-info-grep-git Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
auditctl Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
auditctl-legacy Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
auditctl-s Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
auditpol Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
brew-info--json-v1-curl Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
brew-info--json-v1-nginx Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
brew-info-jq Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
chage-l-root Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
choco-list-nssm Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
crontab-foouser Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
crontab-root Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
crontab-special Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
df-PT Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
dig-A-example.com Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
dig-AAAA-example.com Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
dism-iis-webserver Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
docker-images Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
docker-info Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
docker-inspec Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
docker-plugin-ls Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
docker-ps-a Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
docker-service-ls Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
docker-version Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
dpkg-query-W Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
dpkg-s-curl Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
dpkg-s-held-package Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
dscacheutil-query-group Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
dscl Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
elasticsearch-cluster-auth Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
elasticsearch-cluster-no-ssl Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
elasticsearch-cluster-nodes-default Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
elasticsearch-cluster-url Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
env Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
etc-apt Fixes parsing of apt config files with arch specifier. 2019-11-12 15:08:06 -08:00
find-apache2-conf-enabled Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-apache2-conf-enabled-link Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-apache2-ports-conf Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-etc-rc-d-name-S Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-httpd-conf-enabled-link Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-httpd-ssl-conf Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-httpd-status-conf Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-net-interface Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-nginx-conf Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-nginx-confd-multiple-conf Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-nginx-mime-types Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-nginx-proxy-conf Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-nginx-quotesd-example-conf Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
find-xinetd.d Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd--get-active-zones Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd--get-default-zone Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd--get-zones Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd--service-enabled-in-zone Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd--state Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd-has-port-enabled-in-zone Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd-has-rule-enabled Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd-service-ports-enabled-in-zone Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd-service-protocols-enabled-in-zone Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd-services-bound Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
firewall-cmd-sources-bound Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
gem-list-local-a-q-chef-sugar Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
gem-list-local-a-q-json Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
gem-list-local-a-q-knife-backup Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
gem-list-local-a-q-not-installed Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
gem-list-local-a-q-pry Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
gem-list-local-a-q-rubocop Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-item-property-package Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-net-tcpconnection Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
Get-NetAdapter Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-netadapter-binding-bridge Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
Get-NetIPAddress Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-package-firefox Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-package-ruby Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-process_processes Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-service-dhcp Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-windows-feature Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-windows-feature-iis-webserver Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-windows-pip-package Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-wmiobject Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
get-wmiobject-filesystem Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
getent-ahosts-example.com Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
getent-passwd-jfolmer Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
getent-passwd-root Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
host-AAAA-example.com Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
hostname Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
hpux-netstat-inet Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
hpux-netstat-inet6 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
http-remote-basic-auth Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
http-remote-head-request Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
http-remote-headers Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
http-remote-max-redirs Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
http-remote-no-options Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
http-remote-options-request Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
http-remote-params Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
http-remote-post Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
id-chartmann Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
id-jfolmer Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
id-root Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
iis-default-app-pool Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
iis-default-web-site Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
initctl--version Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
initctl-status-ssh Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
interface-addresses-4 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
interface-addresses-6 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ip6tables-s Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
iptables-s Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
kb4019215 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
launchctl-list Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
logins-x Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ls-1-etc-init.d Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ls-sys-class-net-br Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
lsmod Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
lsof-nP-i-FpctPn Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
manufacturer Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
model Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
model_darwin Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
modinfo-f-version-dhcp Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
modprobe-config Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
mount Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
mount-multiple Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
mount-whitespaces Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
mssql-getdate Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
mssql-result Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
mssql-sqlcmd Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
netstat-aan Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
netstat-anbo-pipe-select-string-pattern.utf8 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
netstat-tulpen Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
netstat-tulpen-busybox Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
nginx-v Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
npm-g-ls--json-bower Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
npm-ls--json-bower Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
oracle-cmd Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
oracle-result Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
pacman-qi-curl Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
perl-print-version Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
perl-print-version-not-installed Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ping-example.com Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
pip-show-django Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
pip-show-jinja2 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
pip-show-non-standard-django Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
pkg-info-firewalld Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
pkg-info-system-file-system-zfs Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
pkg-info-vim-console Add suport for freebsd package resource 2019-12-17 08:39:43 -03:00
pkginfo-l-SUNWzfsr Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ps-axo Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ps-axoZ Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ps-busybox Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ps-help-busybox Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
psql-version Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
pw-usershow-root-7 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
r-print-version Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
r-print-version-not-installed Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
reg_schedule Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
Resolve-DnsName Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
rmsock-f0001 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
rmsock-f0002 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
rpm-qa-queryformat Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
rpm-qi-curl Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
s11-netstat-an-finet-finet6 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
sbin_sysctl Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
schtasks-error Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
schtasks-success Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
schtasks-success-multiple-triggers Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
schtasks-success-single-trigger Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
secedit-export Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
security-identifier-alice Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
security-identifier-guests Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
security-identifier-unknown Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
security-policy-sid-translated Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
security-policy-sid-untranslated Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
service-e Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
service-sendmail-onestatus Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
service-sshd-status Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
sh -c type psql make command.exist? POSIX conform 2020-01-19 00:05:33 +01:00
sh-c-type-curl make command.exist? POSIX conform 2020-01-19 00:05:33 +01:00
sh-c-type-nginx make command.exist? POSIX conform 2020-01-19 00:05:33 +01:00
sockstat Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
ss-tulpen Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
success Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
swlist-l-product Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
systemctl-is-enabled-apache2-stderr Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
systemctl-show-all-apache2 Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
systemctl-show-all-dbus Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
systemctl-show-all-sshd Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
Test-NetConnection Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
yum-centos7-repolist-all Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
yum-centos8-repolist-all Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
zfs-get-all-tank-tmp Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
zpool-get-all-tank Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00