inspec/test/unit
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
..
bundles Extract Compliance::API version parsing to separate method (#1931) 2017-06-23 08:29:50 -07:00
dependencies Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
dsl New 'be_in' matcher for matching against values in a list (#2022) 2017-08-07 16:05:22 +02:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
mock Modify linux regular expression to handle process names with spaces (#2117) 2017-09-05 14:36:55 +02:00
plugins Remove some warnings during the test run 2016-09-09 14:14:36 +01:00
profiles Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
resources add nginx_conf accessors for http, servers, and locations (#2119) 2017-09-06 08:19:04 -04:00
source_readers Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
utils add the Nginx parser 2017-06-03 17:25:00 +02:00
file_provider_test.rb bugfix: empty file strings from archive readers (#2027) 2017-07-24 09:37:13 -07:00
runner_test.rb Handle parse errors for attrs/secrets 2017-05-09 13:44:33 +02:00
shell_detector_test.rb Add inspec env command to configure shell tab-completion 2016-08-10 02:07:53 +01:00