Commit graph

8854 commits

Author SHA1 Message Date
Collin McNeese
2f4dc632a1
Updates GCP profile init to use inputs instead of attributes
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-03-17 09:15:10 -05:00
Chef Expeditor
12a357a46b Bump version to 4.28.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-16 20:13:21 +00:00
Clinton Wolfe
640ce91d60
Merge pull request #5266 from inspec/ns/cust_issue 2021-03-16 16:11:35 -04:00
Nick Schwaderer
cbe105bbe0 Handles edge cases for parallelization
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-03-16 15:41:55 -04:00
Nick Schwaderer
4c03ad4c55 Support 'clear_cache'
Helps with Customer Bug 236 (see there for repro)

Currently, when we run `inspec compliance upload my_profile` it is
cached locally in inspec when run. If we update the version in the core
code and run another upload, `inspec compliance upload my_profile` again
it will run the old cached version instead of running a new copy
from automate.

The current workaround is to specify the desired version with
`inspec exec compliance://my_profile/admin#0.1.1`.

The caching happens before we have forward sight into the profile's
contents and only the target name. So the text used to generate the
cache would be `compliance://my_profile/admin` which does not change
version to version.

A fix here could simply identify when we are doing a local `inspec exec
compliance://` (hitting local profiles does not generate a cache) and
skips the cache if there's no version specified. That would eliminate
the unexpected behavior. However, it is a breaking change for customers
as some current caching taking place would no longer take place.

