Commit graph

5506 commits

Author SHA1 Message Date
Chef Expeditor
10e5292e27
Bump version to 3.0.18 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-01 20:23:49 +00:00
Jared Quick
f990b78b48
Pin to train 1.5.6 (#3568)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-11-01 16:23:37 -04:00
Nell Shamrell-Harrington
9faf638ff7 documents inspec habitat profile setup command (#3559)
* documents inspec habitat profile setup command
* fixes link and typo

Signed-off-by: Nell Shamrell <nellshamrell@gmail.com>
2018-11-01 13:47:23 -04:00
Jerry Aldrich
4a6f5f719a Fix rendering and other issues in the Style Guide (#3539)
* Fix rendering and other issues in the Style Guide
* Use backticks for technical literals
* Correct RubyGems spelling
* Clarify plugin installation instructions
* Clean up Avoid/Use style

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-11-01 13:07:02 -04:00
Chef Expeditor
bbda0f9371
Bump version to 3.0.17 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-01 17:05:16 +00:00
Jared Quick
d9767884ff
Allow help args after Thor commands (#3553)
* Allow help args after thor commands.
* Add more testing and clarification.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-11-01 13:04:59 -04:00
Chef Expeditor
d622f46967
Bump version to 3.0.16 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-30 10:32:28 +00:00
Jared Quick
0f42b31016
Allow end of options during Thor array parsing (#3547)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-30 06:32:16 -04:00
Chef Expeditor
b7b9581202
Bump version to 3.0.15 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-29 20:01:55 +00:00
Tim Smith
559d6d3178 Modernize omnibus config and reduce omnibus package size (#3543)
* Modernize the kitchen config

This is basically the same one we use in chef/chef

* Modernize the omnibus deps
* Remove cookbook constraints
* Avoid security warnings when bundle installing
* Use the ruby-cleanup project to slim the omnibus package

We're using this in chef and DK to greatly reduce our artifact size. It's just a set of cleanup steps that are the same for all ruby omnibus projects.

Signed-off-by: Tim Smith <tsmith@chef.io>
2018-10-29 16:01:45 -04:00
Chef Expeditor
41b19003de
Bump version to 3.0.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-25 18:44:42 +00:00
Christoph Hartmann
27b80e0998 ✓ adds additional checks for vendored profiles (#3362)
* ✓ adds additional checks for vendored profiles

This PR adds additional checks to verify if:
- inspec.yml and inspec.lock dependencies are out-of-sync
- complains about a missing lock file if we have dependencies defined

* skip if legacy profile path is used
* Fix unit tests.
* Force static sha256 for lock files and protect from unnamed depends.
* Add vendor profiles for checks. Windows downloads with different sha256.
2018-10-25 14:44:29 -04:00
Chef Expeditor
c672d7a8d1
Bump version to 3.0.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-25 18:16:44 +00:00
Stuart Paterson
f64da78edb Adding inspec init profile for GCP. (#3484)
* Adding inspec init profile for GCP.
* Adding final newline, thanks rubocop.
* Ensure README headings are at the same level.
* Move OS-specific default profile to new location
* Enforce os-platform restriction on default profile template
* Use profile templates in subdirs.
* Updates to address PR feedback after rebasing from #3491.
* Alter test setup to properly use YAML

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-10-25 14:16:31 -04:00
Jerry Aldrich
329da7f679 Add cmp vs eq to the style guide (#3536)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-10-25 13:21:02 -04:00
Chef Expeditor
03627eac36
Executed .expeditor/update_dockerfile.sh
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-24 19:48:01 +00:00
Chef Expeditor
0360ae2c2b
Bump version to 3.0.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-24 19:08:31 +00:00
Jared Quick
d40dc7c41f
Update to safe navigation exit code skip search. (#3541)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-24 15:08:07 -04:00
Jerry Aldrich
955d444b95 Correct/Enhance cmp matcher examples (#3537)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-10-23 16:02:40 -04:00
Chef Expeditor
6a39158aa7
Bump version to 3.0.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-23 13:16:48 +00:00
Jared Quick
18f03d5569
Remove inspec/train vault from plugin list. (#3532)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-23 09:16:39 -04:00
Andrey Klyachkin
f835c24e89 ksh support (#3533)
Add ksh (Korn Shell) resource
2018-10-23 09:16:24 -04:00
Chef Expeditor
c5996d8cf2
Bump version to 3.0.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-19 13:01:13 +00:00
James Stocks
7c58285eb6 New resource to work with Windows security identifiers (SIDs) (#3405)
* Resource for a Windows Security Identifier (SID)
* Integration tests for security_identifier resource
* Address rubocop violations
* Improve security_identifier from PR feedback
* Update security_identifier tests
* Improve security_identifier unit tests
* Fix unit tests fpr security_identifier resource
* More security_identifier unit tests
* Add docs page for security_identifier resource
* Fix issues with documentation
* Improve docs
Link to Microsoft reference page, and use their term 'trustee' instead of 'entity' where applicable.

* Change exists to exist
* Test appveyor file changes.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-19 09:01:00 -04:00
Chef Expeditor
0af43be30d
Executed .expeditor/update_dockerfile.sh
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-18 23:30:40 +00:00
Chef Expeditor
133fecb412
Bump version to 3.0.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-18 20:48:44 +00:00
Miah Johnson
7a6119e7a6 Add missing tests for groups resource, document members property, and assorted fixes. (#3467)
* Add missing tests for groups resource, document members propery, and assorted fixes.

Update existing documentation for group resource.
Add documentation for groups resource.
Update group resource tests to test members property.
Change groups resource members property to have simple style. (this
ensures members is a single array)
remove deprecated have_gid propery.
change `if !` to `unless`
Remove early return from members method. This prevented members from
working correctly on any OS other than Windows.
Add missing tests for the groups resource.
remove tests for has_gid

Signed-off-by: Miah Johnson <miah@chia-pet.org>

* Fix comments

Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-18 16:48:30 -04:00
Chef Expeditor
aaddd9ba1e
Bump version to 3.0.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-18 20:38:03 +00:00
Jared Quick
8432cd73c4
Pin inspec to the new train. (#3531)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-18 16:37:56 -04:00
Chef Expeditor
9df5a17213
Bump version to 3.0.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-18 20:07:40 +00:00
Clinton Wolfe
be2101af9f Simple fix to the plugin development support suite (#3526)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-10-18 16:05:06 -04:00
Chef Expeditor
bbf048d89e
Bump version to 3.0.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-18 20:02:33 +00:00
Jared Quick
970d2ec32b
Add debug and sort options for plugins (#3530)
* Add log options to plugin cli base.
* Sort search results to always show the latest.
* Add testing for debug logs
* Fix lint.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-18 16:01:02 -04:00
Chef Expeditor
dd8917d18a
Bump version to 3.0.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-18 19:56:23 +00:00
Matt Ray
ea8d05881b Minor cleanups of plugin documentation. 'Plugin' instead of 'PluginDefinition' (#3527)
Signed-off-by: Matt Ray <matthewhray@gmail.com>
2018-10-18 15:56:04 -04:00
Chef Expeditor
d0506d34fa
Bump version to 3.0.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-18 03:44:58 +00:00
Jerry Aldrich
f1bd34def3 docs: Fix small issues with the file resource (#3515)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-10-17 23:44:45 -04:00
Jerry Aldrich
911ef87dc1 docs: Add link to the file resource from directory (#3517) 2018-10-17 23:44:20 -04:00
Chef Expeditor
ff611a5c45
Bump version to 3.0.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-17 19:49:50 +00:00
Miah Johnson
cc68490361 Filter out inspec-k8s and inspec-release (#3525)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-10-17 15:49:41 -04:00
Chef Expeditor
bd64a8e7c7
Bump version to 3.0.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-17 13:30:11 +00:00
Clinton Wolfe
ff2be7be56 FilterTable: allow Strings or Symbols as fields (#3481)
* Allow strings or symbols to be used interchangeably in filtertable criteria; improve error message
* rubocop
* Update test count

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-10-17 09:29:58 -04:00
Chef Expeditor
86c25c9624
Bump version to 3.0.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-17 13:14:31 +00:00
Jerry Aldrich
7313eb7819 style: Fix quotes/style on the docker resource (#3516)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-10-17 09:14:19 -04:00
Chef Expeditor
c5142fe5f7
Executed .expeditor/update_dockerfile.sh
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-15 23:48:42 +00:00
Jared Quick
cb123551ef
Bump master branch to 3.0 (#3514)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-15 19:47:40 -04:00
Chef Expeditor
9300dae797
Bump version to 3.0.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-15 22:25:38 +00:00
Jared Quick
2bbcdbde9b
Inspec 3.0 (#3512)
* Remove deprecated yumrepo. (#3435)

* Remove deprecations for cli `--format` and metadata.rb (#3452)

* Remove deprecated database_helpers stderr/stdout methods.
Update deprecation text for processes/apache.

* Remove deprecations for `--format` and metadata.rb
Remove deprecated `format` code.
Remove deprecated code test and change json-config format test to use
reporter.
Remove deprecated metadata.rb code
Remove deprecation notice for old supports syntax.
Deprecate metadata.rb from source_reader
Remove rubocop disables as they are no longer required for this code block.
Remove deprecated legacy metadata.rb mock profiles.
Remove deprecated metadata.rb profile tests.
Remove deprecated yumrepo test.

* Allow inspec-3.0 branch to be tested.
* Allow appveyor to test inspec-3.0 branch
* Change runner tests to use reporter rather than format.
Remove deprecated `supports: linux` tests.

* Remove skip from inherited profiles from showing up in reporting (breaking change) (#3332)

* Skip loading dependency profiles if they are unsupported on the current
platform.

Skip loading dependencies if they are unsupported on the current
platform.

Wrap our log and next in a conditional checking if the platform is
supported.

Change a `if !` into a `unless`

Check if the backend is a Train Mock Connection and if so say that the
profile does support the platform.

While iterating through tests being loaded skip when the platform is
unsupported.

We now log a WARN when a profile is skipped due to unsupported platform,
so lets check that.

Modified existing test to log that there are 0 skipped tests, instead of
2.

Add functional test that loads profile-support-skip with a json reporter
to check that our controls are not loaded and that stderr contains our
warning.

* Rather than iterating through each test return before recursion if the platform is
unsupported.

* Resolve tests using a supported platform different from testing platform

Add a control to `test/unit/mock/profiles/complete-profile` that would
work on any OS with a Internet connection. This allows the profile
to execute on any OS with success. `filesystem_spec.rb` was a control
that would only work on Linux and some BSD's.

We want profile tests to consistently work across development and testing
platforms, and not get 'skipped' in some cases.  Travis-CI tests on Linux,
Inspec Dev team uses Linux and MacOS, Appveyor tests on Windows

Also Updated `file_provider_test.rb` for `complete-profile` content changes.

If you `MockLoader.load_profile` on a unsupported platform you might not
hit the usual skip. Lets handle situations where the tests array in
Profile#load_checks_params could be nil.

* Use safe navigation rather than checking if tests is nil.
Update tests to point to unsupported_inspec and account for WARN changes.
Make unsupported_inspec profile support os-family 'unsupported_inspec'

* Fix skip bug when using include/require controls. (#3487)

* Fix skip bug when using include/require controls.
* fix test and feedback.

* Remove need for UUID detection for Automate report (#3507)
* Add json metadata for skipped profiles (#3495)

* Add skip metadata to json reports
* Unify skip messages.
* Update with status field.
* Add testing.
* Fix tests.
* lint
* Add skip exit codes for profile skips.
* Update website for 3.0 launch

Add `plugins` to sidebar.
Change 2.0 -> 3.0 in slim files.
Update 3.0 features list.
* Fix comments
* Update float to numeric.
* Change Float to numeric.
* updated feature list and impact doc
* Change "What's new in InSpec 3.0" -> "Announcing InSpec 3.0"
* Bump VERSION to 3.0.0 (#3511)

* Remove 3.0 testing checks.

* Fix azure link.
2018-10-15 18:25:27 -04:00
Chef Expeditor
10f110b763
Bump version to 2.3.26 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-15 16:15:27 +00:00
Jared Quick
cccad057c2 Update the text on the generic default attribute (#3508)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-15 12:15:17 -04:00