Commit graph

4098 commits

Author SHA1 Message Date
Clinton Wolfe
bb2dfaa02d First pass at docs
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:13 -04:00
Clinton Wolfe
c4487f1892 Initial commit of inspec-reporter-html2
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:13 -04:00
Chef Expeditor
5aa0d92794 Bump version to 4.20.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-18 16:29:22 +00:00
Chef Expeditor
b5b0d0351a Bump version to 4.20.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-18 13:33:27 +00:00
Nick Schwaderer
7068694885 Revert "Make CLI reporter into a plugin"
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-06-18 12:30:15 +01:00
Chef Expeditor
c523a4f50c Bump version to 4.20.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-18 11:29:19 +00:00
Chef Expeditor
af7964984b Bump version to 4.20.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-17 17:17:29 +00:00
Nick Schwaderer
dca57b61c0
Merge pull request #4907 from inspec/cw/telemetry-run-context
Telemetry - determine run context from stack introspection
2020-06-17 18:17:09 +01:00
Chef Expeditor
c271f439fa Bump version to 4.20.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-17 16:02:27 +00:00
Nick Schwaderer
82c6472444
Merge pull request #5069 from inspec/cw/reporter-plugin-cli
Make CLI reporter into a plugin
2020-06-17 17:02:07 +01:00
Chef Expeditor
dfff9d36a8 Bump version to 4.20.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-17 08:51:51 +00:00
Chef Expeditor
7f10acc1ef Bump version to 4.20.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-15 11:25:44 +00:00
Chef Expeditor
acda76723f Bump version to 4.20.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-11 11:30:34 +00:00
James Stocks
070823122d
Merge pull request #5062 from inspec/cw/reporter-plugin-jsonmin
Make the JSON-min Reporter into Plugin
2020-06-11 12:30:18 +01:00
Chef Expeditor
705d0ffbb6 Bump version to 4.20.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-09 14:02:32 +00:00
Chef Expeditor
62c5cba7ec Bump version to 4.20.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-05 23:14:18 +00:00
Chef Expeditor
52392600d1 Bump version to 4.20.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-05 13:11:07 +00:00
James Stocks
d5f825e716
Merge pull request #5026 from inspec/cw/silence-deprecations
CLI Option to silence deprecations
2020-06-05 14:10:50 +01:00
Chef Expeditor
c44eb725fe Bump version to 4.19.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-05 11:28:43 +00:00
Chef Expeditor
b114792fe5 Bump version to 4.19.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-05 11:24:06 +00:00
Nick Schwaderer
fb1aeb0655
Merge pull request #5011 from inspec/cw/complex-cli-inputs
Boolean, Numeric, and Structured CLI inputs
2020-06-05 04:23:48 -07:00
Clinton Wolfe
afdcc9d2a1 Add cli to list of valid types explicitly to fix unit tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-04 15:03:16 -04:00
Chef Expeditor
144abfb5de Bump version to 4.19.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-04 10:00:27 +00:00
Clinton Wolfe
458a5c4410 Replace Hash RunData access with method calls
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-03 21:51:21 -04:00
Clinton Wolfe
76033c03ff Convert CLI reporter to plugin, RunData is still Hash-based
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-03 21:13:27 -04:00
Clinton Wolfe
935bb81e6f Use RunData object instead of Hash
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-02 15:29:52 -04:00
Clinton Wolfe
402366c219 Convert json-min to be a plugin reporter, rundata is still a Hash
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-02 15:29:52 -04:00
Clinton Wolfe
49f3e94133 Modify Hashlike behavior when values are nil
Exclude nil-valued keys when RunData acts like a Hash
Add non_nil? for clarity when people are calling key? and meaning not-nil

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-02 15:29:01 -04:00
Chef Expeditor
10e28c6895 Bump version to 4.19.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-02 16:56:17 +00:00
Chef Expeditor
d6453b82a5 Bump version to 4.19.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-27 12:06:41 +00:00
Clinton Wolfe
d5be4c2927 Test kitchen setup to test detection of audit-cookbook
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00
Clinton Wolfe
439c93b115 Add a functional test to check Thor run context detection
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00
Clinton Wolfe
45e3421595 Remove too-brittle frame ranges on stack locations
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00
Clinton Wolfe
4122157542 rename to match class name
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00
Clinton Wolfe
cd9ca19901 stack probe for audit cookbook
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00
Clinton Wolfe
5be4ee913f stack probe for test-kitchen
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00
Clinton Wolfe
e96ddbf2cb Add stack probe for detecting when run as CLI by Thor
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00
Clinton Wolfe
dcc70bc541 Trim log message, make boolean check case insensitive
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-23 00:25:08 -04:00
Chef Expeditor
e90c6e35c4 Bump version to 4.18.118 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-22 15:54:55 +00:00
James Stocks
32fa14f1b0
Merge pull request #5039 from james-stocks/js/issue_5037
Allow for waiver time as well as date
2020-05-22 16:52:23 +01:00
Chef Expeditor
94c30647ed Bump version to 4.18.117 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-22 15:10:46 +00:00
James Stocks
23ed9bcf06
Merge pull request #5007 from inspec/cw/reporters-as-plugins
Reporters as Plugins
2020-05-22 16:10:29 +01:00
Chef Expeditor
0794051417 Bump version to 4.18.116 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-22 10:29:55 +00:00
James Stocks
7085adf5e5
Merge pull request #5017 from inspec/ns/inspec_json_in_archive
Stores output of `inspec json` to archive and artifact
2020-05-22 11:29:35 +01:00
Clinton Wolfe
3184d5ca9e Add an object model for run_data
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-20 13:27:20 -04:00
James Stocks
350c0bfe8f Handle waiver expiration dates being YAML strings
This is technically incorrect YAML, but if you transcode YAML between several tools you may end up with a date/time value being an explicit string.
It would be helpful if InSpec supported any string value that easily translates to a Time.

Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-20 15:00:43 +01:00
James Stocks
35e36ad40a Allow for waiver time as well as date
Fixes #5037

The YAML parser may parse a waiver timestamp as a Time rather than a Date. Even when the user doesn't care about time, they may be using a tool that outputs YAML with trailing zeroes for hour, minutes, seconds etc.

Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-20 14:59:07 +01:00
Nick Schwaderer
989d86c2ce Stores output of inspec json to archive and artifact
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-05-20 12:34:17 +01:00
Chef Expeditor
e924364565 Bump version to 4.18.115 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-20 11:33:26 +00:00
Nick Schwaderer
e882bc727e Update for incoming ruby openSSL deprecations
Fixes #5031

See above issue for full context, this updates to the latest rubocop requirements for incoming ruby OpenSSL deprecations

Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-05-19 15:37:24 +01:00