Commit graph

8488 commits

Author SHA1 Message Date
Felipe Zipitria
d2ae7a7fbf
fix(osfamily): use corresponding family or name for bsd/freebsd
Signed-off-by: Felipe Zipitria <fzipitria@perceptyx.com>
2020-07-22 08:43:25 -03:00
IanMadd
d4090a30e3 Add content from PR 5036
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-07-21 13:56:48 -07:00
IanMadd
c78aa25baf Update content from PR 5045
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-07-21 13:42:06 -07:00
Chef Expeditor
138935f9bb Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-21 14:43:17 +00:00
Chef Expeditor
06a508e3b4 Bump version to 4.22.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-20 14:49:34 +00:00
James Stocks
36007c943d
Merge pull request #5148 from james-stocks/js/habitat_path
Habitat should not expand $PATH at buildtime
2020-07-20 15:47:29 +01:00
Brandon Wood
7faf188f22 changed inspec.yml example to use platform-family instead of os-family, since that's the recommended property name
Signed-off-by: Brandon Wood <bcwood@gmail.com>
2020-07-17 17:13:03 -08:00
Nick Schwaderer
f5f1180979
Merge pull request #5152 from inspec/ns/expeditor_re_up
Revert uncomment
2020-07-17 19:26:16 +01:00
Nick Schwaderer
0ae1452012 Revert uncomment
Signed-off-by: Nicholas Schwaderer <nschwaderer@chef.io>
2020-07-17 19:24:48 +01:00
Chef Expeditor
7bdbb37859 Update CHANGELOG.md with details from pull request #5150
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-17 17:36:00 +00:00
Nick Schwaderer
66665fac1d
Merge pull request #5150 from inspec/ns/expeditor_re_up
Temporary comment out to get expeditor build to complete
2020-07-17 18:33:11 +01:00
Nick Schwaderer
4a51ec5dfb Temporary comment out to get expeditor build to complete
Signed-off-by: Nicholas Schwaderer <nschwaderer@chef.io>
2020-07-17 18:31:21 +01:00
Chef Expeditor
f6cceec20e Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-17 15:38:30 +00:00
James Stocks
04cfc73805 Remove world readable attribute from /usr/local/bundle
Artifact tests may fail due to warnings about `Insecure world writable dir /usr/local/bundle in PATH` appearing in stderr

Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-17 16:00:26 +01:00
James Stocks
230ca2ba03 Fix PATH for Habitat execution
plan.sh was expanding $PATH at build time when writing out the inspec bin script. This is incorrect, the variable should be expanded at runtime.

Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-17 14:13:20 +01:00
Thomas Heinen
3e824b5203 Add new windows_firewall and windows_firewall_rule resources
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
2020-07-17 13:40:31 +02:00
Nick Schwaderer
08bc5edfaf
Merge pull request #5144 from inspec/ns/fix_ruby_2_4
Pin json_schemer to maintain Ruby 2.4 support
2020-07-16 15:08:42 +01:00
Nick Schwaderer
5dd999229b Pin json_schemer to maintain Ruby 2.4 support
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-07-16 13:44:32 +01:00
James Stocks
9684e64dd7
Merge pull request #5139 from inspec/im/hugo_the_docs
Hugo the docs
2020-07-16 11:19:55 +01:00
Chef Expeditor
da8ca846f2 Bump version to 4.22.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-15 12:28:39 +00:00
Nick Schwaderer
2744ff43e5
Merge pull request #5128 from james-stocks/js/report_bad_profiles
Report faulty profiles instead of crashing
2020-07-15 13:28:17 +01:00
Chef Expeditor
861331b487 Bump version to 4.21.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-14 10:49:44 +00:00
Nick Schwaderer
934aa8d49a
Merge pull request #5138 from jrbeilke/bug-apt-cdrom
skip apt-cdrom repos in apt resource when parsing lists
2020-07-14 11:49:21 +01:00
IanMadd
2c50f907f3 Update documentation release process instructions
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-07-09 10:06:12 -07:00
Chef Expeditor
c5ee0ea597 Bump version to 4.21.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-09 13:37:06 +00:00
James Stocks
a461d42a85
Merge pull request #5135 from inspec/ns/input_equal_sign_5131
Allow ‘=‘ character in CLI inputs
2020-07-09 14:36:43 +01:00
James Stocks
9fc3b5e356 Make profile.rb own profile state
Add a @state ivar to the Profile class to represent state.
Add additional comments to the Metadata class to clarify that it represents metadata but not runtime state.

Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-09 14:33:51 +01:00
James Stocks
cd077a1247 Improve profile status rendering in html2 reporter
Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-09 14:02:42 +01:00
James Stocks
833aac3ef1 Add profile load failure message to CLI reporter
Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-09 14:02:42 +01:00
Nick Schwaderer
6d340b323c Allow ‘=‘ character in CLI inputs
Fixes #5131

