inspec/test/unit/resources
Dominik Richter 19ab22f5e2 add nginx_conf accessors for http, servers, and locations (#2119)
* wip: extend nginx_conf for http+servers+locations

... well `http` entries really, but we couldnt just call it `https`.

the goal is to `nginx_conf.http` / `nginx_conf.servers` / `nginx_conf.locations` and then also have these calls cascaded down to simplify the access to these fields. the current pattern is rather tedious since we need to check for nil everywhere.

* add test for new nginx accessors

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>

* add docs for nginx-conf

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>

* fix all incorrect NGINX spellings in docs

* prevent edge-cases where nginx params are nil

for location, http, and servers

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>

* more descriptive to_s for nginx servers

as suggested by @adamleff, thank you!

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>

* add more descriptive to_s for nginx location

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2017-09-06 08:19:04 -04:00
..
aide_conf_test.rb aide_conf resource: test configuration of the AIDE file integrity tool (#2063) 2017-08-25 22:13:43 +02:00
apache_conf_test.rb Added unit tests for apache_conf inclusion of symlinked files. 2017-02-24 16:13:22 +11:00
apt_test.rb Some further tests for Mint 2016-10-08 23:34:56 +02:00
audit_policy_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
auditd_conf_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
auditd_rules_test.rb auditd_rules resource: fix get_keys error on lines that have no keys (#2103) 2017-08-29 07:11:14 +02:00
bash_test.rb remodel bash and shell wrappers 2016-04-18 11:48:42 -04:00
bond_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
bridge_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
command_test.rb reject nil as a command input (#1863) 2017-06-19 11:07:36 -04:00
crontab_test.rb Support special cases for crontab resource 2017-06-06 15:12:12 +02:00
csv_test.rb Fix ObjectTraverser when accessing array values 2017-03-15 11:35:55 +01:00
dh_params_test.rb Fix #1617 Add dh_params resource (#1618) 2017-04-04 10:34:09 -04:00
docker_container_test.rb [docker_container] fix repo property (#2083) 2017-08-17 16:48:46 +02:00
docker_image_test.rb Docker resource (#1566) 2017-04-24 10:47:03 -04:00
docker_test.rb Fix docker_container.tag to properly fetch from image name (#2052) 2017-08-10 14:57:45 +02:00
etc_group_test.rb Support mixed-case group entries (#2101) 2017-08-30 22:02:45 +02:00
etc_hosts_test.rb etc_hosts resource: test the contents of the /etc/hosts file (#2065) 2017-08-31 09:51:39 -04:00
file_test.rb refactored file resource unit tests 2016-10-26 15:57:30 +02:00
gem_test.rb Fix installed? check for gem resource 2017-05-22 15:34:01 -05:00
group_test.rb Support mixed-case group entries (#2101) 2017-08-30 22:02:45 +02:00
grub_conf_test.rb added default and per kernel checking 2016-04-17 10:46:35 -04:00
host_test.rb Change host resource to use getent ahosts on Linux (#2002) 2017-07-11 21:32:52 +02:00
http_test.rb Bump default timeouts for http resource 2017-05-29 15:07:49 -04:00
inetd_conf_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
ini_test.rb implement unit tests for ini resource 2015-11-24 16:46:17 +01:00
interface_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
iptables_test.rb iptables unit test: add comment examples 2016-02-10 09:57:32 +01:00
json_test.rb Fix variable name. Add test. 2016-12-15 08:00:56 -05:00
kernel_module_test.rb kernel_module resource: added blacklisting, enabled, disabled, docs and unit tests (#1798) 2017-07-05 11:41:44 +02:00
kernel_parameter_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
key_rsa_test.rb refactor x509 resources and rsa key 2017-03-22 11:44:32 +01:00
limits_conf_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
login_def_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
mount_test.rb rename internal File -> FileResource 2016-03-09 10:48:48 +01:00
mssql_session_test.rb oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
mysql_conf_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
nginx_conf_test.rb add nginx_conf accessors for http, servers, and locations (#2119) 2017-09-06 08:19:04 -04:00
npm_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
ntp_conf_test.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
oneget_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
oracledb_session_test.rb oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
os_env_test.rb Add Windows support to the os_env resource 2015-11-19 15:41:00 +01:00
os_test.rb Some further tests for Mint 2016-10-08 23:34:56 +02:00
package_test.rb Properly handle held packages on dpkg-flavored OS (#2087) 2017-08-18 17:29:23 +02:00
packages_test.rb Add RedHat support for packages resource 2017-02-15 11:07:10 +00:00
parse_config_test.rb rename SimpleConfig / parse_config / parse_config_file options 2017-04-26 23:18:40 +02:00
passwd_test.rb use filtertable with passwd resource 2016-05-04 15:27:58 +02:00
pip_test.rb pip resource: support non-default pip locations, such as virtualenvs (#2097) 2017-08-30 22:04:22 +02:00
port_test.rb port resource: support ss instead of netstat (#2110) 2017-08-31 09:53:08 +02:00
postgres_conf_test.rb Fixes the postgres_conf parsing of complex paramerters (#1938) 2017-06-23 08:31:27 -07:00
postgres_hba_conf_test.rb New postgres_hba_conf resource (#1964) 2017-07-03 20:13:51 +02:00
postgres_ident_conf_test.rb New postgres_ident_conf resource (#1963) 2017-07-03 20:01:40 +02:00
postgres_session_test.rb updated postgres_session resource properly escape queries (#1939) 2017-07-03 08:10:27 +02:00
powershell_test.rb bugfix: do not send nil to command on unsupported OS 2017-05-30 12:36:32 -04:00
processes_test.rb Modify linux regular expression to handle process names with spaces (#2117) 2017-09-05 14:36:55 +02:00
rabbitmq_conf_test.rb add rabbitmq config resource 2017-04-12 20:51:12 +02:00
registry_key_test.rb Add helper methods, tests for registry key path building 2017-04-07 10:09:51 -04:00
security_policy_test.rb use simple config for security policy resource 2016-09-12 12:20:57 +02:00
service_test.rb Add support for CoreOS to the service resource (#1928) 2017-06-15 13:19:58 -04:00
shadow_test.rb add shadow resource for /etc/shadow 2016-02-19 14:26:04 +01:00
ssh_conf_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
sys_info_test.rb add unit tests 2016-09-09 12:43:03 +02:00
toml_test.rb Adding toml resource (#1924) 2017-06-15 16:54:12 -04:00
user_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
vbscript_test.rb fix powershell based unit tests 2016-09-05 13:36:48 +02:00
windows_feature.rb rename vulcanosec -> inspec 2015-10-26 12:34:15 +01:00
windows_task_test.rb Added unit tests, only took most of the night :) 2016-11-20 20:07:59 +00:00
wmi_test.rb Update minitest nil assertions (#1916) 2017-06-11 12:16:10 +02:00
x509_certificate_test.rb refactor x509 resources and rsa key 2017-03-22 11:44:32 +01:00
xinetd_test.rb derive xinetd protocol from socket_type when not defined in the config file 2017-02-01 11:19:24 +00:00
xml_test.rb Add support for XML files (#2107) 2017-08-31 09:56:14 +02:00
yaml_test.rb extend yaml tests, remove dot-resolver 2015-10-27 15:58:02 +01:00
yum_test.rb Remove method_missing, provide methods for repo metadata 2017-03-29 10:42:25 +02:00
zfs_dataset_test.rb Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
zfs_pool_test.rb Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00