Commit graph

8911 commits

Author SHA1 Message Date
Chef Expeditor
3091f5d6f0 Bump version to 4.29.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-24 19:14:37 +00:00
Clinton Wolfe
a8e58c610b
Merge pull request #5432 from inspec/cw/m1-support 2021-03-24 15:12:48 -04:00
Chef Expeditor
001a4d16db Bump version to 4.29.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-24 02:47:24 +00:00
Clinton Wolfe
c3f36b953d
Merge pull request #5438 from inspec/nm/fix-profile-git-fetcher 2021-03-23 22:45:13 -04:00
Nikita Mathur
628d1561f9 Unnecessary white spaces removed from git fetcher testing files
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-23 16:42:52 +05:30
Nikita Mathur
d9bb2649e6 Code refactoring changes for fix #5233
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-23 16:20:47 +05:30
Nikita Mathur
d673e840a3 Fix for executing git profiles with default branch not just master
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-23 16:20:47 +05:30
Chef Expeditor
8c93d81df4 Bump version to 4.29.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-22 20:40:16 +00:00
Chef Expeditor
1773c4056f Update CHANGELOG.md with details from pull request #5440
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-22 20:37:49 +00:00
Clinton Wolfe
d1d3b3d798
Merge pull request #5439 from inspec/im/update_page_menu_titles
Improve resource page menu titles
2021-03-22 16:37:28 -04:00
Clinton Wolfe
b9b96ae539
Merge pull request #5440 from inspec/im/codeowners
Update codeowners for docs
2021-03-22 16:36:10 -04:00
IanMadd
aeb8102e43 Update codeowners for docs
Signed-off-by: IanMadd <Ian.Maddaus@progress.com>
2021-03-22 11:07:00 -07:00
IanMadd
87a745b245 Improve resource page menu titles
Signed-off-by: IanMadd <Ian.Maddaus@progress.com>
2021-03-22 10:58:00 -07:00
Chef Expeditor
9fc1364c07 Bump version to 4.29.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-19 14:26:16 +00:00
Clinton Wolfe
f1e118cbaa
Merge pull request #5430 from issue-3181-json-reporter-passthrough-data 2021-03-19 10:24:22 -04:00
Chef Expeditor
55075c294c Bump version to 4.28.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-19 14:21:28 +00:00
Clinton Wolfe
3038ffa807
Merge pull request #5435 from collinmcneese/profile_init 2021-03-19 10:19:26 -04:00
Chef Expeditor
47ac2566c4 Bump version to 4.28.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-19 14:17:52 +00:00
Clinton Wolfe
5378a5128b
Merge pull request #5434 from inspec/vasundhara/fix-for-controls-option 2021-03-19 10:16:02 -04:00
Chef Expeditor
9ab75923cf Bump version to 4.28.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-19 14:11:14 +00:00
Clinton Wolfe
7c9d605125
Merge pull request #5437 from ymotongpoo/master 2021-03-19 10:09:24 -04:00
Vasu1105
513c7be801 Added specific regex as for describe block we genrate random control with some random hex which might contain the number that I have used in the rgex due to which test is failing
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:57:46 +05:30
Vasu1105
428a8a7194 Added code comments and rename control_list_exist? method to controls_list_exist?
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
b180914889 Updated test for --controls option
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
9a404f5e0f Fixed failing test in inputs_test.rb
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
2dcd174ff1 minor code fix
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
a5932b7da7 Fixes 5215: While using --controls options the control block was also getting evaluated as filtering of the control was happening after evaluating so added the filter logic in the control_eval_context. Also when we have describe block outside control block we are we
generating a control for them automatically and then execute due that also becomes a control and has to add same logic to filter the control in that mehtod

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
df8d589e25 Removed readme file from test profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
b4d319610a Fixing test cases
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:11 +05:30
Vasu1105
b984bbe960 Fixes #5215 : When we are using --controls option it was also evaluating the control block of not included controls in the controls option as it was filtering the controls from the list after evaluating updated the logic so that it gets evaluated after filtering. Removed filter_controls methods as no more using that
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:11 +05:30
Vasu1105
89e994c4b3 Fixed test file for syntax issues
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:11 +05:30
Vasu1105
e1e10732ae Revert "Updated test to match the exact string"
This reverts commit 2048c4dff6689342cd7ef42ea9ba98a4c6715723.
2021-03-19 16:10:11 +05:30
Vasu1105
75ca22c3ce Updated test to match the exact string
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:11 +05:30
Vasu1105
6853f6450e Added test to catch the control execution issue while using controls option
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:11 +05:30
Yoshi Yamaguchi
68aa7ca14b Change test to be consistent with the main implementation
Signed-off-by: Yoshi Yamaguchi <yoshifumi@google.com>
2021-03-19 17:37:06 +09:00
Yoshi Yamaguchi
4981ca0a97 Add quotation around -name option to work properly with zsh
Singed-off-by: Yoshi Yamaguchi <yoshifumi@google.com>
2021-03-19 12:35:34 +09:00
Alexander Stein
7f15e3c572 Update docs-chef-io/content/inspec/reporters.md
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
Signed-off-by: Alexander Stein <astein@flexion.us>
2021-03-18 17:45:43 -04:00
Chef Expeditor
2f41c16ad4 Bump version to 4.28.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-17 17:21:06 +00:00
Clinton Wolfe
c545469486
Merge pull request #5433 from inspec/im/edits
Minor Docs edits
2021-03-17 13:18:54 -04:00
Clinton Wolfe
3bfc6d33bc Use openssl 1.1.1 on all MacOS, not just arm
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-17 13:12:57 -04:00
Collin McNeese
88f6d99be3
updates test fixutres for cloud profiles to use inputs instead of attributes
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-03-17 11:39:42 -05:00
Collin McNeese
fa327ab55c
updates readme for profile inits to reference inputs instead of attributes
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-03-17 11:28:20 -05:00
Chef Expeditor
0309430f7b Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-17 15:50:25 +00:00
Collin McNeese
9da7a7338d
updates aws profile init to use inputs instead of attributes
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-03-17 09:19:11 -05:00
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
IanMadd
47cc46315b Minor edits
Signed-off-by: IanMadd <imaddaus@chef.io>
2021-03-16 13:57:15 -07: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