inspec/test/unit/mock/cmd
Adam Leff 8dc48533aa new resource: elasticsearch resource, test cluster/node state (#2261)
* new resource: elasticsearch resource, test cluster/node state

This is a new resource for testing an Elasticsearch cluster. It operates
by fetching the `_nodes` endpoint from a given Elasticsearch node and
collects data about each node in a cluster, even if there's only a
single node.

This work is based on inspiration from an initial PR #1956 submitted by
@rx294.

Signed-off-by: Rony Xavier <rx294@nyu.edu>
Signed-off-by: Aaron Lippold <lippold@gmail.com>
Signed-off-by: Adam Leff <adam@leff.co>

* Reduce mock data on non-default tests

Signed-off-by: Adam Leff <adam@leff.co>
2017-10-20 17:28:48 -04:00
..
$env-computername add unit tests 2016-09-09 12:43:03 +02:00
$env-PATH Add Windows support to the os_env resource 2015-11-19 15:41:00 +01:00
adsigroups implement filter table for group/groups resource 2016-09-23 00:53:24 +02:00
adsiusers fetch user groups while building user object 2017-04-20 16:02:21 +02:00
auditctl auditd resource: test active auditd configuration against the audit daemon (#2133) 2017-09-18 21:47:18 +02:00
auditctl-legacy auditd_rules: teach old dog new tricks 2016-02-09 11:51:52 +01:00
auditctl-s auditd_rules: status querying (old/new) and unit tests 2016-02-09 11:51:52 +01:00
auditpol add unit test for audit_policy resource 2015-09-21 14:09:16 +02:00
bash -c type psql New postgres_ident_conf resource (#1963) 2017-07-03 20:01:40 +02:00
bash-c-type-curl new resource: elasticsearch resource, test cluster/node state (#2261) 2017-10-20 17:28:48 -04:00
bash-c-type-nginx nginx resource: audit the nginx binary and how it was compiled (#1958) 2017-09-13 08:15:09 -04:00
brew-info--json-v1-curl Mock 'brew info --json=v1 curl' to facilitate unit testing the package resource for the darwin platform 2017-01-02 17:57:20 +01:00
brew-info-jq add mock resources for package resource 2015-09-22 02:15:41 +02:00
chage-l-root return password expiry information for linux 2015-10-05 11:50:49 +02:00
crontab-foouser Adding new crontab resource 2017-02-10 09:33:31 -05:00
crontab-root Adding new crontab resource 2017-02-10 09:33:31 -05:00
crontab-special Support special cases for crontab resource 2017-06-06 15:12:12 +02:00
dig-A-example.com Fix host resolution on Darwin, use dig wherever possible (#1986) 2017-07-05 10:45:30 -04:00
dig-AAAA-example.com Fix host resolution on Darwin, use dig wherever possible (#1986) 2017-07-05 10:45:30 -04:00
docker-images Fix docker_container.tag to properly fetch from image name (#2052) 2017-08-10 14:57:45 +02:00
docker-info Docker resource (#1566) 2017-04-24 10:47:03 -04:00
docker-inspec Docker resource (#1566) 2017-04-24 10:47:03 -04:00
docker-ps-a Ignore linked container names when parsing docker containers (#2134) 2017-09-13 08:16:53 -04:00
docker-version Docker resource (#1566) 2017-04-24 10:47:03 -04:00
dpkg-query-W Switch package resource to os.redhat detection and use two spaces as fileds delimited 2017-02-15 11:07:10 +00:00
dpkg-s-curl add mock resources for package resource 2015-09-22 02:15:41 +02:00
dpkg-s-held-package Properly handle held packages on dpkg-flavored OS (#2087) 2017-08-18 17:29:23 +02:00
dscl add tests for user resource 2015-10-05 11:50:49 +02:00
elasticsearch-cluster-auth new resource: elasticsearch resource, test cluster/node state (#2261) 2017-10-20 17:28:48 -04:00
elasticsearch-cluster-no-ssl new resource: elasticsearch resource, test cluster/node state (#2261) 2017-10-20 17:28:48 -04:00
elasticsearch-cluster-nodes-default new resource: elasticsearch resource, test cluster/node state (#2261) 2017-10-20 17:28:48 -04:00
elasticsearch-cluster-url new resource: elasticsearch resource, test cluster/node state (#2261) 2017-10-20 17:28:48 -04:00
env api: don't force root on os_env 2015-11-13 12:10:22 +01:00
etc-apt add test coverage for apt 2015-10-10 23:28:03 +02:00
find-apache2-conf-enabled [resources/apache_conf]: add tests, fix bug 2015-12-07 10:50:48 +01:00
find-apache2-conf-enabled-link Added unit tests for apache_conf inclusion of symlinked files. 2017-02-24 16:13:22 +11:00
find-apache2-ports-conf [resources/apache_conf]: add tests, fix bug 2015-12-07 10:50:48 +01:00
find-etc-rc-d-name-S rewrite systemv service implementation, read enabled services from rc 2015-09-25 12:58:03 +02:00
find-httpd-conf-enabled-link Added unit tests for apache_conf inclusion of symlinked files. 2017-02-24 16:13:22 +11:00
find-httpd-ssl-conf added unit tests 2016-09-02 21:55:28 -04:00
find-httpd-status-conf In ApacheConf#include_files, check for abs paths 2016-09-20 09:11:09 -04:00
find-net-interface introduce better network interface abstraction, add test cases 2015-10-08 13:01:50 +02:00
find-nginx-conf Add wildcard/multiple server support to nginx_conf resource (#2141) 2017-09-15 16:37:57 -04:00
find-nginx-confd-multiple-conf Add wildcard/multiple server support to nginx_conf resource (#2141) 2017-09-15 16:37:57 -04:00
find-nginx-mime-types Add wildcard/multiple server support to nginx_conf resource (#2141) 2017-09-15 16:37:57 -04:00
find-nginx-proxy-conf Add wildcard/multiple server support to nginx_conf resource (#2141) 2017-09-15 16:37:57 -04:00
find-xinetd.d Fix xinetd parsing of services from the same file. Expose resource.protocols 2017-01-31 12:40:29 +00:00
firewall-cmd firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd--get-active-zones firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd--get-default-zone firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd--get-zones firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd--service-enabled-in-zone firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd--state firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd-has-port-enabled-in-zone firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd-has-rule-enabled firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd-service-ports-enabled-in-zone firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd-service-protocols-enabled-in-zone firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd-services-bound firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
firewall-cmd-sources-bound firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
gem-list-local-a-q-chef-sugar Extend gem to take an optional gem_binary 2017-03-24 22:28:42 -07:00
gem-list-local-a-q-json Extend gem to take an optional gem_binary 2017-03-24 22:28:42 -07:00
gem-list-local-a-q-knife-backup Extend gem to take an optional gem_binary 2017-03-24 22:28:42 -07:00
gem-list-local-a-q-not-installed Fix installed? check for gem resource 2017-05-22 15:34:01 -05:00
gem-list-local-a-q-pry Extend gem to take an optional gem_binary 2017-03-24 22:28:42 -07:00
gem-list-local-a-q-rubocop add gem resource to verify gem packages 2015-09-22 02:15:41 +02:00
get-item-property-package add unit test for new package resource 2016-08-24 14:40:26 +02:00
get-net-tcpconnection port resource support for Windows 2015-09-23 23:08:19 +02:00
Get-NetAdapter add windows support to network adapter 2015-10-08 13:01:50 +02:00
get-netadapter-binding-bridge add bridge unit tests for windows 2015-10-09 15:26:59 +02:00
get-package-firefox increase test coverage for oneget 2015-10-03 13:27:20 +02:00
get-package-ruby increase test coverage for oneget 2015-10-03 13:27:20 +02:00
get-process_processes Added windows support to the processes resource 2017-06-05 23:41:02 +01:00
get-service-dhcp add resource test for windows 2015-09-22 02:26:59 +02:00
get-windows-feature add unit tests for windows feature 2015-09-22 02:27:03 +02:00
get-wmiobject improve wmi resource 2016-06-19 23:40:45 +02:00
getent-ahosts-example.com Change host resource to use getent ahosts on Linux (#2002) 2017-07-11 21:32:52 +02:00
getent-passwd-jfolmer add unit tests for user resource that cover ldap groups 2015-11-24 18:35:10 +01:00
getent-passwd-root add tests for user resource 2015-10-05 11:50:49 +02:00
host-AAAA-example.com Add OSX support for host resource (#1608) 2017-04-13 11:32:04 -04:00
hostname add unit tests 2016-09-09 12:43:03 +02:00
hpux-netstat-inet prefixed hpux to cmd file name 2016-05-03 21:38:39 +05:30
hpux-netstat-inet6 prefixed hpux to cmd file name 2016-05-03 21:38:39 +05:30
http-remote-basic-auth http resource: properly execute tests on remote target (#2209) 2017-10-04 22:44:09 +02:00
http-remote-headers http resource: properly execute tests on remote target (#2209) 2017-10-04 22:44:09 +02:00
http-remote-no-options http resource: properly execute tests on remote target (#2209) 2017-10-04 22:44:09 +02:00
http-remote-post http resource: properly execute tests on remote target (#2209) 2017-10-04 22:44:09 +02:00
id-chartmann add tests for user resource 2015-10-05 11:50:49 +02:00
id-jfolmer add unit tests for user resource that cover ldap groups 2015-11-24 18:35:10 +01:00
id-root add tests for user resource 2015-10-05 11:50:49 +02:00
initctl--version upstart_service: add version mock for ubuntu 2016-02-05 13:49:18 +01:00
initctl-status-ssh add service unit tests for ubuntu 14.04 2015-09-25 11:52:33 +02:00
iptables-s iptables unit test: add comment examples 2016-02-10 09:57:32 +01:00
kb4019215 windows_hotfix resource: test whether a Windows HotFix is installed (#2178) 2017-09-25 19:09:22 +02:00
launchctl-list improve service handling for mac and add unit tests 2015-09-25 12:51:12 +02:00
logins-x added hpux user and package resource support 2016-04-21 14:01:56 +05:30
ls-1-etc-init.d rewrite systemv service implementation, read enabled services from rc 2015-09-25 12:58:03 +02:00
ls-sys-class-net-br add bridge test for linux 2015-10-09 15:07:58 +02:00
lsmod kernel_module resource: added blacklisting, enabled, disabled, docs and unit tests (#1798) 2017-07-05 11:41:44 +02:00
lsof-nP-i-FpctPn formatted lsof mockup 2016-01-14 23:03:24 -05:00
modinfo-f-version-dhcp Add version method to kernel_module 2017-01-27 13:33:41 +03:00
modprobe-config kernel_module resource: added blacklisting, enabled, disabled, docs and unit tests (#1798) 2017-07-05 11:41:44 +02:00
mount add mount resource 2016-01-03 00:03:24 +01:00
mount-multiple handle mount results with multiple entries 2016-01-03 00:03:24 +01:00
mssql-getdate oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
mssql-result oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
mssql-sqlcmd oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
nc-example-com Add TCP reachability support on Linux for host resource (#1915) 2017-06-09 18:18:51 +02:00
netstat-aan Uses netstat to detect open ports on AIX (#2210) 2017-10-10 10:54:18 +02:00
netstat-anbo-pipe-select-string-pattern.utf8 make netstat default for getting ports and get only listening ones 2016-08-12 16:02:56 +01:00
netstat-tulpen Fix port ressource ss line parsing (#2243) 2017-10-17 14:45:37 +02:00
nginx-v nginx resource: audit the nginx binary and how it was compiled (#1958) 2017-09-13 08:15:09 -04:00
npm-ls-g--json-bower add npm resource to verify gem packages 2015-09-22 02:15:41 +02:00
oracle-cmd oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
oracle-result oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
pacman-qi-curl rename pacman mock file 2015-09-23 23:30:31 +02:00
ping-example.com add linux tests for host 2015-10-09 19:27:29 +02:00
pip-show-django pip resource: support non-default pip locations, such as virtualenvs (#2097) 2017-08-30 22:04:22 +02:00
pip-show-jinja2 add pip resource to verify gem packages 2015-09-22 02:15:41 +02:00
pip-show-non-standard-django pip resource: support non-default pip locations, such as virtualenvs (#2097) 2017-08-30 22:04:22 +02:00
pkg-info-firewalld firewalld resource: inspect the status and configuration of firewalld (#2074) 2017-09-27 14:05:35 +02:00
pkg-info-system-file-system-zfs add unit tests 2016-01-28 18:30:38 +01:00
pkginfo-l-SUNWzfsr add unit tests 2016-01-28 18:30:38 +01:00
ps-axo use command instead of comm and set user column width on linux 2016-10-17 15:39:13 +01:00
ps-axoZ Modify linux regular expression to handle process names with spaces (#2117) 2017-09-05 14:36:55 +02:00
ps-busybox processes resource: support busybox ps (#2222) 2017-10-06 19:32:39 +02:00
psql-version New postgres_ident_conf resource (#1963) 2017-07-03 20:01:40 +02:00
pw-usershow-root-7 add tests for user resource 2015-10-05 11:50:49 +02:00
reg_schedule Support array syntax for registry_key resource (#2160) 2017-09-19 18:26:53 +02:00
Resolve-DnsName add mock files for host windows tests 2015-10-09 19:27:07 +02:00
rmsock-f0001 Uses netstat to detect open ports on AIX (#2210) 2017-10-10 10:54:18 +02:00
rmsock-f0002 Uses netstat to detect open ports on AIX (#2210) 2017-10-10 10:54:18 +02:00
rpm-qa-queryformat Switch package resource to os.redhat detection and use two spaces as fileds delimited 2017-02-15 11:07:10 +00:00
rpm-qia-curl add mock resources for package resource 2015-09-22 02:15:41 +02:00
s11-netstat-an-finet-finet6 add unit tests 2016-01-28 18:30:38 +01:00
sbin_sysctl add tests 2015-09-22 02:27:04 +02:00
schtasks-error Added unit tests, only took most of the night :) 2016-11-20 20:07:59 +00:00
schtasks-success Added unit tests, only took most of the night :) 2016-11-20 20:07:59 +00:00
secedit-export implement security policy resource tests 2015-09-21 13:51:43 +02:00
service-e add unit tests for freebsd service resource 2015-09-25 12:53:40 +02:00
service-sendmail-onestatus add unit tests for freebsd service resource 2015-09-25 12:53:40 +02:00
service-sshd-status rewrite systemv service implementation, read enabled services from rc 2015-09-25 12:58:03 +02:00
sockstat add sockstat mock result 2015-09-23 23:15:37 +02:00
ss-tulpen Fix port ressource ss line parsing (#2243) 2017-10-17 14:45:37 +02:00
success implement security policy resource tests 2015-09-21 13:51:43 +02:00
swlist-l-product added hpux user and package resource support 2016-04-21 14:01:56 +05:30
systemctl-show-all-dbus Add 'static' value as enabled to systemd service enabled check 2016-04-13 14:44:28 -05:00
systemctl-show-all-sshd check service running by ActiveState 2016-07-06 12:57:04 +02:00
Test-NetConnection Add TCP reachability support on Linux for host resource (#1915) 2017-06-09 18:18:51 +02:00
type-nc Add TCP reachability support on Linux for host resource (#1915) 2017-06-09 18:18:51 +02:00
yum-repolist-all implement yum resource 2015-09-22 01:10:56 +02:00
zfs-get-all-tank-tmp Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
zpool-get-all-tank Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00