Due to the use of `#split(‘=‘)` against inputs supplied via the CLI we had an edge case where inputs with `’=‘` in the value would cause a breakage.

This PR supplies a test for the regression and fixes the bug with a regex solution.

Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-07-09 12:50:21 +01:00
IanMadd
3ef1bd9b2e Reformat resource pages
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-07-08 14:26:41 -07:00
IanMadd
ab17f16b0a Add regular page content and images
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-07-08 14:26:40 -07:00
IanMadd
c93a515c6f Configure Hugo for InSpec docs
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-07-08 14:26:33 -07:00
Jon Beilke
bedef776a6 skip apt-cdrom repos in apt resource when parsing lists
Signed-off-by: Jon Beilke <Jonathan.Beilke@windlogics.com>
2020-07-08 14:19:09 -05:00
IanMadd
67cead6631 Delete old site
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-07-07 17:46:00 -07:00
James Stocks
4c99130bb2
Merge pull request #5040 from sean-horn/patch-1
Config node_uuid with direct Inspec invocations
2020-07-06 16:37:00 +01:00
James Stocks
08398cc3c1 Address linting mistakes.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-03 15:53:09 +01:00
James Stocks
fd4c501c70 Change profile skip_message to status_message
Keep a duplicate of the message in skip_message for the JSON reporters, for backwards compaibility.

Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-03 15:53:09 +01:00
Chef Expeditor
fd557daabc Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-02 15:26:07 +00:00
Chef Expeditor
db55f7431c Bump version to 4.21.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-02 14:29:47 +00:00
Bryan McLellan
3c445ad263
Merge pull request #5130 from inspec/btm/macos11_service
Add the generic 'darwin' to the service resource
2020-07-02 10:29:27 -04:00
Bryan McLellan
dada8ea074 Add the generic 'darwin' to the service resource
macOS 11 Big Sur will be released later this year. Current beta versions
return 10.16 as the version, but the product name has changed from 'Mac
OS X' to 'macOS'. Train probably needs to be modified to deprecate
'mac_os_x' as a platform in favor of 'macos' but that would be a
significant downstream change. Train does fall back to 'darwin' on macOS
10.16, so by adding darwin to the list of platform names for the service
resource we are able to work around this for the moment.

This is the only location where mac_os_x is currently being used in
InSpec. Because we're in a case statement on platform rather than the
more generic platform family, we can't simply remove mac_os_x in favor
of darwin.

Signed-off-by: Bryan McLellan <btm@loftninjas.org>
2020-07-02 09:36:27 -04:00
James Stocks
41087c5ec6 Set profiles that fail to load as failed
Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-02 13:33:07 +01:00
Chef Expeditor
7484bfe783 Bump version to 4.21.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-02 11:36:22 +00:00
Nick Schwaderer
4470d64052
Merge pull request #5063 from inspec/ns/windows
WIP: Make progress on `skip_windows!`
2020-07-02 12:36:02 +01:00
Nick Schwaderer
480567564b Review skip_windows violations and expiration
We have 72 `skip_windows` that need addressing. This PR removes
confirmed instances where the tests now work on windows. It also marks
tests with a comment where they are confirmed to still break. Unmarked
instances still need review.

It also updates the `skip_windows` expiration date.

72 `skip_windows` needing resolution OR alternative documentation upon investigation

Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-07-02 11:53:38 +01:00
Chef Expeditor
23e9b6565f Bump version to 4.21.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-30 14:00:06 +00:00
James Stocks
b8ca5240e8
Merge pull request #5126 from james-stocks/js/issue_5125
Log to stderr when using html2 reporter
2020-06-30 14:59:46 +01:00
James Stocks
d0f00cd716 Log to stderr when using html2 reporter
Fixes #5125

Signed-off-by: James Stocks <jstocks@chef.io>
2020-06-30 13:56:33 +01:00
Chef Expeditor
031d68c35f Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-29 08:23:12 +00:00