Vasu1105
08f2fcf4bb
Fix for port resource performance: adding more specific search while using ss command
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-05-17 11:12:26 +05:30
Chef Expeditor
1e96f31a0c
Bump version to 4.37.12 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-16 21:18:11 +00:00
Chef Expeditor
44c4bf9a86
Bump version to 4.37.11 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-16 21:15:09 +00:00
Chef Expeditor
d0369f5271
Bump version to 4.37.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-16 20:58:53 +00:00
Chef Expeditor
17ebbe2033
Bump version to 4.37.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-16 20:56:18 +00:00
Kannan Ramakrishnan
feb12fef77
Fixed a typo in variable name. Signed-off-by: @kannanr <kannaa.ram@gmail.com>
2021-05-15 18:53:39 +05:30
Kannan Ramakrishnan
d1831a318c
Lint errors handled. Signed-off-by: @kannanr <kannaa.ram@gmail.com>
2021-05-15 17:48:19 +05:30
Kannan Ramakrishnan
19c624cf38
Support zfs_pool and zfs_dataset resources on Linux. Handled #5075 . Signed-off-by: @kannanr <kannaa.ram@gmail.com>
2021-05-15 12:18:39 +05:30
Chef Expeditor
54763c61d7
Bump version to 4.37.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-10 20:56:05 +00:00
Chef Expeditor
b90ed7b7a3
Bump version to 4.37.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-10 20:53:43 +00:00
Clinton Wolfe
e49fa72836
Merge pull request #5506 from jwdean/master
...
Modified windows_feature to indicate enabled rather than just available
2021-05-10 16:52:26 -04:00
Chef Expeditor
86e14edb7f
Bump version to 4.37.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-10 20:50:28 +00:00
Chef Expeditor
bd687439a3
Bump version to 4.37.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-10 20:47:58 +00:00
Clinton Wolfe
af14795d22
Merge pull request #5508 from inspec/dependabot/bundler/chefstyle-tw-2.0.3
...
Update chefstyle requirement from ~> 1.7.1 to ~> 2.0.3
2021-05-10 16:46:39 -04:00
Chef Expeditor
c6b9f2438a
Bump version to 4.37.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-10 20:44:12 +00:00
Chef Expeditor
fa56c4587b
Bump version to 4.37.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-10 20:41:32 +00:00
Clinton Wolfe
26c4ad243b
Merge pull request #5509 from inspec/nm/automate-login-verify
...
Fixed `automate login` fake feedback on failure
2021-05-10 16:40:16 -04:00
Chef Expeditor
be47bcbc20
Bump version to 4.37.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-10 20:36:48 +00:00
Clinton Wolfe
9511c1aaeb
Merge pull request #5510 from inspec/nm/http-utf8
...
HTTP resource response body coerced into UTF-8
2021-05-10 16:35:24 -04:00
Chef Expeditor
0fe9c02da9
Bump version to 4.37.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-10 20:25:33 +00:00
Nikita Mathur
174a358355
Body content of http resourece - enforced utf-8
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-10 13:05:44 +05:30
Nikita Mathur
a23dd75ae7
Better test name for automate login invalid token
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-10 13:04:34 +05:30
Nikita Mathur
ca4cc26319
Automate login to validate token before storing configurations
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-10 13:04:34 +05:30
Clinton Wolfe
02e8e9cc9c
Ran chefstyle -a
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-09 23:59:04 -04:00
Chef Expeditor
76926c6c27
Bump version to 4.37.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-05 16:16:59 +00:00
Clinton Wolfe
e7cc5e94f2
Merge pull request #5490 from inspec/nm/inspec-automate
...
Added alias command `automate` for `inspec compliance`
2021-05-05 12:14:30 -04:00
Chef Expeditor
04e5f456eb
Bump version to 4.36.11 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-05 16:14:07 +00:00
Chef Expeditor
8b59d942aa
Bump version to 4.36.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-05 16:11:07 +00:00
Nikita Mathur
39680e7926
Chef automate product name changes in messages
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-05 17:57:31 +05:30
jwdean
6bcef24cbc
Modified windows_feature to indicate enabled rather than just available
...
There are three conditions a windows feature may be in as represented by DISM:
1. Available in the OS and enabled
dism returns 0 and dism output of state = 'Enabled'
2. Available in the OS but disabled
dism returns 0 and dism output of state != 'Enabled'
3. Not available
dism returns != 0
This change, in effect, modifies the meaning of installed == true to represent that the feature is both available and enabled.
installed == false will now indicate the feature is either unavailable or disabled.
The prior implementation indicated the feature was available, but did not recognize the it might be disabled. The most logical use for an InSpec evaluation of a Windows Feature seems to be determining if the feature is enabled or disabled rather than simply available. This updated implementation better represents that goal.
----------
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the
best of my knowledge, is covered under an appropriate open
source license and I have the right under that license to
submit that work with modifications, whether created in whole
or in part by me, under the same open source license (unless
I am permitted to submit under a different license), as
Indicated in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including
all personal information I submit with it, including my
sign-off) is maintained indefinitely and may be redistributed
consistent with this project or the open source license(s)
involved.
Signed-off-by: Jeff Dean <jwdean@scriptpro.com>
2021-05-04 15:05:52 -05:00
Nikita Mathur
6d140b89b6
Review changes related to inspec compliance to be treated as backward compatible alias
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-04 19:04:54 +05:30
Vasu1105
95656f97da
Remove TypeData command was causing error when its called in the same session which was resulting into windows_firewall_rule was not working correctly locally when we have more than one describe block for windows_firewall_rule resource
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-05-04 09:22:19 +00:00
Chef Expeditor
f479aa644c
Bump version to 4.36.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-04 01:05:00 +00:00
Clinton Wolfe
1e2b0e79c1
Merge pull request #5487 from inspec/vasundhara/fix_depedent_control_errors
...
Fix undefined method `+' for nil:NilClass\n\nProfile: - when using profile dependencies and require_controls
2021-05-03 21:03:27 -04:00
Chef Expeditor
c07513ebe9
Bump version to 4.36.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-04 00:55:03 +00:00
Chef Expeditor
ca0a56b1ad
Bump version to 4.36.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-04 00:52:22 +00:00
Chef Expeditor
0589d2434d
Bump version to 4.36.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-03 21:03:04 +00:00
Nikita Mathur
072a8c438f
Presenting automate command as alias in both the content and dev docs
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-03 13:45:56 +05:30
Chef Expeditor
7100701a93
Bump version to 4.36.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-05-03 00:40:52 +00:00
Nikita Mathur
a4d822ae43
Inspec automate command extended for compliances
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-30 17:20:03 +05:30
Vasu1105
231d562040
Using compact
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-29 13:59:17 +05:30
Chef Expeditor
4cd7a4012a
Bump version to 4.36.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-28 20:10:06 +00:00
Nikita Mathur
7693363a1a
Fix for default null values compatible for both windows and non-windows system
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-28 22:27:30 +05:30
Nikita Mathur
457e544724
Fix for non-existent member for group resource
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-28 22:26:33 +05:30
Chef Expeditor
ab401b6d64
Bump version to 4.36.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-28 16:34:51 +00:00
Clinton Wolfe
0fa00ed252
Merge pull request #5479 from inspec/nm/groups-members-fix
...
Added new property `members_array` for group & groups resources.
2021-04-28 12:33:02 -04:00
Chef Expeditor
597b33e51c
Bump version to 4.36.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-28 16:32:07 +00:00
Chef Expeditor
0fdd546c40
Bump version to 4.36.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-28 16:28:23 +00:00
Vasu1105
c56b098761
Fix for undefined method + for nil class error
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-28 14:02:16 +05:30
Chef Expeditor
cb2abf2e10
Bump version to 4.36.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-27 13:00:07 +00:00
Clinton Wolfe
3940a6374a
Merge pull request #5463 from inspec/vasundhara/add_selinux_modules
...
Add selinux resource support for modules and booleans
2021-04-27 08:58:28 -04:00
Chef Expeditor
6e73969278
Bump version to 4.35.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-27 02:40:12 +00:00
Clinton Wolfe
0aef9f11eb
Merge pull request #5480 from inspec/vasundhara/small_fix
...
Minor fix - Method expected to return boolean but it was returning nil if condition check fails
2021-04-26 22:38:39 -04:00
Vasu1105
ecf60297b2
Updated docs as per review comments
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-26 12:42:51 +05:30
Vasu1105
3725aa4598
This function was only returning boolean if profile_config_exist and was returning nil if condition was failed so updated the method to return false
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-23 14:10:42 +05:30
Nikita Mathur
b70f3166d4
New property members_array added for group and groups resources and updated documentation
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-23 13:48:29 +05:30
Vasu1105
76dca7f97c
Adds policy property, unit test and documentation for modules and booleans
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-22 11:40:32 +05:30
Vasu1105
fe0020ce50
Add selinux resource support for modules and booleans
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-22 11:28:06 +05:30
Chef Expeditor
295d074629
Bump version to 4.35.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-21 23:45:52 +00:00
Chef Expeditor
2308bad51b
Bump version to 4.35.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-21 23:35:41 +00:00
Clinton Wolfe
79aa03ae14
Merge pull request #5466 from inspec/nm/inputs-regex
...
New input option `pattern` added for DSL and metadata inputs
2021-04-21 19:34:07 -04:00
Chef Expeditor
ad41645526
Bump version to 4.34.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-21 23:32:23 +00:00
Nikita Mathur
cf8a5eb1c5
Fix to build issue in inputs unit test
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-21 12:33:54 +05:30
Nikita Mathur
ea6760c2c0
Undid changes of required validation to fix build errors
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-21 12:33:54 +05:30
Nikita Mathur
e77d5331c5
Added new pattern option, fix for input options on dsl and functional test cases for input options
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-21 12:33:54 +05:30
Nikita Mathur
85ca124809
Initial commit for regex pattern option in inputs
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-21 12:33:54 +05:30
Vasu1105
58e30cfa81
Review comments fixed
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-21 11:43:03 +05:30
Vasu1105
bd9d81314d
Integrated review comments
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-21 11:43:02 +05:30
Vasu1105
eb1d9364a0
Revert "Currently only states are getting handled so updated docs part"
...
This reverts commit 92fb3e4d951989d2fc2096d01b2fbb5dc0469603.
2021-04-21 11:43:02 +05:30
Vasu1105
074e4151cc
Currently only states are getting handled so updated docs part
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-21 11:43:02 +05:30
Vasu1105
c963b2ac14
fix linting
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-21 11:43:02 +05:30
Vasu1105
cbe7e8c03f
Add selinux resource with basic features support
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-21 11:43:02 +05:30
Chef Expeditor
6e55c9ed90
Bump version to 4.33.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-20 18:42:49 +00:00
Clinton Wolfe
b3e367da57
Remove default of 3600 seconds for command timeout
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-20 13:32:33 -04:00
Chef Expeditor
e8e437fa44
Bump version to 4.33.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-20 17:25:46 +00:00
Clinton Wolfe
e673b332a3
Merge pull request #5465 from inspec/cw/source-in-reporter
...
Optionally include controls source code in CLI reporter
2021-04-20 13:24:15 -04:00
Chef Expeditor
ddaaa191ef
Bump version to 4.32.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-15 20:14:30 +00:00
Clinton Wolfe
bb8c51dbc7
Initial implementation of listing source in CLI reporter
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-13 21:05:53 -04:00
Chef Expeditor
7b2cba6579
Bump version to 4.32.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-14 00:41:45 +00:00
Clinton Wolfe
c57ef924fc
Merge pull request #5452 from inspec/nm/shell-inputs
...
Added ability to pass inputs to InSpec shell using input file and cli
2021-04-13 20:39:12 -04:00
Clinton Wolfe
4dbee6b7bd
Alter split code to handle comments containing the word 'control', and rename some vars
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 16:25:09 -04:00
Clinton Wolfe
d6e63fce6e
Support multiple waiver files and handle misparsed YAML
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 16:25:09 -04:00
Clinton Wolfe
c21055af62
Rename --ludicrous-speed to --filter-waived-controls and reword usage message
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 16:25:09 -04:00
Clinton Wolfe
b42649e9e2
Refactor waived control filtering code into its own method; add usage error; remove warning to STDOUT
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 16:23:24 -04:00
Clinton Wolfe
4e43c54819
Remove debugger entrypoint
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 16:20:02 -04:00
Nick Schwaderer
bcb8097952
Cover side case where no-flag situations break
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:20:02 -04:00
Nick Schwaderer
bdfff66255
Only update if waived
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:20:02 -04:00
Nick Schwaderer
e5a96bbd98
Improvement to comment
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:20:02 -04:00
Nick Schwaderer
bb5cfbd434
Implement retain-waiver-data to keep 100% feature-ability
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:20:02 -04:00
Nick Schwaderer
c1d88e9536
Clarify waiver path
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:20:02 -04:00
Nick Schwaderer
219941cd2b
Cleans up waiver grab approach
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:19:17 -04:00
Nick Schwaderer
3bbf36cbe2
Final name update
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:19:17 -04:00
Nick Schwaderer
e048bc95eb
Better naming
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:19:17 -04:00
Nick Schwaderer
ac8ee33b63
Extend nuke_waivers
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:19:17 -04:00
Chef Expeditor
b3a0687fbe
Bump version to 4.31.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-08 19:48:11 +00:00
Clinton Wolfe
cbf57c3905
Use default command timeout value if timeout is 0
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 14:53:53 -04:00
Nikita Mathur
53810186dc
Documentation for shell inputs added
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-08 13:54:12 +05:30
Nikita Mathur
5865cdd1c4
Added input and input file option for shell, along with functional test cases
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-08 13:54:12 +05:30
Chef Expeditor
e8e5d8eb6f
Bump version to 4.31.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-07 13:02:12 +00:00
Clinton Wolfe
924ecd367f
Merge pull request #5445 from inspec/cw/add-docker-for-windows
...
Add --docker-url CLI option
2021-04-07 09:00:37 -04:00
Chef Expeditor
43c9fb5bd4
Bump version to 4.30.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-07 12:51:22 +00:00
Clinton Wolfe
fa41586910
Merge pull request #5446 from inspec/nm/fix-input-hash-access
...
Bug fix for loading hashmap inputs consistently
2021-04-07 08:49:53 -04:00
Chef Expeditor
e348f8ad3f
Bump version to 4.30.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-07 12:44:47 +00:00
Nikita Mathur
094293b01d
Refactored logic to enable hash indifference in all input types
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-05 16:10:55 +05:30
Nikita Mathur
ec30fc3d4e
Hash with indifference changes for inputs used via runner api
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-05 14:41:35 +05:30
Chef Expeditor
7496992c9c
Bump version to 4.30.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-05 02:26:32 +00:00
Clinton Wolfe
8286ec8072
Merge pull request #5443 from inspec/cw/timeouts
...
Add timeout option to command resource
2021-04-04 22:25:09 -04:00
Clinton Wolfe
6ff6b9634a
Add --docker-url CLI option
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-04 21:50:41 -04:00
Chef Expeditor
4fa55ebe71
Bump version to 4.29.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-05 01:35:36 +00:00
Nikita Mathur
a55b083b0a
Improvements in various descriptions and a better way to check for hash type
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-31 12:35:13 +05:30
Nikita Mathur
c0b213c46a
Bug fix for loading hashmap inputs consistently from external and metadata file
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-31 11:42:54 +05:30
Clinton Wolfe
81305d3270
linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:48:41 -04:00
Clinton Wolfe
e5b74b5760
Make CLI option take precedence over DSL option if it is nondefault
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
Clinton Wolfe
35b0081c2c
Apply suggested fix to maintain SSH connection
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
Clinton Wolfe
6d7f5a240b
Convert minutes to seconds for consistent interface
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
James Stocks
9cc9090225
Add command-timeout option
...
Allow commands to have a timeout, set in minutes. This is considered an emergency mechanism to stop CI being halted indefinitely. If a test inherently needs to pass or fail based on a timeout, this should be scripted into the command string instead.
It can be set for a command resource, like:
```
describe command('sleep 100', timeout: 1) do
its('exit_status') { should cmp 0 }
end
```
It can also be set as a new option `command-timeout`.
A timeout set on a `command` resource takes precedence over the `command-timeout` option.
If no timeout is set at all, a command will default to timing out after 1 hour
Signed-off-by: James Stocks <jstocks@chef.io>
2021-03-29 21:46:25 -04:00
Chef Expeditor
86128f5557
Bump version to 4.29.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-25 19:24:42 +00:00
Vasu1105
a2d3218536
Disable rubocop for begin block
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 22:00:12 +05:30
Vasu1105
abde524470
Fixed lint and added code comments
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:23 +05:30
Vasu1105
9af59c2164
Fixes #5369 the FilterTable::ExceptionCatcher error and now shows exact exception message
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:23 +05:30
Vasu1105
8a77b740db
Fixes deprecation warning messages for respond_to? method
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:22 +05:30
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
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
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
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
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
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
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
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
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
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
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
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
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
Alexander Stein
351a943b35
Put back passthrough automate reporter output.
...
Signed-off-by: Alexander Stein <astein@flexion.us>
2021-03-15 13:17:54 -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
yarick
e88e92bb66
Merge branch 'master' of https://github.com/inspec/inspec into auditd_conf_readers
2021-03-14 18:58:44 -04:00
Alexander Stein
dbda2b8694
Merge branch 'master' of https://github.com/inspec/inspec into issue-3181-json-reporter-passthrough-data
2021-03-11 22:04:13 -05: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
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
Alexander Stein
e25585d7d7
Only hoist passthrough to json, rest in automate.
2021-03-09 22:39:56 -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
mbaitelman
39c22f4189
cookstyle fixes
...
Signed-off-by: mbaitelman <mendy@baitelman.com>
2021-03-08 07:02:11 -08:00
mbaitelman
ad1bf219eb
Merge remote-tracking branch 'upstream/master' into add-http-for-windows-2
...
Signed-off-by: mbaitelman <mendy@baitelman.com>
2021-03-08 06:47:36 -08:00
mbaitelman
4ad11e8103
fixed tests
...
Signed-off-by: mbaitelman <mendy@baitelman.com>
2021-03-07 23:58:50 -08: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
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
Alexander Stein
fa5357a543
Surface passthrough data to superclass.
2021-03-04 20:01:26 -05:00
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
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
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
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
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
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
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
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
eae5dc9473
Use first ssh_config value encountered
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-21 15:12:46 -05:00
Clinton Wolfe
953524b659
Recurse into subprofile contexts when skipping controls
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-16 18:13:27 -05:00
Chef Expeditor
26fc75d4c5
Bump version to 4.26.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-16 21:40:14 +00:00
Chef Expeditor
5f07181a00
Bump version to 4.26.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-12 16:36:35 +00:00
Chef Expeditor
0cf2716037
Bump version to 4.26.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-12 16:26:50 +00:00
Chef Expeditor
441502da51
Bump version to 4.26.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-12 16:23:43 +00:00
Chef Expeditor
2eda3de283
Bump version to 4.26.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-02-01 17:09:10 +00:00
Chef Expeditor
a70f336800
Bump version to 4.26.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-27 16:24:05 +00:00
Clinton Wolfe
49589a5534
Improve programmatic plugin configuration
2021-01-27 11:22:40 -05:00
Chef Expeditor
f6844a7442
Bump version to 4.26.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-27 15:50:16 +00:00
Thomas Heinen
4ef2c7ad1e
Improve programmatic plugin configuration
...
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
2021-01-27 13:31:12 +01:00
Chef Expeditor
12f8db43f5
Bump version to 4.26.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-26 21:13:05 +00:00
Clinton Wolfe
2c391198f2
Enable programmatic setting of plugin configuration
2021-01-26 16:11:35 -05:00
Chef Expeditor
868e195c60
Bump version to 4.26.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-26 21:08:08 +00:00
Clinton Wolfe
408af711dd
Add option for --winrm-shell-type
2021-01-26 16:06:42 -05:00
Chef Expeditor
bd89effbfd
Bump version to 4.26.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-26 21:00:12 +00:00
Clinton Wolfe
f7ec1799c2
Add method_missing to nginx_conf
2021-01-26 15:58:48 -05:00
Chef Expeditor
cb088b9f2b
Bump version to 4.25.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-26 17:09:54 +00:00
Thomas Heinen
00975d8a64
Enable programmatic setting of plugin configuration
...
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
2021-01-26 11:37:34 +01:00
Chef Expeditor
51b9180d12
Bump version to 4.25.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-25 03:47:49 +00:00
Clinton Wolfe
10255e4118
Update oracledb_session resource to use more general invocation options
2021-01-24 22:46:07 -05:00
Chef Expeditor
c5b00dbf5d
Bump version to 4.25.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-20 19:54:29 +00:00
Clinton Wolfe
22f05dfba3
Revert conditional require of Thor
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-01-19 14:12:26 -05:00
Clinton Wolfe
e9ea8d17a5
Add windows as a supported platform for ssh_config (5288)
2021-01-15 10:26:20 -05:00
Chef Expeditor
0de31653da
Bump version to 4.25.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-15 15:13:41 +00:00
Chef Expeditor
52ef1f4400
Bump version to 4.24.33 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-13 16:41:55 +00:00
Chef Expeditor
89289eed83
Bump version to 4.24.32 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-12 21:04:39 +00:00
Chef Expeditor
c6528568a3
Bump version to 4.24.31 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-12 20:36:35 +00:00
Chef Expeditor
1e8dd0ae1e
Bump version to 4.24.30 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-12 20:33:51 +00:00
Chef Expeditor
74533a76c4
Bump version to 4.24.29 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-08 19:12:09 +00:00
Chef Expeditor
1ccaa3e482
Bump version to 4.24.28 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-06 21:05:21 +00:00
Chef Expeditor
897b5b27a1
Bump version to 4.24.27 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-01-06 16:08:05 +00:00
Clinton Wolfe
43e171b681
Truncate code_desc as well when truncating report message
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-01-05 18:12:09 -05:00
Chef Expeditor
4ee82644e8
Bump version to 4.24.26 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-23 14:28:18 +00:00
Kasey Linden
0d1aa2c3a4
added specific oses
...
Signed-off-by: Kasey Linden <kaseylinden@gmail.com>
2020-12-22 15:46:57 -06:00
Chef Expeditor
2ff2fb3735
Bump version to 4.24.25 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-21 21:13:06 +00:00
Chef Expeditor
7bf9a8da65
Bump version to 4.24.24 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-21 20:27:57 +00:00
Chef Expeditor
3ec394c548
Bump version to 4.24.23 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-21 19:16:02 +00:00
Clinton Wolfe
cdfb325ca3
Apply chefstyle -a, and manually remove duplicate requires
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-12-21 13:25:04 -05:00
Chef Expeditor
3030e1d813
Bump version to 4.24.22 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-21 17:52:23 +00:00
Chef Expeditor
8519680780
Bump version to 4.24.21 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-18 22:02:11 +00:00
Chef Expeditor
81a7e70b05
Bump version to 4.24.20 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-18 16:56:31 +00:00
Chef Expeditor
b01778b7f5
Bump version to 4.24.19 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-17 14:12:46 +00:00
Chef Expeditor
08dd798394
Bump version to 4.24.18 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-17 14:07:28 +00:00
Chef Expeditor
bc90057e31
Bump version to 4.24.17 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-16 15:51:03 +00:00
Chef Expeditor
26e0818f0d
Bump version to 4.24.16 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-16 15:48:41 +00:00
Chef Expeditor
c4f7b7d65e
Bump version to 4.24.15 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-16 15:46:14 +00:00
Chef Expeditor
7ee32a651f
Bump version to 4.24.14 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-16 15:42:49 +00:00
Chef Expeditor
4279ba326d
Bump version to 4.24.13 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-15 21:57:37 +00:00
Chef Expeditor
d7e69db444
Bump version to 4.24.12 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-15 21:54:55 +00:00
Clinton Wolfe
f5466687cc
parse_config - accept array notation to handle dots
2020-12-15 16:53:34 -05:00
Chef Expeditor
e170e31055
Bump version to 4.24.11 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-15 20:44:53 +00:00
Clinton Wolfe
dbc9c4b6e7
Fix link to image in compliance plugin README
2020-12-15 15:43:34 -05:00
Chef Expeditor
a4924ac978
Bump version to 4.24.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-15 20:39:05 +00:00
Chef Expeditor
567c8d3cf3
Bump version to 4.24.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-10 17:56:00 +00:00
Chef Expeditor
eefd96d867
Bump version to 4.24.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-09 19:11:23 +00:00
Chef Expeditor
a570b48f12
Bump version to 4.24.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-09 19:07:27 +00:00
Chef Expeditor
9e5eef39ce
Bump version to 4.24.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-09 15:43:59 +00:00
Chef Expeditor
9e3f1aeed7
Bump version to 4.24.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-09 15:41:13 +00:00
Raphael Geissert
6bc765bc2f
Make sshd_config on Windows default to the right config file
...
Signed-off-by: Raphael Geissert <atomo64@gmail.com>
2020-12-08 15:45:21 +01:00
Raphael Geissert
2558b38a75
Add windows as a supported platform for ssh_config
...
Openssh for windows is a thing, so allow the ssh_config and sshd_config
resources to be used on it.
Signed-off-by: Raphael Geissert <atomo64@gmail.com>
2020-12-08 15:45:21 +01:00
Raphael Geissert
cc9d0df17b
Fix the reference to rspec-its' behaviour with arrays
...
Make it point to the version currently in use.
Obvious fix, the link to master is useless as the code moved.
2020-12-08 10:40:51 +01:00
Raphael Geissert
4872ddb780
Accept arrays in parse_config's method_missing
...
A single-element array allows Rspec's its behaviour to be worked around
and allow options containing dots to be tested using its.
This is already implemented by resources such as `json` and those based
on it (e.g. xml).
Related to issue #875 .
Signed-off-by: Raphael Geissert <atomo64@gmail.com>
2020-12-08 10:40:51 +01:00
Raphael Geissert
d4035cf8d6
Add respond_to_missing? methods to nginx_conf
...
This allows calls to Object.method(:name) work.
Signed-off-by: Raphael Geissert <atomo64@gmail.com>
2020-12-08 10:38:56 +01:00
Raphael Geissert
0bde654b3a
Add method_missing helpers to nginx_conf
...
This allows a similar syntax to that available on other resources.
Signed-off-by: Raphael Geissert <atomo64@gmail.com>
2020-12-08 10:38:56 +01:00
Pete Higgins
edf4a9838a
Fix link to documentation image.
...
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
2020-12-07 17:18:03 -08:00
Chef Expeditor
f9da70d647
Bump version to 4.24.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-03 13:47:02 +00:00
Nick Schwaderer
744f091ae6
Merge pull request #5317 from vsingh-msys/VSingh/fix-dir-home
...
Fix issue Dir.home would break when HOME env absent
2020-12-03 13:45:47 +00:00
Chef Expeditor
d5e426d068
Bump version to 4.24.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-03 13:18:23 +00:00
Nick Schwaderer
c766519485
Merge pull request #5302 from yarick/yt/wildcart_support_platform_name
...
Added platform-name wildcard support
2020-12-03 13:17:02 +00:00
Chef Expeditor
4feb6253dc
Bump version to 4.24.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-02 19:24:35 +00:00
Chef Expeditor
1daeaf30dc
Bump version to 4.24.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-02 19:19:40 +00:00
Chef Expeditor
97789c0fb1
Bump version to 4.24.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-02 15:02:15 +00:00
Chef Expeditor
3a0b153b57
Bump version to 4.23.25 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-02 10:17:30 +00:00
Alex Pop
e71043ee09
Make wmi resource always return arrays for params
...
Signed-off-by: Alex Pop <apop@chef.io>
2020-12-02 09:29:16 +00:00
Vivek Singh
b0ad73c973
minor comment updates
...
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
2020-12-02 12:34:05 +05:30
Vivek Singh
fd0708076f
replace with Etc.getpwuid.dir
...
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
2020-12-02 12:34:05 +05:30
Vivek Singh
5162ab4904
Fixes chefstyle & move etc require to block
...
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
2020-12-02 12:34:05 +05:30
Vivek Singh
896e5fa261
Fix issue where absent HOME would break Dir.home
...
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
2020-12-02 12:34:05 +05:30
superyarick
e7e196334a
Merge remote-tracking branch 'upstream/master' into yt/wildcart_support_platform_name
...
Signed-off-by: superyarick <yarick@yarick.net>
2020-12-01 18:29:44 -05:00
Chef Expeditor
8a608dac76
Bump version to 4.23.24 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-01 17:19:29 +00:00
Clinton Wolfe
353ea9166e
Fix escaping of Windows package names
2020-12-01 12:14:45 -05:00
Chef Expeditor
6923d1d75f
Bump version to 4.23.23 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-12-01 12:51:38 +00:00
Lance Albertson
a6cff007ed
Fix Windows escaping of Windows package names
...
This resolves #5235 and supersedes #5238 .
Instead of using `-match` use `-like` when querying the Windows registry. This
completely removes the problem of trying to clean the string for a regex and
just let's Powershell do that with `-like`.
I confirmed this works with the use case of having a package name such as
`Microsoft Visual C++ 2015-2019 Redistributable (x86) - 14.28.29325` work as-is
without any modification.
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-11-30 18:02:50 -08:00
Chef Expeditor
ecc26f4f12
Bump version to 4.23.22 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-11-23 16:41:13 +00:00
Nick Schwaderer
4b97fba53a
Merge pull request #5241 from inspec/ns/inspec_cloud
...
InSpec Cloud: Reporting by Resource
2020-11-23 16:39:27 +00:00
pacopal
28be72d967
Update oracledb_session.rb
...
Update format_options for sqlplus to support all versions.
Reference: Issue 5182
Signed-off-by: Francisco Palomares <fpalomares@hotmail.com>
Fixed Test Unit to compare with new values
2020-11-23 14:43:19 +01:00
Nick Schwaderer
345a832eb1
Supply resource name, params to code_desc
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-11-19 09:59:53 +00:00
Chef Expeditor
65da44b6f7
Bump version to 4.23.21 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-11-18 15:41:02 +00:00
Nick Schwaderer
673e0415dc
Merge pull request #5306 from james-stocks/js/grub2
...
grub_conf - handle no menuentry config
2020-11-18 15:39:46 +00:00
Chef Expeditor
638ec26abe
Bump version to 4.23.20 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-11-18 14:17:02 +00:00
Clinton Wolfe
a85f7a228f
Don't reload plugins if load_all is called repeatedly.
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-11-12 15:05:59 -05:00
superyarick
fe75b288fb
Merge branch 'master' of https://github.com/inspec/inspec into yt/wildcart_support_platform_name
2020-11-11 16:08:42 -05:00
James Stocks
918b7fe840
grub_conf - handle no menuentry config
...
Fixes #5305
grub_conf assumes for grub2 that the config (default `/etc/default/grub`) contains `menuentry` lines. i.e. entries in the menu of kernels to boot.
A customer reports, and we can reproduce on the Vagrant `centos/8` image, that the default config for grub2 contains no such entries.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-11-11 10:56:23 +00:00
Chef Expeditor
d356aca0a9
Bump version to 4.23.19 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-11-11 09:07:50 +00:00
superyarick
c653ce343a
added platform-name wildcard support
...
added unit test for platform-name wildcard
added doc for release wildcard
added doc for platform-name wildcard
Signed-off-by: superyarick <yarick@yarick.net>
2020-11-08 15:24:43 -05:00
Chef Expeditor
7eb694a6e7
Bump version to 4.23.18 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-11-05 11:37:28 +00:00
Chef Expeditor
68c2cbe9ed
Bump version to 4.23.17 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-11-05 11:31:20 +00:00
Chef Expeditor
f362b6e1a1
Bump version to 4.23.16 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-11-02 16:57:55 +00:00
Chef Expeditor
2d19011d66
Bump version to 4.23.15 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-10-22 00:47:54 +00:00
Chef Expeditor
7b3801b2a8
Bump version to 4.23.14 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-10-19 09:42:33 +00:00
Nick Schwaderer
1f0bcd988f
Merge pull request #5278 from inspec/ns/waiver_message
...
Ensure that we populate information about waiver expiration regardless of `run: true/false`
2020-10-19 10:41:05 +01:00
mbaitelman
89cb81ca33
Update to return JSON, start writing tests
...
Signed-off-by: GitHub <noreply@github.com>
2020-10-16 18:01:38 +00:00
mbaitelman
188b188615
Style fixes
...
Signed-off-by: GitHub <noreply@github.com>
2020-10-15 23:31:56 +00:00
mbaitelman
97a14013d7
Review fixes
...
Signed-off-by: GitHub <noreply@github.com>
2020-10-15 23:16:27 +00:00
Mendy Baitelman
fac9368e6d
Move OS checks from Chef to Inspec style
...
Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
2020-10-15 23:16:27 +00:00
Mendy Baitelman
6c5db5ae14
Fix RuboCop for Remove OS checks
...
Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
2020-10-15 23:16:27 +00:00
Mendy Baitelman
9f237f966d
Remove OS checks
...
Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
2020-10-15 23:16:27 +00:00
Mendy Baitelman
1b82949d39
RuboCop and test fixes
...
Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
2020-10-15 23:16:26 +00:00
mbaitelman
0246acc672
Add Windows support fot the http resource
...
Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
2020-10-15 23:16:26 +00:00
Chef Expeditor
9c3ec0613e
Bump version to 4.23.13 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-10-14 18:45:09 +00:00
Nick Schwaderer
459ffcdd2f
Ensure that we populate information about waiver expiration regardless of
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-10-13 10:11:40 +01:00
Chef Expeditor
d64e588bc6
Bump version to 4.23.12 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-10-13 07:49:53 +00:00
Chef Expeditor
ded881473f
Bump version to 4.23.11 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-09-25 14:59:59 +00:00
Catriona Malone
36f4289441
Add option for winrm-shell-type
...
Signed-off-by: Catriona Malone <cmalone@chef.io>
2020-09-25 15:38:11 +01:00
James Stocks
db5f6a1615
Tidy --help output slightly
...
Give `exec` a short description in the main help output. Hide the option to disable core plugins.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-09-25 13:02:16 +01:00
James Stocks
7576ad8ff5
Add Chef patent URL to --help
...
Fixes #5248
Signed-off-by: James Stocks <jstocks@chef.io>
2020-09-25 13:02:16 +01:00
Chef Expeditor
4c2713b035
Bump version to 4.23.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-09-22 15:23:48 +00:00
James Stocks
cbad55aec9
Tweak JUnit plugin docs
...
Signed-off-by: James Stocks <jstocks@chef.io>
Co-authored-by: mjingle <mjinglewski@chef.io>
2020-09-22 15:46:20 +01:00
James Stocks
48054ef2d1
Update documentation for junit plugins
...
Signed-off-by: James Stocks <jstocks@chef.io>
2020-09-22 14:15:01 +01:00
Chef Expeditor
4c02ebbf5b
Bump version to 4.23.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-09-22 12:07:35 +00:00
Clinton Wolfe
b3f72f5854
Implement a corrected junit2 reporter that can be validated
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-09-22 11:40:01 +01:00
IanMadd
c1da4f64c4
Updating links to inspec docs in ruby scripts
...
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-09-14 14:09:30 -07:00
IanMadd
6a592a6db2
Update various readmes and docs
...
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-09-14 14:09:23 -07:00
Chef Expeditor
70b4114f40
Bump version to 4.23.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-09-14 16:33:11 +00:00
Chef Expeditor
381a48eb9a
Bump version to 4.23.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-09-14 15:54:49 +00:00
Nick Schwaderer
668197f726
Merge pull request #5213 from inspec/ns/windows
...
skip_windows! documentation and clearing
2020-09-14 16:53:15 +01:00
Chef Expeditor
c8a3922d2c
Bump version to 4.23.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-09-14 14:57:57 +00:00
Nick Schwaderer
94224e0695
Merge pull request #5210 from Udyrfrykte/master
...
Improve handling of bracketed options in deb source
2020-09-14 15:56:25 +01:00
Nick Schwaderer
1a1205c729
Fixes many of the old skip_windows instances
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-09-14 15:55:10 +01:00
Chef Expeditor
4c1c4b08b4
Bump version to 4.23.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-09-14 14:28:04 +00:00
mwrock
60a79d7db7
autoload pry
...
Signed-off-by: mwrock <matt@mattwrock.com>
2020-09-09 16:55:48 -07:00
Chef Expeditor
29bc849474
Bump version to 4.23.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-09-02 14:59:10 +00:00
Raphael Geissert
b2e62b5b2f
Run ps with an ulimited width on linux
...
On some systems the output of ps may be truncated, which may prevent
profiles from working as intended.
Some implementations specifically mention that the output width is
undefined "(it may be 80, unlimited, determined by the TERM variable,
and so on)".
This fixes #5226 .
Signed-off-by: Raphael Geissert <atomo64@gmail.com>
2020-09-02 08:34:11 +02:00
Chef Expeditor
d00706b9a6
Bump version to 4.23.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-28 08:18:45 +00:00
Chef Expeditor
7126b7fea1
Bump version to 4.23.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-27 11:44:49 +00:00
Nick Schwaderer
1d71ce141a
Merge pull request #5185 from StylusEaterChef/amd/issue-5183
...
First pass at fixing issue #5183 .
2020-08-27 12:43:18 +01:00
Chef Expeditor
427499a1e4
Bump version to 4.23.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-27 10:41:31 +00:00
Nick Schwaderer
1333fcd821
Merge pull request #5211 from tecracer-theinen/feature/configurable-input-cache
...
Add ability to disable input caching for kitchen-inspec use
2020-08-27 11:39:58 +01:00
Chef Expeditor
30c86eb0e0
Bump version to 4.23.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-27 10:19:03 +00:00
Chef Expeditor
94afddbc55
Bump version to 4.22.23 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-27 10:16:30 +00:00
Nick Schwaderer
6a60b456ba
Merge pull request #5054 from inspec/cw/run-data-filters
...
RunData Filters; sensitive inputs; suppress diff; sorted output
2020-08-27 11:15:57 +01:00
Chef Expeditor
2dff165032
Bump version to 4.22.22 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-26 13:19:54 +00:00
Chef Expeditor
1f2da1c523
Bump version to 4.22.21 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-26 10:37:45 +00:00
Chef Expeditor
6f8b48ed26
Bump version to 4.22.20 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-25 15:28:19 +00:00
Nick Schwaderer
e761f8fb0c
Merge pull request #5219 from ramereth/mysql-session-fixes
...
Fix mysql_session stdout, stderr and exit_status parameters
2020-08-25 16:26:49 +01:00
Chef Expeditor
5f272c283d
Bump version to 4.22.19 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-24 09:39:46 +00:00
Lance Albertson
08b7e584d7
Fix mysql_session stdout, stderr and exit_status parameters
...
A feature introduced in #5124 changed how the mysql_session resource works to
where stdout, stderr, and exit_status no longer worked. The Lines class only
exposes output instead of stdout, stderr and exit_status.
As a work around, this adds backwards compatibilty for stdout, stderr and
exit_status parameters. In addition I updated the documentation to prefer output
over stdout/stderr.
This fixes #5218 .
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-23 18:55:58 -07:00
Chef Expeditor
2f83bc7212
Bump version to 4.22.18 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-20 21:07:55 +00:00
Chef Expeditor
40a81a580f
Bump version to 4.22.17 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-17 15:47:56 +00:00
Thomas Heinen
a613e75971
Add ability to disable input caching for kitchen-inspec use
...
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
2020-08-17 15:49:00 +02:00
Chef Expeditor
270cc7e95d
Bump version to 4.22.16 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-17 10:48:42 +00:00
Udyrfrykte
fe74f4fd5b
Improve apt.rb's read_debs
...
Make it better at handling whitespace in bracketed options
Signed-off-by: Benoît Gastinne <Udyrfrykte@users.noreply.github.com>
2020-08-17 11:38:40 +02:00
Chef Expeditor
80149958e8
Bump version to 4.22.15 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-13 20:55:05 +00:00
Chef Expeditor
f425a48f4c
Bump version to 4.22.14 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-13 18:32:13 +00:00
Chef Expeditor
8a9e339df1
Bump version to 4.22.13 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-13 18:24:00 +00:00
Tim Smith
303f530850
Update to Chefstyle 1.2.1
...
Update a few cop names
Remove redundant returns
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-12 13:12:26 -07:00
Adam M Dutko
04c3aef004
Fix Issue #5183 .
...
Signed-off-by: Adam M Dutko <adutko@chef.io>
2020-08-11 10:34:13 -04:00
Clinton Wolfe
f3bede9b0c
Handle sort options slightly diferently per PR feedback
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-08-10 14:47:58 -04:00
Clinton Wolfe
11e0428094
Adjust stringification of input per feedback
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-08-10 14:32:08 -04:00
Clinton Wolfe
a839d4602c
Add ability to sort results in reporting phase
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-08-10 14:32:08 -04:00
Clinton Wolfe
3aca12d622
Add option to suppress diff output
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-08-10 14:31:28 -04:00
Clinton Wolfe
ceca77e118
Mark inputs as sensitive
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-08-10 14:30:11 -04:00
Clinton Wolfe
88fdb45501
DRY up reporter-trimming code by placing it in a mixin class
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-08-10 14:29:05 -04:00
Chef Expeditor
fb0be93a00
Bump version to 4.22.12 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-10 12:03:22 +00:00
Chef Expeditor
f2b1e131ce
Bump version to 4.22.11 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-10 11:53:48 +00:00
Nick Schwaderer
ff1e558088
Merge pull request #4979 from tecracer-theinen/theinen/windows_firewall
...
Add new windows_firewall and windows_firewall_rule resources
2020-08-10 12:52:16 +01:00
Chef Expeditor
5974b91b49
Bump version to 4.22.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-07 17:08:45 +00:00
Nick Schwaderer
cc521b5400
Merge pull request #5084 from inspec/cw/reporter-plugin-junit
...
Convert JUnit Reporter to a Plugin
2020-08-07 18:06:43 +01:00
Chef Expeditor
f4fdb8a8f3
Bump version to 4.22.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-05 20:34:32 +00:00
Nick Schwaderer
a3ecda5c31
Merge pull request #5188 from inspec/ns/full_build_before_expeditor_merge
...
Enforced bump. Fully allow this to build before merge.
2020-08-05 21:32:45 +01:00
Nick Schwaderer
54b1e335fa
Enforced bump. Fully allow this to build before merge.
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-08-05 20:55:45 +01:00
Chef Expeditor
beaad73586
Bump version to 4.22.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-04 10:34:26 +00:00
Chef Expeditor
fa088c4868
Bump version to 4.22.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-04 10:31:40 +00:00
Nick Schwaderer
9af8ec5afe
Merge pull request #5164 from inspec/ns/scientific-resource
...
Supports Scientific Linux in service resource
2020-08-04 11:30:15 +01:00
Chef Expeditor
0197677127
Bump version to 4.22.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-04 10:29:09 +00:00
Chef Expeditor
7bf8e9b6e5
Bump version to 4.22.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-08-04 07:55:13 +00:00
Nick Schwaderer
8318e73237
Supports Scientific Linux in service resource
...
Currently when using Scientific Linux the user will be prompted with the
unsupported OS error message. As it is based on RHEL, it should be able
to be supported inn the same way.
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-07-30 13:44:58 +01:00
Chef Expeditor
024a838a07
Bump version to 4.22.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-29 10:57:17 +00:00
Nick Schwaderer
986dd1aafb
Merge pull request #5165 from inspec/ns/messages_should_only_be_noted_as_trunncated_if_they_were_actually_truncated
...
Ensure truncate message only returns on truncated values
2020-07-29 11:55:39 +01:00
Chef Expeditor
15452726af
Bump version to 4.22.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-29 09:14:01 +00:00
Nick Schwaderer
3129af9db9
Merge pull request #5123 from Perceptyx/fix-freebsd-osfamily-user-group-tests
...
Fix freebsd osfamily user group tests
2020-07-29 10:12:13 +01:00
Nick Schwaderer
d8b06560a1
Ensure truncate message only returns on truncated values
...
At the moment we return the "Truncate" text whenever the setting is
utilized. This PR ensures that we only advise truncation when it's been
executed.
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-07-29 09:50:25 +01:00
Chef Expeditor
5f7e8797d8
Bump version to 4.22.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-07-28 11:08:47 +00:00
Nick Schwaderer
08d907dc2e
Merge pull request #5124 from Perceptyx/sql-session-sensitive
...
feat(sensitive): add sensitive output to mysql and postgres sessions
2020-07-28 12:06:50 +01:00
Felipe Zipitria
dd8960dbf6
feat(sensitive): add sensitive output to mysql and postgres sessions
...
Signed-off-by: Felipe Zipitria <fzipitria@perceptyx.com>
2020-07-22 14:20:17 -03:00
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
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
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
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
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
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
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
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
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
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
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
9bdf02ac28
Bump version to 4.21.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-26 09:25:05 +00:00
James Stocks
d94d56c4b9
Ignore intermittent test teardown error
...
Occasionally when the `isolated` tests run in CI, this error is seen:
```
inspec-reporter-html2::when run on a basic profile#test_0002_should produce valid HTML:
Errno::ENOENT: No such file or directory @ apply2files - /tmp/temp20200625-1802-2izu7e.html
/usr/local/lib/ruby/2.6.0/fileutils.rb:1437:in `unlink'
/usr/local/lib/ruby/2.6.0/fileutils.rb:1437:in `block in remove_file'
/usr/local/lib/ruby/2.6.0/fileutils.rb:1442:in `platform_support'
/usr/local/lib/ruby/2.6.0/fileutils.rb:1436:in `remove_file'
/usr/local/lib/ruby/2.6.0/fileutils.rb:775:in `remove_file'
/usr/local/lib/ruby/2.6.0/fileutils.rb:562:in `block in rm'
/usr/local/lib/ruby/2.6.0/fileutils.rb:561:in `each'
/usr/local/lib/ruby/2.6.0/fileutils.rb:561:in `rm'
lib/plugins/inspec-reporter-html2/test/functional/inspec_reporter_html2_test.rb:9:in `teardown'
```
It should be OK to ignore the failure to delete the test file - the issue doesn't reproduce on laptops, and CI uses clean VMs each time.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-06-26 09:23:21 +01:00
Chef Expeditor
88cdff8422
Bump version to 4.21.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-25 10:28:16 +00:00
James Stocks
af5fd7bd03
Merge pull request #5036 from inspec/cw/interface-improvements
...
Additions to the interface resource
2020-06-25 11:27:53 +01:00
Chef Expeditor
1ac816f027
Bump version to 4.21.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-25 10:26:19 +00:00
Clinton Wolfe
ad673fa570
Do not include CIDR range on ipv4_address and ipv6_address
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 15:37:19 -04:00
Clinton Wolfe
502509aa5a
Rework IP range filtering for clarity, add 172.16/12
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 15:37:19 -04:00
Clinton Wolfe
d9007588a6
Add an heuristic-based IP lookup property
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 15:37:19 -04:00
Clinton Wolfe
52468e470e
Barebones plural interfaces resource
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 15:37:19 -04:00
Clinton Wolfe
c386828e7a
Add properties for ipv4 and ipv6 ipaddresses for compat
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 15:37:19 -04:00
Clinton Wolfe
a4000d6912
Adds support for interface on BSD and MacOS
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 15:37:19 -04:00
Mary Jinglewski
ac615db4fb
Copyediting
...
Signed-off-by: Mary Jinglewski <mjinglewski@chef.io>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
bd292c9dbb
Fix JS execution on Internet Explorer by adding MOTW
...
Mark of the Web is a special comment in HTML that IE looks for
to set the JS security zone when running a local HTML file.
See
http://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
e4aa9f1793
Skip HTML validation testing on windows
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
aa824d1b49
Fix a bad interaction involving clearing the plugin registry in unit testing
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
83c7f84290
Add ability to show/hide child profiles, start off hidden
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:22:31 -04:00
Clinton Wolfe
adc59ea4ad
Correct html validation assertion syntax
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:22:31 -04:00
Clinton Wolfe
b8b7e4e848
Add ability to inline alternate JS and CSS
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:22:31 -04:00
Clinton Wolfe
e7a5c59b90
Use PRODUCT_NAME from Dist to allow community to rebrand
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:51 -04:00
Clinton Wolfe
a131067a09
Add functional test, including html validation
...
This uses html-proofer, which adds in nokogiri as a testing dep.
I expect we'll be using nokogiri soon anyway for the JUnit reporter.
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:51 -04:00
Clinton Wolfe
81e2f36fde
Basic unit tests for plugin definition
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:51 -04:00
Clinton Wolfe
bb2dfaa02d
First pass at docs
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:13 -04:00
Clinton Wolfe
c4487f1892
Initial commit of inspec-reporter-html2
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:13 -04:00
Chef Expeditor
5aa0d92794
Bump version to 4.20.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-18 16:29:22 +00:00
Chef Expeditor
b5b0d0351a
Bump version to 4.20.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-18 13:33:27 +00:00
Nick Schwaderer
7068694885
Revert "Make CLI reporter into a plugin"
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-06-18 12:30:15 +01:00
Chef Expeditor
c523a4f50c
Bump version to 4.20.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-18 11:29:19 +00:00
Chef Expeditor
af7964984b
Bump version to 4.20.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-17 17:17:29 +00:00
Nick Schwaderer
dca57b61c0
Merge pull request #4907 from inspec/cw/telemetry-run-context
...
Telemetry - determine run context from stack introspection
2020-06-17 18:17:09 +01:00
Chef Expeditor
c271f439fa
Bump version to 4.20.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-17 16:02:27 +00:00
Nick Schwaderer
82c6472444
Merge pull request #5069 from inspec/cw/reporter-plugin-cli
...
Make CLI reporter into a plugin
2020-06-17 17:02:07 +01:00
Chef Expeditor
dfff9d36a8
Bump version to 4.20.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-17 08:51:51 +00:00
Chef Expeditor
7f10acc1ef
Bump version to 4.20.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-15 11:25:44 +00:00
Clinton Wolfe
3651f85a7c
Use methods to access RunData
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-11 16:46:04 -04:00
Clinton Wolfe
98ae89e6cc
Convert JUnit reporter to plugin, RunData is still Hash-based
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-11 16:46:04 -04:00
Chef Expeditor
acda76723f
Bump version to 4.20.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-11 11:30:34 +00:00
James Stocks
070823122d
Merge pull request #5062 from inspec/cw/reporter-plugin-jsonmin
...
Make the JSON-min Reporter into Plugin
2020-06-11 12:30:18 +01:00
Chef Expeditor
705d0ffbb6
Bump version to 4.20.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-09 14:02:32 +00:00
Chef Expeditor
62c5cba7ec
Bump version to 4.20.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-05 23:14:18 +00:00
Chef Expeditor
52392600d1
Bump version to 4.20.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-05 13:11:07 +00:00
James Stocks
d5f825e716
Merge pull request #5026 from inspec/cw/silence-deprecations
...
CLI Option to silence deprecations
2020-06-05 14:10:50 +01:00
Chef Expeditor
c44eb725fe
Bump version to 4.19.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-05 11:28:43 +00:00
Chef Expeditor
b114792fe5
Bump version to 4.19.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-05 11:24:06 +00:00
Nick Schwaderer
fb1aeb0655
Merge pull request #5011 from inspec/cw/complex-cli-inputs
...
Boolean, Numeric, and Structured CLI inputs
2020-06-05 04:23:48 -07:00
Clinton Wolfe
afdcc9d2a1
Add cli to list of valid types explicitly to fix unit tests
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-04 15:03:16 -04:00
Chef Expeditor
144abfb5de
Bump version to 4.19.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-06-04 10:00:27 +00:00
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
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
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
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
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
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
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
Chef Expeditor
e924364565
Bump version to 4.18.115 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-20 11:33:26 +00:00
Nick Schwaderer
e882bc727e
Update for incoming ruby openSSL deprecations
...
Fixes #5031
See above issue for full context, this updates to the latest rubocop requirements for incoming ruby OpenSSL deprecations
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-05-19 15:37:24 +01:00
Clinton Wolfe
c5e347bae5
Implement silencing deprecations
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-14 12:17:55 -04:00
Clinton Wolfe
8ec249e0cc
Copy in reporter message size limiter code from core reporter base
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-12 17:04:19 -04:00
Clinton Wolfe
36069943c4
Add ability to generate reporter plugins using inspec init
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-12 17:00:44 -04:00
Chef Expeditor
6b45777e81
Bump version to 4.18.114 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-11 23:09:52 +00:00
Clinton Wolfe
ee095a244a
Soften the exception to a warning when the input is not parseable
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-07 10:47:57 -04:00
Chef Expeditor
caa6a300bc
Bump version to 4.18.113 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-07 11:54:51 +00:00
James Stocks
2103b52dbe
Merge pull request #4994 from james-stocks/js/json
...
Reporter options to truncate message and suppress stacktrace
2020-05-07 12:54:34 +01:00
James Stocks
1d67349214
Do not inject config to base reporter
...
The base reporter class should access the InSpec config cache, instead of the runner needing to inject config into the base reporter
Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-06 15:24:15 +01:00
Chef Expeditor
12b41fc183
Bump version to 4.18.112 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-06 10:50:57 +00:00
Clinton Wolfe
849bd90930
Parse CLI inputs as booleans
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-05 18:17:40 -04:00
Clinton Wolfe
acfda5a735
Clarify names of examples and a method
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-05 17:59:20 -04:00
Clinton Wolfe
e8d80dd3cd
Update docs
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-05 17:37:23 -04:00
Clinton Wolfe
5e69e3bab6
Allow complex inputs on CLI
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-05 17:37:23 -04:00
Clinton Wolfe
d9f2cdb171
Fix for #4977 by adding a cleanup function for CLI inputs
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-05 17:37:23 -04:00
Clinton Wolfe
47baa59ed8
Add comment tracking when reporters will migrate
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-05 16:51:31 +01:00
Clinton Wolfe
5a7a48bb62
Basics of a working reporter plugin system
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-05 16:51:31 +01:00
Chef Expeditor
d9e5b65e3d
Bump version to 4.18.111 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-05 10:28:20 +00:00
Nick Schwaderer
87d7978340
Merge pull request #5001 from inspec/ns/investigate_waivers_and_namespace_clashing
...
Allows input and control to have the same name
2020-05-05 11:28:03 +01:00
Nick Schwaderer
a1129f9efc
Allows input and control to have the same name
...
In https://github.com/inspec/inspec/issues/4936 the issue was reported that naming an input the same as a control caused an unexpected failure.
In that particular case, the naming was a result of a pre-waivers workaround which is no longer necessary, but ultimately a breakage of that name clash is an unexpected occurrance.
Due to how inputs are named and registered, `__apply_waivers` thinks that an object is a waiver that is not a waiver and tries to process it. On the micro level, it breaks when trying to pass a variable to a string as if it were a Hash.
It is imperative that we preserve 100% of the current featureset, pass our tests, and fix this edge case along with new test coverage for the failure.
This PR updates the code to do a slightly more elegant and small ‘waiver check’ to stop the namespace clash from breaking our code.
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-05-05 10:00:19 +01:00
Chef Expeditor
3616ac21dc
Bump version to 4.18.110 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-04 16:01:32 +00:00
James Stocks
69fb6e0782
Move reporter option handling to base
...
They don't need to be json specific, they should apply to any reporter if the user has chosen these settings.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-04 15:24:50 +01:00
James Stocks
ae66aee2b2
(WIP) Reporter options to truncate message and suppress stacktrace
...
TODO: Option names are not JSON specific but only json reporter has been implemented.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-04 15:24:50 +01:00
Chef Expeditor
2e887a94af
Bump version to 4.18.109 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-05-01 14:22:05 +00:00
Clinton Wolfe
5a7ad0c352
Don't be obnoxious
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-30 15:36:25 -04:00
Clinton Wolfe
131d6678de
Fix for prematurely warning when checking for input value
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-24 16:38:57 -04:00
Clinton Wolfe
e88dab4365
Update message when input has no value
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-24 14:13:07 -04:00
Chef Expeditor
b46b68ccd1
Bump version to 4.18.108 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-04-23 15:18:13 +00:00
James Stocks
14a85eba93
Merge pull request #4992 from inspec/ns/bump_method_source_version
...
Bumps method_source dependency version
2020-04-23 16:17:52 +01:00
Chef Expeditor
9200fec420
Bump version to 4.18.107 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-04-22 15:24:06 +00:00
Chef Expeditor
842d276bd3
Bump version to 4.18.106 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-04-22 08:10:56 +00:00
Clinton Wolfe
ad7569103e
Alter inspec shell prompt to silence deprecation warning
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-21 16:38:21 -04:00
Clinton Wolfe
913dcac4b3
Alter call into Pry::Output to match new API and get shell tests passing
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-21 15:36:08 -04:00
John Snow
8d676f6ed2
Fix typo's after review
...
Signed-off-by: John Snow <thelunaticscripter@outlook.com>
2020-04-20 09:50:58 -04:00
John Snow
03c012e3c9
Add additional debug logging for automate login
...
Signed-off-by: John Snow <thelunaticscripter@outlook.com>
2020-04-17 15:50:40 -04:00
Chef Expeditor
7fa8d1ca68
Bump version to 4.18.105 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-04-09 16:18:16 +00:00
Clinton Wolfe
4f61e37395
Fixes for tests under ruby 2.7 ( #4970 )
...
Fixes for tests under ruby 2.7
2020-04-09 12:17:53 -04:00
Clinton Wolfe
a8b04769ca
Ignore deprecation warning in fileutils and rubygems gems under ruby 2.7
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-08 10:56:55 -04:00
Chef Expeditor
c6f09eb6fb
Bump version to 4.18.104 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-04-07 12:04:57 +00:00
Chef Expeditor
daca7a54a1
Bump version to 4.18.103 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-04-06 09:24:20 +00:00
James Stocks
951fcc9553
Merge pull request #4954 from tecracer-theinen/feature/virtualization-detection
...
Improve virtualization resource
2020-04-06 10:23:58 +01:00
Chef Expeditor
8a001d979d
Bump version to 4.18.102 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-04-02 08:46:21 +00:00
James Stocks
502ad67eb8
Merge pull request #4949 from tecracer-theinen/theinen/source-option
...
Add support for alternate Gem source for plugin installation/search
2020-04-02 09:46:00 +01:00
Chef Expeditor
45eb3666c4
Bump version to 4.18.101 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-03-20 14:38:53 +00:00
Thomas Heinen
61646ad3af
Add support for alternate Gem sources for plugin installation/search
...
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
2020-03-19 11:40:18 +01:00
Axuba
b36113b7b7
Fix service not working correctly on windows machines
...
Signed-off-by: Axuba <ajubanyjuarez@gmail.com>
2020-03-15 21:14:23 +01:00
Thomas Heinen
6a90c10ae3
Improve virtualization resource
...
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
2020-03-11 17:46:32 +01:00
Chef Expeditor
2f5f919ee1
Bump version to 4.18.100 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2020-03-03 16:55:47 +00:00
Clinton Wolfe
5f0638d3ed
Fix platform detection on hab ( #4934 )
...
Fix platform detection on hab
2020-03-03 11:55:28 -05:00