inspec/test
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
..
cookbooks/os_prepare Add support for XML files (#2107) 2017-08-31 09:56:14 +02:00
functional Add sensitive flag to resources to restrict logging output (#2017) 2017-08-25 16:21:49 -04:00
integration/default File Resource: add be_setgid, be_setuid, be_sticky matchers (#2104) 2017-09-03 20:43:13 +02:00
unit add nginx_conf accessors for http, servers, and locations (#2119) 2017-09-06 08:19:04 -04:00
docker_run.rb travis experiment: lower docker concurrency 2016-08-10 12:52:21 +01:00
docker_test.rb Load all dependent libraries, even if include_context isn't called 2016-09-04 20:55:20 +02:00
helper.rb etc_hosts resource: test the contents of the /etc/hosts file (#2065) 2017-08-31 09:51:39 -04:00