Commit graph

5693 commits

Author SHA1 Message Date
Sonu Saha
4386cb1407
UPDATE: Update chef-licesing api call: license_keys to fetch_and_persist (#30)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-05-09 10:36:12 -04:00
Chef Expeditor
86a08ba7e7 Bump version to 6.4.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-04-25 13:28:17 +00:00
Sonu Saha
77b7a8ff62
Remove kitchen group from Gemfile (#31)
* KITCHEN: Remove kitchen group from Gemfile,
revert this change when required

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* LINT: Remove trailing whitespace

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-04-25 09:27:21 -04:00
Chef Expeditor
725f6ee023 Bump version to 6.4.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-04-12 14:15:40 +00:00
Sonu Saha
8e26441019
CHEF-52: Add licensing information to help output (#27)
* CHEF-LICENSING: Add licensing flags info in help output

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* INFO: Add chef-licensing info to help message

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-04-12 10:14:34 -04:00
Chef Expeditor
7b933b83d4 Bump version to 6.4.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-31 07:52:40 +00:00
Sonu Saha
646cbb7bda
Add command to list license information (#10)
* Initial commit to set inspec cli command license

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* INTEGRATE: Use chef_licensing endpoint to list licenses info

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CHORE: Update chef-licensing gem name, update description

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CHEF-56 License add command integrated (#11)

* Added license add command in inspec license command plugin

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Chef licensing gem changes pointing to url and branch

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* EXEC_NAME is always inspec as set in Dist,
check is not required

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* DOCS: Update docs for the plugin

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* DOCS: Update docs for the plugin

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
2023-03-31 13:21:44 +05:30
Chef Expeditor
6fb783045c Bump version to 6.4.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-27 14:27:38 +00:00
Vasundhara Jagdale
699d73993c
Licensing - Integrates Software Entitlement (#13)
* CFINSPEC-24:Integrate License Software Entitlment.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-506 license execution check

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Software entitlement call changes and handling of error

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Error handling from chef licensing error to standard error

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Updated Gemfile to pick the chef licensing changes from git url

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Trying with https url

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Revert "Trying with https url"

This reverts commit 33f1f4c0ecacf9ba2826e25e55b41219903ea736.

* Adds the license not entitled exit code

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Updates the require statement

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fix typo

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Set the licensing configure for entitlement id failure

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Use ChefLicensing::Error instead of standard error

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* REFACTOR Move out licensing cong=fig to its own file and make unconditional

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* FIX TESTS - Add reference to licensing config for places where we call runner explicitly.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Update inputs_test to use license configuration from utils

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-03-27 10:26:35 -04:00
Chef Expeditor
031ec21cce Bump version to 6.3.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-24 06:52:35 +00:00
Nikita Mathur
3307ee520c
Integration of chef licensing with inspec (#12)
* Add invocation for chef licensing to fetch and persist license

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Flow changes of licensing with EULA acceptance

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Changed empty to blank safe check

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Exit code changes in case of invalid licenses

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Update temporary gempath to use relatiive path

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* CFINSPEC-506 license execution check

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Handling in inspec for invalid licenses

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Handling of client error

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Replaced subclasses of exceptions with super class error

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Chef licensing gem changes pointing to git url

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Configured chef licensing with inspec

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Local chef licensing gem configuration removed

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Removed logger configuration for chef licensing

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Require changes for new library chef-licensing

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-03-24 02:51:27 -04:00
Chef Expeditor
8bb7d2ad1c Bump version to 6.2.49 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-23 18:48:03 +00:00
Chef Expeditor
efc65b3baf Bump version to 6.2.48 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-16 17:24:19 +00:00
Chef Expeditor
477db753e8 Bump version to 6.2.47 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-14 14:32:29 +00:00
Chef Expeditor
b265e77a7f Bump version to 6.2.46 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-13 16:18:22 +00:00
Chef Expeditor
16114904dc Bump version to 6.2.45 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-10 20:44:18 +00:00
Chef Expeditor
b4cebf0908 Bump version to 6.2.44 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 15:57:31 +00:00
Chef Expeditor
c74932fd38 Bump version to 6.2.43 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 15:47:04 +00:00
Chef Expeditor
6cb3223d08 Bump version to 6.2.42 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 14:58:12 +00:00
Chef Expeditor
9f94bb5386 Bump version to 6.2.41 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 13:46:00 +00:00
Chef Expeditor
a994ef4bb6 Bump version to 6.2.40 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 08:40:17 +00:00
Chef Expeditor
c07cb94dea Bump version to 6.2.39 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 08:38:28 +00:00
Chef Expeditor
302f7389d0 Bump version to 6.2.38 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 08:35:03 +00:00
Vasundhara Jagdale
530d2d1ef2
CFINSPEC-580 Dependent profiles fix for any scheme of version used in profiles (#6410) (#6468)
* Dependent profiles fix for any scheme of version used in profiles



* Dependent profile fix when version is blank in dependent profiles



---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
2023-02-27 14:04:02 +05:30
Chef Expeditor
5c2a9d6086 Bump version to 6.2.37 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 08:32:40 +00:00
Vasundhara Jagdale
ee35f4ed08
CFINSPEC-576 : Fix profile gem dependency loading issue when dependent gem is required inside profile libraries. (#6408) (#6467)
* Test profile consist of custom resource which has a gem dependency



* CFINSPEC-576 Fix for profile gem depedency loading issue if depedent gem is required in libraries files of the profile



* Fix windows test failure for profile gem dependency



---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-02-27 14:01:37 +05:30
Chef Expeditor
79d8e93c94 Bump version to 6.2.36 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 07:45:18 +00:00
Chef Expeditor
0e0686bc42 Bump version to 6.2.35 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 07:37:15 +00:00
Vasundhara Jagdale
cce1bff0ef
CFINSPEC-573: Fix for mongo_session resources prints debug level of information in output of the run result. (#6401) (#6438)
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-02-27 13:06:16 +05:30
Chef Expeditor
726f6e9d8f Bump version to 6.2.34 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 07:03:44 +00:00
Chef Expeditor
54c14b43c3 Bump version to 6.2.33 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 06:19:13 +00:00
Vasundhara Jagdale
acf97be56e
RAKE TEST: Fix rake task for docs:cli (#6437)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Sonu Saha <sonu.saha@progress.com>
2023-02-27 11:48:08 +05:30
Chef Expeditor
3f4af15de5 Bump version to 6.2.32 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 06:05:03 +00:00
Chef Expeditor
4cdccae096 Bump version to 6.2.31 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 05:58:00 +00:00
Chef Expeditor
bed0c11c21 Bump version to 6.2.30 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-27 05:42:04 +00:00
Chef Expeditor
ff260671f0 Bump version to 6.2.29 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-26 15:08:32 +00:00
Vasundhara Jagdale
812001abcc
CFINSPEC-542 Bug fix for profiles with dependent profiles (#6377) (#6435)
* Matching semver using regex to determine profile name without version in dsl logic



* Testing for selecting control using version in require control dsl



* Documentation for using version with profile name when including or selecting controls in a profile



* Commenting in dsl library about logic for fetching version and matching it



* Comment for regex used to fetch version



* Minor improvement for regex variable placement

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
2023-02-26 20:37:28 +05:30
Chef Expeditor
bbf4c7eabe Bump version to 6.2.28 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-26 13:58:04 +00:00
Nikita Mathur
440934ca13
Foreport 6369 to inspec-6 Extended file format support for waivers: JSON & CSV only (#6371)
* Revert "Revert "CFINSPEC-240 Extended file format support for waivers (#6193)" (#6366)"

This reverts commit 30146e07fe.

* Waiver support for csv and json

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Removed the word excel from image tag

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Removed excel file format support for attestations file (#6370)

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Update waivers.md

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Co-authored-by: Ian Maddaus <ian.maddaus@progress.com>
2023-02-26 19:27:02 +05:30
Chef Expeditor
293fe03763 Bump version to 6.2.27 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-26 12:50:21 +00:00
Chef Expeditor
805beb9955 Bump version to 6.2.26 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 13:35:02 +00:00
Chef Expeditor
1dd787800a Bump version to 6.2.25 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 12:18:22 +00:00
Vasundhara Jagdale
35f8c4829f
CFINSPEC-533: Fix undefined method 'summary' for Gem::SourceFetchProblem (NoMethodError) when airgapped (#6337) (#6434)
* This fixes the undefined method 'summary' for #<Gem::SourceFetchProblem:0x000000000139dc70> (NoMethodError) while invoking any inspec command if the custom plugin is installed and if inspec commands are run in an air gap environment.
This fix removes an earlier call for getting gem specification from rubygems.org which is the cause for above error and replaces it with fetching the summary from a locally saved gemspec file. This will work in both airgap and non-airgap environments.



* Adds test for reading description from local gemspec file.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-02-24 17:47:19 +05:30
Chef Expeditor
81845cec30 Bump version to 6.2.24 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 12:13:49 +00:00
Vasundhara Jagdale
4376365304
Fix env smoke test by updating ERB.new in inspec env; add additional test (#6342) (#6440)
* Failing test for Ruby 3.1 - ERB.new call options changed



* Fix for Ruby 3.1 by using named params to ERB.new



* Restrict test to non-windows systems



* Restrict test to non-windows systems

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-02-24 17:42:42 +05:30
Chef Expeditor
e42413cfc3 Bump version to 6.2.23 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 11:46:40 +00:00
Vasundhara Jagdale
be7671da8e
Fixing typo in user_permissions (#6344) (#6465)
* Fixing typo in user_permissions



* Corrected spacing

Signed-off-by: Magruder, Micah <Micah.Magruder@oracle.com>
Co-authored-by: Micah Magruder <micah.magruder@cerner.com>
2023-02-24 17:15:28 +05:30
Chef Expeditor
80178eb7d6 Bump version to 6.2.22 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 10:58:07 +00:00
Chef Expeditor
5f82496263 Bump version to 6.2.21 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 10:56:15 +00:00
Vasundhara Jagdale
e95571fa05
CFINSPEC-393 - Fix for custom plugin loading issue when gemspec file is invalid and unable to load the lib path. (#6334) (#6464)
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-02-24 16:24:44 +05:30
Chef Expeditor
01a8c4ac58 Bump version to 6.2.20 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 10:06:50 +00:00
Chef Expeditor
6f47b24162 Bump version to 6.2.19 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 09:43:38 +00:00
Vasundhara Jagdale
1e1e804b87
Prevent negative status from crashing launchd service resource (#6262) (#6433)
Signed-off-by: dtheyer <davidheyer2016@gmail.com>
Co-authored-by: dtheyer <davidheyer2016@gmail.com>
2023-02-24 15:12:38 +05:30
Chef Expeditor
88084d80ca Bump version to 6.2.18 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 09:41:11 +00:00
Chef Expeditor
26ca0f3f5b Bump version to 6.2.17 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 09:37:14 +00:00
Chef Expeditor
cd26c4e817 Bump version to 6.2.16 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 09:34:58 +00:00
Vasundhara Jagdale
8e429571a6
Fix Ruby 2.7 Bundle Installs on CI Verify Pipeline (#6324) (#6446)
* We will never be on 2.6 again



* Only run html-proofer test on Ruby 3



* Pin to chef 16 on ruby 2.7, 17+ on Ruby 3

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-02-24 15:03:59 +05:30
Chef Expeditor
6940d59027 Bump version to 6.2.15 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 09:30:11 +00:00
Chef Expeditor
48a4d62187 Bump version to 6.2.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 09:11:27 +00:00
Chef Expeditor
d51ab98fe1 Bump version to 6.2.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 09:05:52 +00:00
Chef Expeditor
602b5e0cef Bump version to 6.2.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 08:51:10 +00:00
Vasundhara Jagdale
ecce508ee0
Sync up the default branch as main (#6239) (#6455)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Co-authored-by: Takuya N <takninnovationresearch@gmail.com>
2023-02-24 14:20:00 +05:30
Chef Expeditor
c72b757945 Bump version to 6.2.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-02-24 07:56:10 +00:00
Vasundhara Jagdale
3685eff535
RESOURCE-527 Add an inspec init template for alicloud (#6304) (#6432)
* adding the alicloud in the spec.files



* adding the test for generating inspec profile alicloud



* adding the alicloud profile



* fix lint error

Signed-off-by: Soumyodeep Karmakar <soumyo.k13@gmail.com>
Co-authored-by: Soumyodeep Karmakar <63713087+soumyo13@users.noreply.github.com>
2023-02-24 13:25:09 +05:30
Chef Expeditor
f83d593e74 Bump version to 6.2.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-11-30 05:52:20 +00:00
Chef Expeditor
9fe30c22c9 Bump version to 6.2.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-25 13:24:48 +00:00
Chef Expeditor
5b0e61598f Bump version to 6.2.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-25 13:23:01 +00:00
Nikita Mathur
44939be5a6
Merge pull request #6272 from inspec/nm/parallel-breaking-fix
CFINSPEC-479 Inspec parallel breaking fix
2022-10-25 18:52:10 +05:30
Nikita Mathur
4b4053c656 Reverted backtrace loggin in stderr for resolving test case issues
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-10-25 17:22:21 +05:30
Chef Expeditor
f02f2ffa12 Bump version to 6.2.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-21 07:46:52 +00:00
Chef Expeditor
87d865da01 Bump version to 6.2.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-20 18:14:45 +00:00
Chef Expeditor
a08d013a87 Bump version to 6.2.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-20 18:12:55 +00:00
Chef Expeditor
488f30e410 Bump version to 6.2.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-20 18:11:02 +00:00
Chef Expeditor
f486d0b180 Bump version to 6.2.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-20 18:09:04 +00:00
Nikita Mathur
b593c2ff34
Foreport 6257 to inspec 6 (#6279)
* Oracle DB session resource compatibility with AIX-Cshell

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fixes in oracledb session unit test using oracle_query_string

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-10-20 14:07:39 -04:00
Chef Expeditor
5026ac67e6 Bump version to 6.2.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-20 18:07:18 +00:00
Nikita Mathur
15433e8661
Foreport 6229 to inspec 6 (#6277)
* Not applicable if logic addition

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Changes from not applicable if to only applicable if

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix to enable placing only_applicable_if at any position in control and for keeping impact zero intact

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Doc change added for only_applicable_if

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Doc Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Added generic examples that supports cross platform for testing

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Yet another build fix due to changes in test

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Co-authored-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-10-20 14:07:10 -04:00
Sonu Saha
8b39f2865e
CFINSPEC-462: Fixes inspec sign breaks when there is period or dot in the profile name (#6261) (#6276)
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Vasundhara Jagdale <vasundhara.jagdale@chef.io>
2022-10-20 14:06:38 -04:00
Clinton Wolfe
2d886e3128
resolves inspec/inspec#6042 (#6043) (#6278)
Signed-off-by: Marijus Ravickas <marijus.ravickas@gmail.com>

Signed-off-by: Marijus Ravickas <marijus.ravickas@gmail.com>

Signed-off-by: Marijus Ravickas <marijus.ravickas@gmail.com>
Co-authored-by: Marijus Ravickas <marijus.ravickas@gmail.com>
2022-10-20 14:06:01 -04:00
Chef Expeditor
aa42e1bbfb Bump version to 6.2.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-20 18:05:26 +00:00
Clinton Wolfe
9e4c4994c6
Enhance lxc resource to test properties (#6243) (#6275)
* ENHANCE: Extend lxc resource to test the properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* TEST: Extend test for introduced properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* DOCS: Extend test for introduced properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* FIX: Correct exception class to handle bad yaml

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* Doc Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* FIX: Handle specific exception to handle bad yaml

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Co-authored-by: Deepa Kumaraswamy <dkumaras@progress.com>

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Co-authored-by: Sonu Saha <98935583+ahasunos@users.noreply.github.com>
Co-authored-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-10-20 14:04:57 -04:00
Vasundhara Jagdale
3e3b2c9b5b
Replace faraday_middleware with faraday-follow_redirects (#6238) (#6280)
faraday_middleware was already DEPRECATED in 2022-01.
Only FaradayMiddleware::FollowRedirects from faraday_middleware has been
used, and so we can replace it with faraday-follow_redirects.

faraday-follow_redirects 0.3.0 requires faraday ~> 1.0, which is as same
as "faraday_middleware 1.0.0 or higher.

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Co-authored-by: Takuya N <takninnovationresearch@gmail.com>
2022-10-20 14:04:18 -04:00
Chef Expeditor
c93366d19f Bump version to 6.2.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-10-19 13:49:02 +00:00
Clinton Wolfe
393b8072e8
Feature Config File and Logger Support (#6260)
* Convenience method skeleton

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Basic support for a config file

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add features() array method

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Accept config as an option to with_feature

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Accept logger as an option to with_feature

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Refactor to push code into its own files

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Basic logger integration

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Crude validation of feature names, simply issues a warning log message

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Linting

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add basic tamperproofing to feature config

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Convenience method skeleton

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Basic support for a config file

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add features() array method

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Accept config as an option to with_feature

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Accept logger as an option to with_feature

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Refactor to push code into its own files

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Basic logger integration

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Crude validation of feature names, simply issues a warning log message

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Linting

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add basic tamperproofing to feature config

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* CFINSPEC-464 CLI commands declaration using with_feature functionality (#6263)

* Declared inspec cli commands within feature_with function

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added enhanced outcomes, waivers, reporters and streaming reporters within with_feature block

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added with_feature declaration for attestations

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Update features.yaml signature after adding in new feature flags

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Fix lint

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Resolved undefined method with_feature in reporters.rb

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fix for features tampered file test failing

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fixed the failing functional test for junit2: Missing the entry in the features.yaml
Added progress-bar reporter entry in features.yaml

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-10-19 19:17:56 +05:30
Nikita Mathur
6a0a9666b9 Logging stderr backtrace coming from inspec exec
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-10-17 18:44:00 +05:30
Nikita Mathur
8912f1a71a Error log files cleanup logic changes along with few minor improvements
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-10-17 18:17:44 +05:30
Nikita Mathur
c9f5dcb57d Parallel breaking fix due to method usage changes after attestation merge
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-10-17 18:17:07 +05:30
Chef Expeditor
f8cee44249 Bump version to 6.1.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-09-30 13:54:47 +00:00
Nikita Mathur
efc6f2c63a
CFINSPEC-246/CFINSPEC-247 Attestation changes for N/R outcomes (#6222)
* Added attestation file option to read attestation in various formats

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added method to add attestation data on control level

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Enhanced outcomes flag to be true when attestation file is passed

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added logic for attestation for reporters

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation integration with streaming reporters and lots of refactoring

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Support for mitre - with frequency, updated and explanation fields'

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* To only revise enhanced outcomes when attestation data is present for the control - fix in streaming reporter

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added test cases for attestation and also added validation warnings

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation test for different formats of attestation file

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Validating presence of status column to be mandtory for attestation files

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Build fix

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation build fix for windows

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* No justification and no status graceful handling

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* New class attestations added for logic and added missing test attestations file

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Code comments and cli doc changes for attestation option

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Moved logic of attestations and enhanced outcomes to the base of streaming reporter

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation documentation added

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added information on what happens if justification is missing in attestation file

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation doc changes as per the review

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* File fields doc changes in attestation doc

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Content Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Edits

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Attestation test changes matching regex and separated logic for expiration using frequency and updated date

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Proof-read

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Name changes for expiry calculation method

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Generic tests in attestations for cross platform

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Co-authored-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-09-30 09:53:32 -04:00
Chef Expeditor
b745e55499 Bump version to 6.0.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-08-23 14:12:15 +00:00
Nikita Mathur
b9750c0faf Added inspec parallel logs in log file in case of warn/errors
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-08-22 16:08:20 +05:30
Nikita Mathur
1c6bfa8f24 Merge branch 'main' into inspec-6 2022-08-22 14:55:01 +05:30
Chef Expeditor
61798ca383 Bump version to 5.20.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-08-04 13:18:01 +00:00
Chef Expeditor
28c41b3108 Bump version to 5.20.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-08-04 13:15:01 +00:00
Vasundhara Jagdale
183d09c534
Adds podman resources. (#6183)
* CFINSPEC-368 Adds podman resource. Adds PodmanContainerFilter to handle podman.containers plural resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fix lint errors

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Adds style simple to the filter table fields to flatten the array

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-368 Updated podman resource to work with podman images plural resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-368 Updated podman resource to work with podman networks plural resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-368 Updated podman resource to work with podman pods  plural resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-368 Updated podman resource to work with info and version parameter

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-368 Updated podman resource to work  with podman volumes plural resource. Also updated the docs to add pods, networks and other resource parameters details.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-368 Updated podman resource to aspect object id to verify values of specified Podman object.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Updated docs

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Updated column names to keep them same as the field names

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Adds style simple to commands column for podman containers plural resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-360 Adds podman_container resource. Adds podman_object module

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fixed the require path

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fixed deprecation warning in unit test

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fixed indentation issue in the docs.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Renamed the methods names

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Adds skip resource test

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Updated podman.images to fetch only high level information as using query with low level information does not have required fields and represents the data in different way.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* added method to parse command which uses format option to fetch specific placeholders

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Update the podman,containers to fetch only high level information

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Update podman.networks to fetch only hight level information

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Removed style for where it is not required

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Lint fix and some code improvisation

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* It turn out to be the docker object module can be utilized but still there is scope to rename that module to generic and not specific if going to use with other container management tools

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Missing file in earlier commit

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Content Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* CFINSPEC-361: Test for podman_image matchers and properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Add podman_image matchers and properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Documentation for podman_image matchers and properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Fix Rubocop lint issues

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Test for more properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Add more podman_image properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Documentation for podman_image properties

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Test for low-level information of image

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Add inspec_info property to test low-level info

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Documentation for inspec_info property

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Modify resource id to avoid dependency on other methods

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Decouple podman_image from podman plural resource

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Modify unit test and reqd fixtures

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Handle nil scenario of inspect_info

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Add missing property: id

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Update documentation

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Rename method and attribute name as suggested

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Add stderr message in exception

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Remove comment

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-361: Move json_key mapping to a method

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* Content Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* CFINSPEC-361: Remove exception and add nil

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* CFINSPEC-351: failing tests for podman_network resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-351 Adds podman_network resource properties

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fixed typo in the test

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Refactored the code for podman_image to handle non exisiting image and for creating dynamic methods for properties

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Uncommented the image test

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Update the example for podman_network

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Missing test fixture file

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Adds doc for podman_network resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Doc Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Adds module for podman to group all common methods

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Updated code to match the stderr string for non existing image and network. Also added the test for the same. Added code comments.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* TEST: Add failing test for podman_volume (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* RESOURCE: Add podman_volume properties & matcher (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* TEST: Add mock cmds and fixtures for test to pass (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* DOCS: Update documentation for podman_volume (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* TEST: Add failing test for podman_pod (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* RESOURCE: Add podman_pod properties & matcher (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* TEST: Add mock cmds and fixtures for test to pass (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* DOCS: Update documentation for podman_pod (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* DOCS: Update properties of podman_volume (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* LINT: Remove trailing whitespaces (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* REFACTOR: Extend existing fixture, remove new fixtures (CFINSPEC-351)

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* Content Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

Co-authored-by: Deepa Kumaraswamy <dkumaras@progress.com>
Co-authored-by: Sonu Saha <sonu.saha@progress.com>
2022-08-04 09:13:45 -04:00
Nikita Mathur
b7ddac9dcc
CFINSPEC-240 Extended file format support for waivers (#6193)
* Added separate waiver file reader and support for csv

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added support for json format waivers

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added support for xls and xlsx

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Build issues and updated description of gems

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Doc changes for waivers about supports

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix added to check final options presense in config

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Renamed variables from inputs to waivers

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Validation changes with other small changes

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Headers validation added for json and yaml

* Linter issues resolved

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Some refactoring and message change

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* exit code check removed from test cases since not req

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Doc change for waiver support for excel by showing example

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-08-01 09:19:35 -04:00
Chef Expeditor
03793862d2 Bump version to 5.19.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-08-01 13:15:08 +00:00
Nikita Mathur
742d21c6e2 Duplicate method removal
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:31:40 +05:30
Nikita Mathur
84c14a505a Added impact setting option in only_if
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:31:40 +05:30
Nikita Mathur
b26506b741 Enhanced outcomes changes in json based and yaml reporter
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:59 +05:30
Nikita Mathur
a9fae7cfe2 Added enhanced outcomes option to schema subcommand and updated schema
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:59 +05:30
Nikita Mathur
a96e226bef Exit code logic to consider error count and build fixes
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:59 +05:30
Nikita Mathur
82ab13dbe4 Html reporter changes for enhanced outcomes and refactoring changes
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:59 +05:30
Nikita Mathur
1fc0076f1a Enhanced outcomes changes for streaming progress bar reporter
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Nikita Mathur
2b9f4d4bbf Enhanced outcomes changes in cli reporter
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Clinton Wolfe
2ebd890533 Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-07-29 14:30:58 +05:30
Nikita Mathur
9d531b68de Added failure and passed conditions in enhanced_outcomes
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Nikita Mathur
4e83f395c8 enhanced outcome fix in streaming reporter - collected test based on control_id
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Nikita Mathur
6d4729c437 Progress bar streaming reporter fix for unique control counts
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Nikita Mathur
f56f5ec844 enhanced outcomes logic in streaming reporter base class
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Nikita Mathur
e7aa37dc24 Added logic for error in run_data
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Nikita Mathur
8c2d78161a N/A and N/R logic integration with base formatter run_data
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Nikita Mathur
29cd28f6ac Added plumbing logic to integrate enhanced outcomes in run_data
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Nikita Mathur
4b7543d109 Added enhanced_outcomes option for exec and shell
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-07-29 14:30:58 +05:30
Chef Expeditor
bb802f8dc9 Bump version to 5.18.17 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-07-27 14:00:17 +00:00
Chef Expeditor
a3beccfa43 Bump version to 5.18.16 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-07-21 05:50:37 +00:00
Chef Expeditor
833bfd8766 Bump version to 5.18.15 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-07-13 20:39:00 +00:00
Chef Expeditor
de7931d0c2 Bump version to 5.18.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-07-11 13:52:19 +00:00
Chef Expeditor
ddc7cfb56c Bump version to 5.18.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-07-09 16:50:46 +00:00
Chef Expeditor
8c72cf239d Bump version to 5.18.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-07-09 08:41:59 +00:00
Chef Expeditor
136f01c0f5 Bump version to 5.18.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-07-05 09:43:53 +00:00
Vasundhara Jagdale
5b0b39fee5
Merge pull request #6173 from inspec/nm/windows-fix-for-dependent-profiles
Merging this to make all other PR feel the happiness of green :)
2022-07-05 09:42:52 +00:00
Chef Expeditor
63835f42bc Bump version to 5.18.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-07-01 12:54:30 +00:00
Nikita Mathur
62662d5ae0 Comment to add info for silent super class
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-30 13:46:58 +05:30
Nikita Mathur
5617ed819c Added inheritance test for windows
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-29 17:10:55 +05:30
Nikita Mathur
8bcfc38fe0 Windows fix for dependent profiles
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-29 17:05:59 +05:30
Nikita Mathur
c5b03be490 Enabled silent run by adding silent superreporter
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-29 13:43:10 +05:30
Vasu1105
6d3689d483 Adds --podman-url option accepts path to Podman API endpoint
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-28 00:40:23 -04:00
Clinton Wolfe
9e32fec9b5
Merge pull request #6159 from inspec/vasundhara/adds_podman_inspec_support
CFINSPEC-236 Adds Podman support
2022-06-28 00:35:53 -04:00
Chef Expeditor
de9d8780f9 Bump version to 5.18.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-27 23:39:30 +00:00
Nikita Mathur
bfc18f9bea Reverted fake version change and added comments for more clarity
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 17:45:02 -04:00
Nikita Mathur
c461719331 using fake version 0.0.0 in case no source version available from a dep profile
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 17:45:02 -04:00
Nikita Mathur
28efa42ddf New profile id usage instead of profile_id in dsl
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 17:45:02 -04:00
Nikita Mathur
4f7d508fcc Fix build issue
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 17:45:02 -04:00
Nikita Mathur
b86ed1343d Fix related to new profile id generation for fetching dependencies in dsl logic
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 17:45:02 -04:00
Nikita Mathur
e9e830d3d4 Dsl using dependency with version to fetch dependency
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 17:45:02 -04:00
Nikita Mathur
c79c89836c Fix for dependent profiles with same name but different version to run and display
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 17:45:02 -04:00
Clinton Wolfe
54c175ca36
Merge pull request #6074 from inspec/nm/aws-profile-version-fix
CFINSPEC-249 Fix for dependent profiles with same name but different version
2022-06-27 17:34:43 -04:00
Chef Expeditor
81f89d5b31 Bump version to 5.18.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-27 20:15:03 +00:00
Nikita Mathur
e7ee813ec7 Reverted fake version change and added comments for more clarity
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-24 14:20:48 +05:30
Chef Expeditor
b203ca099b Bump version to 5.18.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-23 15:21:39 +00:00
Nikita Mathur
b2e3bb342b using fake version 0.0.0 in case no source version available from a dep profile
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-23 19:57:38 +05:30
Vasu1105
ad6c7f2c8f Adds --podman-url option accepts path to Podman API endpoint
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-23 14:03:25 +05:30
Chef Expeditor
1d05d080c6 Bump version to 5.18.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-22 16:34:30 +00:00
jayashrig158
542b9cc246 add ruby test 3.1 in verify pipeline (#5892)
* add ruby test 3.1 in verify pipeline

Signed-off-by: jayashri garud <jgarud@msystechnologies.com>

* updating rubygem to 3.3.3

Signed-off-by: jayashri garud <jgarud@msystechnologies.com>

* Test fixture plugin files for ABI 3.1.0

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Use kwargs to match new calling style for ERB in ruby 2.7 and 3.0

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Allow Date and Time data types, needed for waivers, since safe load is now the default for YAML

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Use Time.parse, not Time.new since the rules tightened for what you can pass the constructor for waiver dates

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add ruby platform debug message to test parallel output

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Conditionalize permitted_classes in inputs yaml_load for <= 3.1.x only

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* In ruby 3.1.0 net/pop3 is no more a default gem and that will require us to add it in Gemfile so trying with the byebug gem which we are bundling already

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-166 Updated url fetcher to handle Net::OpenTimeout Exception on Windows

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-14 16:07:08 +05:30
Nikita Mathur
6eb5df2e49 Skip parallel exec tests on windows
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-14 15:17:02 +05:30
Nikita Mathur
d8fd959af5 Fix test cases in inspec parallel tests
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-14 13:46:34 +05:30
Nikita Mathur
70a4857611 New profile id usage instead of profile_id in dsl
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-14 13:21:27 +05:30
Nikita Mathur
8e32d90349 Fix build issue
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-14 13:21:27 +05:30
Nikita Mathur
58d4a816f3 Fix related to new profile id generation for fetching dependencies in dsl logic
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-14 13:21:27 +05:30
Nikita Mathur
d43b1c2f43 Dsl using dependency with version to fetch dependency
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-14 13:21:27 +05:30
Nikita Mathur
8527d213cb Fix for dependent profiles with same name but different version to run and display
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-14 13:21:27 +05:30
Chef Expeditor
19c23979e0 Bump version to 5.18.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-13 18:25:48 +00:00
jayashrig158
ffbf2ff554
add ruby test 3.1 in verify pipeline (#5892)
* add ruby test 3.1 in verify pipeline

Signed-off-by: jayashri garud <jgarud@msystechnologies.com>

* updating rubygem to 3.3.3

Signed-off-by: jayashri garud <jgarud@msystechnologies.com>

* Test fixture plugin files for ABI 3.1.0

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Use kwargs to match new calling style for ERB in ruby 2.7 and 3.0

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Allow Date and Time data types, needed for waivers, since safe load is now the default for YAML

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Use Time.parse, not Time.new since the rules tightened for what you can pass the constructor for waiver dates

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add ruby platform debug message to test parallel output

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Conditionalize permitted_classes in inputs yaml_load for <= 3.1.x only

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* In ruby 3.1.0 net/pop3 is no more a default gem and that will require us to add it in Gemfile so trying with the byebug gem which we are bundling already

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-166 Updated url fetcher to handle Net::OpenTimeout Exception on Windows

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-13 14:24:33 -04:00
Nikita Mathur
f04a31d822
CFINSPEC-120 inspec parallel feature (#5975)
* Initial commit - Inspec parallel setup

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added dry run option functionality and renamed subcommand

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Runner logic parsing options file and executing cmds

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Validation logic changes for dry run and run commands

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Validator bug fix when using options like --sudo with no value

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* initial commit for using default options

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Logic to not parse empty lines and comments and some cleanup

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Functional test cases added

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Test cases fix and bug fix in validator

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Add logic to append default options passed from cli

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* Add test for default options and extend options-file-1.txt

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* Add comments in options-file-2 and 3

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* Bug fix and some refactoring

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Changes from pair programming

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Fixed incorrect line no used in dry run validation & added verbose option

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Initial code with parallel gem setup

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Error handling and some changes in parallel running result

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Working spawn and fork implementation; no pipes or error handling

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* CFINSPEC-143 Child status reporter plugin

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Read status from children using pipes; Windows implementation is likely broken

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Linting

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Removed parallel gem and it's code usage

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Erb templating and option file as shell/powershell option added

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added missing raise error in content reading logic

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Adding for the sake of keeping bash file syntax correct

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Switch to select() polling, enabling Windows support; also add a terrible hack to the child-status reporter

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Move child-status reporter into inspec-parallel plugin to reduce pollution

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Rename a bunch of things, remove some instance variables, always validate, and use Inspec::UI exit codes

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Rework validation to be Thor-based; add logic to inject child-status reporter

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Linting

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Refactor parent UI to make it object oriented

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add a prototype 'status' super-reporter

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Improve status UI edge cases, add info to output, make default

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Error handling added when running bash instead of system check

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Daemon run for background process in unix system for parallel runs

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added logic to cleanup daemon process'

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Review changes for background command name and windows handling

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Error raised with error handling class for options file

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix to not intialise ui when background run is opted

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* typo fix in child reporter append logic in validator

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Changes to trap control c and exit gracefully

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Moved ctl c handling code to command class

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Linter fixes

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Error and runner logging added

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* ERB pid option to use child process id for generating result output

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Renamed 38125 to Process.pid for clear notation

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Log path option added for inspec parallel

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Adjust ERB eval

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* STDERR logging added

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix of --bg with ui

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Deleting log files if empty and status super reporter to show done

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Docs for InSpec Parallel

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Doc Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Grammar corrections

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

Co-authored-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-06-13 13:58:41 -04:00
Chef Expeditor
87ca2b0aa7 Bump version to 5.18.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-13 17:55:39 +00:00
Clinton Wolfe
873b2e1bcf Manual version bump
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-06-13 13:47:17 -04:00
Chef Expeditor
79d3a6e342 Bump version to 5.18.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-10 20:43:59 +00:00
Chef Expeditor
07107cdcd1 Bump version to 5.18.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-09 11:40:22 +00:00
Vasu1105
62405e261d Fixed Lint/DuplicateMethods: Method Inspec::Resources::Service#resource_id is defined at both
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-09 16:19:59 +05:30
Chef Expeditor
7da11de098 Bump version to 5.18.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 21:33:00 +00:00
Clinton Wolfe
29ef063833
Merge pull request #6100 from inspec/ss/fix-processes-on-windows
CFINSPEC-291: Fix `processes` resource to consider processes without `path` on Windows
2022-06-08 17:32:00 -04:00
Chef Expeditor
406636f22a Bump version to 5.18.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 21:08:29 +00:00
Clinton Wolfe
610e7aacea
Merge pull request #5995 from inspec/vasundhara/sign-profile-binary-format
CFINSPEC-167: Profile Signing Rollup
2022-06-08 17:07:27 -04:00
Chef Expeditor
625bb9b0e0 Bump version to 5.17.18 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 20:19:21 +00:00
Chef Expeditor
293d8e76de Bump version to 5.17.17 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 20:16:48 +00:00
Chef Expeditor
980fabf35c Bump version to 5.17.16 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 20:14:48 +00:00
Clinton Wolfe
6385ea9f74
Merge pull request #6126 from inspec/vasundhara/group_2_resource_id
Adds resource_id to group 2  resources
2022-06-08 16:14:45 -04:00
Clinton Wolfe
b0c1373d64
Merge pull request #6119 from inspec/vasundhara/group_1_resource_id_fix
CFINSPEC-262 - Handle resource_id in error situation
2022-06-08 16:13:38 -04:00
Clinton Wolfe
1d0118df86
Merge pull request #6118 from inspec/ss/fix-resource_id-nil-case
Handle resource_id in error situations
2022-06-08 16:12:41 -04:00
Chef Expeditor
27ec207255 Bump version to 5.17.15 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 20:12:31 +00:00
Clinton Wolfe
dd258e3926
Merge pull request #6115 from inspec/nm/add-resource-id-group-10
CFINSPEC 271 Group10 - Added resource_id in resources
2022-06-08 16:11:42 -04:00
Clinton Wolfe
37eee62150
Merge pull request #6112 from inspec/vasundhara/group12_add_resource_id
CFINSPEC-273 Adds resource_id group 12
2022-06-08 16:10:41 -04:00
Chef Expeditor
19900b7be5 Bump version to 5.17.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 20:10:26 +00:00
Clinton Wolfe
00b396b8fe
Merge pull request #6111 from inspec/vasundhara/group9_resource_ids
CFINSPEC-270 Adds resource_id group9
2022-06-08 16:09:15 -04:00
Chef Expeditor
83d58dddae Bump version to 5.17.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 20:08:04 +00:00
Clinton Wolfe
0ae8f52c19
Merge pull request #6110 from inspec/ss/add-resource-ids-group-11
CFINSPEC-272: resource_ids group 11
2022-06-08 16:07:42 -04:00
Clinton Wolfe
092cf8090f
Merge pull request #6109 from inspec/nm/add-resource-id-group-4
CFINSPEC-265  Group 4 - Added resource_id in resources
2022-06-08 16:06:50 -04:00
Chef Expeditor
a5695c7d21 Bump version to 5.17.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 20:05:12 +00:00
Clinton Wolfe
3f9b234160
Merge pull request #6108 from inspec/nm/add-resource-id-group-3
CFINSPEC-264 Group 3 - Added resource_id in resources
2022-06-08 16:05:09 -04:00
Clinton Wolfe
9076dd6626
Merge pull request #6107 from inspec/vasundhara/group8_resource_ids
CFINSPEC-269 Adds resource_id group 8
2022-06-08 16:03:56 -04:00
Clinton Wolfe
39744335c5
Merge pull request #6106 from inspec/ss/add-resource-ids-group-13
CFINSPEC-274: resource_ids group 13
2022-06-08 16:02:16 -04:00
Chef Expeditor
b0070eaa0d Bump version to 5.17.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 20:02:02 +00:00
Vasu1105
24f1fb18b6 CFINSPEC-263 Adds resource_id for cron resource and unit test for the same
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 14:58:46 +05:30
Vasu1105
78d1eb61be CFINSPEC-263 Adds resource_id to chocolatey_package, chrony_conf, command, cpan, cran, csv, dh_params resource and unit test for the same.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 14:58:24 +05:30
Vasu1105
55ecbc4f21 CFINSPEC-262 - Handle resource_id in error situation
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:54:47 +05:30
Vasu1105
7f581f083d CFINSPEC-273 Adds resource_id to user, vbscript, virtualization, windows_feature, windows_firewall, windows_firewall_rule, windows_hotfix, windows_task and unit test for the same.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:53:25 +05:30
Vasu1105
1b0eaf765f CFINSPEC-270 Adds resource_id to os, os_env, package, parse_config, parse_config_file, pip, platform, postfix_conf, postgres_conf, postgres_session resource and unit test for the same
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:52:40 +05:30
Vasu1105
5d47334735 CFINSPEC-269 Adds resource_id for npm, ntp_conf, oneget, opa_api, opa_cli resource and unit test for the same
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:52:16 +05:30
Vasu1105
14d5be2d20 CFINSPEC-268 Adds resource_id for ibmdb2_conf, ibmdb2_session, nginx, nginx_conf, noop and unit test for the same. Updated resource_id generation for mount and mysql_conf resource.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:46:54 +05:30
Vasu1105
d2ebb270f4 CFINSPEC-268 Adds resource_id to mongodb_conf, mongodb_session, mount, mssql_session, mysql_conf resource and unit test for the same.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:46:54 +05:30
Vasu1105
1b546526c3 Fix linting error
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 12:27:43 +05:30
Vasu1105
8f995a3c8f CFINSPEC-340 Handle inspec exec to work with change in the headers and fixes the failing test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 11:10:34 +05:30
Vasu1105
5bdc877951 Fix the other database resource for the argument errpr
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 10:43:41 +05:30
Vasu1105
c91d1e858d Fix for error in the verify pipeline for Windows test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 10:43:41 +05:30
Vasu1105
04d93db068 CFINSPEC-340 Adds usage header line in the signed profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 10:35:16 +05:30
Chef Expeditor
a136554c97 Bump version to 5.17.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-08 04:57:19 +00:00
Sonu Saha
868e3b3528 CFINSPEC-272: Handle case of nil or error resource_id
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-06 13:03:20 +05:30
Sonu Saha
51d3717885 CFINSPEC-274: Handle case of nil or error resource_id
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-06 11:58:43 +05:30
Sonu Saha
94a2c10cff Handle case of nil resource_id
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-06 11:49:33 +05:30
Sonu Saha
97d34e9d1c CFINSPEC-272: Handle case of nil resource_id: sybase_conf
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-06 10:22:57 +05:30
Sonu Saha
98c66ad838 CFINSPEC-272: Enhance resource_id: sybase_session
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-03 18:41:37 +05:30
Chef Expeditor
e89a9b6f5c Bump version to 5.17.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-03 13:01:02 +00:00
Clinton Wolfe
0d26fd2811
Merge pull request #6103 from inspec/ss/add-resource-ids-group-5
CFINSPEC-266: resource_ids group 5
2022-06-03 09:00:00 -04:00
Chef Expeditor
3aa68bd024 Bump version to 5.17.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-03 12:57:57 +00:00
Clinton Wolfe
47105e7f79
Merge pull request #6102 from inspec/vasundhara/group1_resource_ids
CFINSPEC-262 Adds resource_id group 1
2022-06-03 08:56:51 -04:00
Chef Expeditor
d84c66cfb1 Bump version to 5.17.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-03 12:52:57 +00:00
Nikita Mathur
fc925afaa4 Added resource id for rabbitmq and windows resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-03 17:07:45 +05:30
Vasu1105
1c66679e46 CFINSPEC-262 Adds resource_id to aide_conf, apache_conf, apt, audit_policy, auditd_conf, bash, bond, bridge, cassandradb_conf, cassandradb_session resources and unit test for the same
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-03 13:53:57 +05:30
Nikita Mathur
a57843b8e7 Added resource id for iis and other db resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-03 01:32:49 +05:30
Sonu Saha
d306ceca9a CFINSPEC-272: Add resource_id & unit test: timezone
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:16:03 +05:30
Sonu Saha
26293d656e CFINSPEC-272: Add resource_id: sys_info
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:09:27 +05:30
Sonu Saha
d48811ded2 CFINSPEC-272: Add resource_id: sybase_session
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:08:16 +05:30
Sonu Saha
0bec2ea979 CFINSPEC-272: Add resource_id: sybase_conf
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:06:04 +05:30
Sonu Saha
5fd5e21181 CFINSPEC-272: Add resource_id: ssh_config, sshd_config
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:04:36 +05:30
Nikita Mathur
cac93ee152 added name to be used as resource id for docker resource - loosely unique
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 17:14:36 +05:30
Nikita Mathur
7b0b98edac Resource id added for filesystem, grub, group, gem and other resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 17:11:00 +05:30
Sonu Saha
d012aec0b8 CFINSPEC-266: Add resource_id & unit test: iptables
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:55 +05:30
Sonu Saha
a2c9597335 CFINSPEC-266: Add resource_id & unit test: ipnat
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:41 +05:30
Sonu Saha
389495793f CFINSPEC-266: Add resource_id & unit test: ipfilter
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:18 +05:30
Sonu Saha
56e5a67f97 CFINSPEC-266: Add resource_id & unit test: ip6tables
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:54:50 +05:30
Sonu Saha
3c1c28f3ec CFINSPEC-266: Add resource_id & unit test: interface
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:54:18 +05:30
Sonu Saha
67081c00d4 CFINSPEC-266: Add resource_id & unit test: ini, json, xml, yaml
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:53:37 +05:30
Sonu Saha
978288dd95 CFINSPEC-266: Add resource_id & unit test: inetd_conf
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:52:04 +05:30
Sonu Saha
4853077dfd CFINSPEC-266: Add resource_id & unit test: iis_site
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:51:14 +05:30
Sonu Saha
60f80b9f97 CFINSPEC-274: Add resource_id & unit test: zfs_pool
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:45 +05:30
Sonu Saha
84a68668dd CFINSPEC-274: Add resource_id & unit test: zfs_dataset
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:36 +05:30
Sonu Saha
c9181db3bc CFINSPEC-274: Add resource_id & unit test: yum
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:12 +05:30
Sonu Saha
8e13fb1f36 CFINSPEC-274: Add resource_id & unit test: x509_certificate
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:45:24 +05:30
Sonu Saha
1fb530e739 CFINSPEC-274: Add resource_id & unit test: wmi
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:44:41 +05:30
Nikita Mathur
298c83a550 Resource id added for etc, docker and file resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 16:32:06 +05:30
Sonu Saha
86a96f34f7 CFINSPEC-267: Add resource_id & unit test: mongodb
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:55:50 +05:30
Sonu Saha
b39ab1e5e1 CFINSPEC-267: Add resource_id & unit test: login_defs
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:52:26 +05:30
Sonu Saha
eac4e11b34 CFINSPEC-267: Add resource_id & unit test: limits_conf
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:50:49 +05:30
Sonu Saha
06029220b4 CFINSPEC-267: Add resource_id & unit test: service, launchd_service
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:48:29 +05:30
Sonu Saha
ee8d263b74 CFINSPEC-267: Add resource_id & unit test: ksh
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:31:22 +05:30
Sonu Saha
fb76150b3b CFINSPEC-267: Add resource_id: key_rsa
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:27:02 +05:30
Sonu Saha
c6d6ab334a CFINSPEC-267: Add resource_id: kernel_parameter
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:12:14 +05:30
Sonu Saha
aaca074141 CFINSPEC-267: Add resource_id to kernel_module
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 10:54:58 +05:30
Vasu1105
078d1ce898 Updated sign and verify command to directly accept the path of the profile instead of additional option to provide those. Updated docs for the same.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-02 10:36:50 +05:30
Clinton Wolfe
6d4211ccaf
Merge pull request #6060 from inspec/vasundhara/profile-content-id-option
CFINSPEC-255 Add --profile-content-id option to inspec sign profile command
2022-06-01 13:16:54 -04:00
Vasu1105
fdb4d5c3ca Fix the --profile-content-id option not to overwrite the existing profile_content_id value in the metadata file
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-01 22:14:53 +05:30
Chef Expeditor
f2943b7bc8 Bump version to 5.17.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-01 13:37:06 +00:00
Clinton Wolfe
9e52000088
Merge pull request #6041 from inspec/ss/enhance-x509_certificate-resource
CFINSPEC-95: Enhance `x509_certificate` resource
2022-06-01 09:36:05 -04:00
Sonu Saha
4d538f57c2 CFINSPEC-291: Remove byebugs and noise
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-01 13:30:28 +05:30
Sonu Saha
39b4f0a7a5 CFINSPEC-291: Initial fix to consider processes without path on Windows
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-01 13:09:30 +05:30
Chef Expeditor
32ce41a438 Bump version to 5.17.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-01 00:57:01 +00:00
Vasu1105
12b73a6609 Only adds or updates the profile_content_id without modifying the existing contents of the metadata file.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-30 14:37:39 +05:30
Vasu1105
16353af6e3 Fixed the profile content id option description.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-30 12:11:23 +05:30
Chef Expeditor
96036f947d Bump version to 5.17.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-24 14:16:15 +00:00