Commit graph

10827 commits

Author SHA1 Message Date
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
Nikita Mathur
5f69dea2ca
CFINSPEC-517: Fix for habitat buld failure (#6340) (#6461)
* Fix for habitat buld failure - Git load issue



* Updating ruby installer version to 3.2.1



* Revert "Updating ruby installer version to 3.2.1"

This reverts commit 53bae0f71e.

* Checking removing the lines which are not needed.



* Revert "Checking removing the lines which are not needed."

This reverts commit b5561abc51.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Vasundhara Jagdale <vasundhara.jagdale@chef.io>
2023-02-24 16:25:51 +05:30
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
Nikita Mathur
3d54b17049
Upgraded mock ubuntu test from 20.04 to 22.04 (#6456)
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2023-02-24 16:00:19 +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
Nikita Mathur
f619a1d69e
Update chefstyle from 2.0.x to 2.2.2 to use RuboCop 1.25.1 (#6240) (#6458)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Co-authored-by: Takuya N <takninnovationresearch@gmail.com>
2023-02-24 15:35:49 +05:30
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
Vasundhara Jagdale
2e50b11ced
Remove Windows 3.0 testing. Chef 18 was never released for Ruby 3.0, only 3.1 (#6330) (#6452)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-02-24 15:10:01 +05:30
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
Vasundhara Jagdale
e9155a3911
CFINSPEC-493 update signing_identity (#6298) (#6448)
* update signing_identity



* pin chef to older version for ruby version lesser than 3.0

Signed-off-by: Sathish <sbabu@progress.com>
Co-authored-by: Sathish Babu <80091550+sathish-progress@users.noreply.github.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-02-24 15:05:45 +05:30
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
Vasundhara Jagdale
2c27740940
Fix for omnibus build failure on Windows (#6289) (#6463)
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-02-24 14:59:05 +05:30
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
Vasundhara Jagdale
5755e90bcc
Bump omnibus-software from 1d540dc to 7d0e0fe in /omnibus (#6274) (#6462)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `1d540dc` to `7d0e0fe`.
- [Release notes](https://github.com/chef/omnibus-software/releases)
- [Commits](1d540dcdef...7d0e0fe472)

---
updated-dependencies:
- dependency-name: omnibus-software
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-24 14:39:44 +05:30
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
Vasundhara Jagdale
d63fec38a0
Bump test-kitchen from 3.3.1 to 3.3.2 in /omnibus (#6227) (#6460)
Bumps [test-kitchen](https://github.com/test-kitchen/test-kitchen) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/test-kitchen/test-kitchen/releases)
- [Changelog](https://github.com/test-kitchen/test-kitchen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/test-kitchen/test-kitchen/commits)

---
updated-dependencies:
- dependency-name: test-kitchen
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-24 14:34:46 +05:30
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
Sonu Saha
6d8a11ef08
Merge pull request #6333 from inspec/cw/foreport-6329
Foreport #6329 to inspec-6 - Update readme for usage via Docker (CFINSPEC-516)
2022-11-30 11:21:23 +05:30
Sonu Saha
94a5054678 Update readme for usage via Docker (CFINSPEC-516) (#6329)
* DOCS: Update readme for usage via Docker (CFINSPEC-516)

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

* DOCS: Explain updated readme (CFINSPEC-516)

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

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-11-29 18:41:12 -05: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
7410dd7b73
Merge pull request #6288 from inspec/nm/missing-features
Added child-status reporter in features.yaml list
2022-10-25 18:51:56 +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
Nikita Mathur
5647e16d65 Added child-status reporter in features.yaml
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-10-21 17:09:37 +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
Vasundhara Jagdale
9d2f45e922
Update Faraday gem (#6283)
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-10-21 13:15:49 +05:30
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