Instead, we have included a `clear_cache` cli method for InSpec,
which should assist the core team and other developers in the future
when debugging edge case issues in InSpec.

Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-03-16 15:41:55 -04:00
Chef Expeditor
4bb0af3dbe Bump version to 4.27.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-16 16:18:50 +00:00
Clinton Wolfe
8664d560b1
Merge pull request #5423 from inspec/dependabot/bundler/json_schemer-gte-0.2.1-and-lt-0.2.19
Update json_schemer requirement from >= 0.2.1, < 0.2.18 to >= 0.2.1, < 0.2.19
2021-03-16 12:17:04 -04:00
Chef Expeditor
cf48b46d00 Bump version to 4.27.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-15 15:51:03 +00:00
Clinton Wolfe
9cbca732c2
Merge pull request #5422 from yarick/auditd_conf_readers 2021-03-15 11:49:22 -04:00
yarick
e88e92bb66 Merge branch 'master' of https://github.com/inspec/inspec into auditd_conf_readers 2021-03-14 18:58:44 -04:00
Yarick Tsagoyko
050ac9a131
Added params and examples
For consistency with other resources, added getters - `conf_path, content, params`
2021-03-14 18:55:28 -04:00
Chef Expeditor
00c57dfe83 Bump version to 4.27.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-10 17:15:15 +00:00
Clinton Wolfe
6237112bf6
Merge pull request #5424 from inspec/cw/ruby-2.5-note
Update README to add note about Ruby 2.5 support
2021-03-10 12:13:33 -05:00
Clinton Wolfe
6b75b9350d
Apply suggestion from docs team
Signed-off-by: Clinton Wolfe clintoncwolfe@gmail.com

Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
2021-03-10 12:12:44 -05:00
Chef Expeditor
a395a96cff Bump version to 4.27.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-10 17:09:28 +00:00
Clinton Wolfe
27e4854663
Merge pull request #5425 from option-to-skip-empty-profile-report
Fixes #5373 : Add option to filter empty profiles from report
2021-03-10 12:07:19 -05:00
Chef Expeditor
29682b4091 Bump version to 4.26.17 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-10 17:06:30 +00:00
Clinton Wolfe
f0f762c654
Merge pull request #5419 from inspec/cw/clarify-crontab-docs 2021-03-10 12:04:46 -05:00
Clinton Wolfe
c7c09641ec
Apply suggestions from code review
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
2021-03-10 11:28:50 -05:00
Chef Expeditor
151208b858 Bump version to 4.26.16 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-09 15:52:18 +00:00
Clinton Wolfe
2b0f01c025
Merge pull request #5427 from fix-backtrace-in-cmp-matcher 2021-03-09 10:50:34 -05:00
Vasu1105
13d899d2af Fix for nil error when using to compare nil to an expectation
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-05 21:46:52 +05:30
Vasu1105
8a046b28b4 Added test to do test cmp matcher with nil as actul input to cmp against expected
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-05 20:48:27 +05:30
Vasu1105
216306a219 removed unwanted README files from test fixtures and fixed some minor copy paste test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-05 16:29:30 +05:30
Vasu1105
7dba4fa641 Fixes #5373 : Add option to filter empty profiles from report
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-04 22:09:48 +05:30
Clinton Wolfe
7060ff7bf2 Update README to add note about Ruby 2.5 support
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-03 12:05:44 -05:00
Chef Expeditor
f4126bb05f Update CHANGELOG.md with details from pull request #5420
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-01 20:58:14 +00:00
Chef Expeditor
9eacee2688 Bump version to 4.26.15 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-01 20:55:52 +00:00
Clinton Wolfe
b42dbac3c6
Merge pull request #5420 from inspec/cw/add-git-to-docker
Add git to Docker build
2021-03-01 15:55:15 -05:00
Clinton Wolfe
1b2d8bdfdb
Merge pull request #5413 from inspec/cw/update-macos-builder-name 2021-03-01 15:54:13 -05:00
dependabot-preview[bot]
1bfa935f0c
Update json_schemer requirement from >= 0.2.1, < 0.2.18 to >= 0.2.1, < 0.2.19
Updates the requirements on [json_schemer](https://github.com/davishmcclurg/json_schemer) to permit the latest version.
- [Release notes](https://github.com/davishmcclurg/json_schemer/releases)
- [Commits](https://github.com/davishmcclurg/json_schemer/compare/v0.2.1...v0.2.18)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 08:56:28 +00:00
yarick
181a924ddd In order to allow for dynamic tests, exposed these instance variables
Signed-off-by: yarick <yarick@yarick.net>
2021-02-28 17:47:17 -05:00
Clinton Wolfe
f4c19c41c0 Add git to Docker build
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-26 10:13:07 -05:00
Chef Expeditor
77b29d7550 Bump version to 4.26.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-26 14:22:10 +00:00
Clinton Wolfe
173c68d4e9
Merge pull request #5418 from inspec/cw/fix-crontab-on-aix
Don't pass -u on AIX in crontab command
2021-02-26 09:20:36 -05:00
Clinton Wolfe
a1fdb1e999 Clarify include matcher on crontab resource
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-25 14:41:38 -05:00
Clinton Wolfe
0f1b1f5c5c Don't pass -u on AIX
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-25 14:31:13 -05:00
Chef Expeditor
75762ecd62 Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-24 16:34:51 +00:00
Chef Expeditor
c212bb0902 Bump version to 4.26.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-23 17:07:34 +00:00
Clinton Wolfe
b425f1d6b9
Merge pull request #5414 from inspec/cw/ssh_conf_first_value 2021-02-23 12:05:44 -05:00
Chef Expeditor
e990011d78 Bump version to 4.26.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-22 23:15:22 +00:00
Clinton Wolfe
2cd000d3ad
Merge pull request #5415 from inspec/cw/switch-to-macos-14-builder 2021-02-22 18:13:38 -05:00
Clinton Wolfe
4ce55fc0ab Switch to MacOS 10.14 builder
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-22 15:46:07 -05:00
Clinton Wolfe
cb54fea794 Revert "Use MacOS 10.14 builder"
This reverts commit ed14ab4690.
2021-02-22 15:43:47 -05:00
Chef Expeditor
69320a4a0c Bump version to 4.26.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-22 19:30:13 +00:00
Clinton Wolfe
5199d9e678
Merge pull request #5408 from inspec/cw/document-json-automate 2021-02-22 14:28:49 -05:00
Chef Expeditor
dd5ac93127 Bump version to 4.26.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-21 21:07:16 +00:00
Clinton Wolfe
75d359b9c0
Merge pull request #5411 from inspec/cw/deep-skip 2021-02-21 16:05:44 -05:00
Clinton Wolfe
ed14ab4690 Use MacOS 10.14 builder
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-21 15:19:55 -05:00
Clinton Wolfe
eae5dc9473 Use first ssh_config value encountered
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-21 15:12:46 -05:00