Commit graph

8455 commits

Author SHA1 Message Date
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
afc6e59e95 Update run_data fixture to include correct statistics structure
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-03 20:30:29 -04:00
James Stocks
9fb151e8d8 Pin ffi in omnibus/Gemfile
Signed-off-by: James Stocks <jstocks@chef.io>
2020-06-03 11:11:29 +01:00
Clinton Wolfe
99ec27b337 Fix json-min reporter unit test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-02 21:35:16 -04:00
Clinton Wolfe
26e5ae3410 Update run_data fixture to include correct statistics structure
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-02 21:34:42 -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
James Stocks
6f4c85aca9
Merge pull request #5060 from james-stocks/js/pin_ffi
Pin ffi to 1.12.2 due to Windows crash
2020-06-02 17:56:02 +01:00
James Stocks
04f36aa055 Pin ffi to 1.12.2 due to Windows crash
See https://github.com/ffi/ffi/issues/784

Signed-off-by: James Stocks <jstocks@chef.io>
2020-06-02 16:25:34 +01:00
Chef Expeditor
b67cb4fcc7 Update CHANGELOG.md with details from pull request #5057
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-01 15:54:32 +00:00
Nick Schwaderer
352cafec7b
Merge pull request #5057 from inspec/js/aarch64
Revert aarch64 build targets
2020-06-01 16:54:22 +01:00
James Stocks
697ee1b720 Revert aarch64 build targets
These currently do not build - they need unf_ext 0.0.7.7 and InSpec needs 0.0.7.2

Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-29 13:36:24 +01:00
Chef Expeditor
31bc27f404 Update CHANGELOG.md with details from pull request #4981
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-29 09:42:17 +00:00
James Stocks
96488e6ab2
Merge pull request #4981 from inspec/csnapp/add_more_testers
Add several Builders and Testers to Omnibus
2020-05-29 10:42:03 +01:00
Chef Expeditor
2591e41ee4 Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-29 08:18:05 +00:00
James Stocks
51aeb9e2a6 Fix unmatched backticks in docs
Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-28 11:21:32 +01: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
James Stocks
e4b06d88ab
Merge pull request #5049 from inspec/ns/innocuous_change_for_expeditor
Innocuous change to allow expeditor bump
2020-05-27 13:06:22 +01:00
Chef Expeditor
5441efcd5b Update CHANGELOG.md with details from pull request #5044
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-27 10:09:16 +00:00
James Stocks
c392f3bc1a
Merge pull request #5044 from james-stocks/js/fix_labels
Fix expeditor minor bump config, bump to 4.19
2020-05-27 11:09:01 +01:00
Nick Schwaderer
e8aa42d8b4 Innocuous change to allow expeditor bump
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-05-26 16:20:17 +01:00
Clinton Wolfe
88da919558 Fix exit code check for windows
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 23:27:00 -04: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
43a5fd7945 Test kitchen setup to verify Telemetry RunContext detection under TestKitchen
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00
Clinton Wolfe
09cfcedcd4 Refactor os_prepare cookbook to split out inspec installation
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
James Stocks
4d8fa16d24 Fix expeditor minor bump config
The label configured to trigger a minor version bump does not match the actual label we have configured for the repo.

Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-22 16:29:00 +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
6dfb37befa typo
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-21 18:57:30 -04:00
James Stocks
bf9489b3d7
Merge pull request #5041 from james-stocks/js/www_notes
Add website push to release process guide
2020-05-21 20:35:16 +01:00
James Stocks
a0212011c3 Add website push to release process guide
Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-21 09:52:10 +01:00
Sean Horn
b597c85ed7
Config node_uuid with direct Inspec invocations
When using Inspec directly against an Automate system, `node_uuid` must be specified in the automate reporter specific config.

Signed-off-by: Sean Horn <sean_horn@chef.io>
2020-05-20 17:04:25 -04: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