Commit graph

11368 commits

Author SHA1 Message Date
Vasundhara Jagdale
26e6cbfb9c
Remove Ruby 3.0 support (#7057)
* Remove Ruby 3.0 support

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Updates sonarqube coverage file

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Fix failing test after remmoval of support for ruby 3.0

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-06-11 20:43:59 +05:30
Chef Expeditor
c75c0805b6 Bump version to 6.6.24 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-06 07:20:30 +00:00
Vasundhara Jagdale
f061146ec6
Pin the ffi version < 1.17.0 (#7053)
* Pin the ffi version to be less than v1.17.0 as it's breaking the verify pipeline

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Adds comments for pinning ffi version

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-06-06 12:49:27 +05:30
Chef Expeditor
77969e2f37 Update CHANGELOG.md with details from pull request #7050
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-05 10:41:13 +00:00
Vasundhara Jagdale
db70b693db
Fix for failing verify pipeline due to ffi version update (#7050)
* Fix for failing verify pipeline due to ffi version update

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* upgrade to the latest rubygems version

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-06-05 16:10:16 +05:30
Chef Expeditor
eb28ab71ce Update CHANGELOG.md with details from pull request #7007
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-31 09:02:33 +00:00
Sonu Saha
8f50a2dd7c
CI: Update configuration to pick commercial license to be used during the buildkite test (#7007)
* feat: invoke warning message for non-commercial users if reporter is cli

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

* temp: add reference to dev branch of chef-licensing to verify changes

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

* ci: use commercial license on the CI from vault

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

* revert: remove additional call to the chef licensing

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

* chore: remove dev branch reference from Gemfile

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-05-31 14:31:32 +05:30
dependabot[bot]
c2ebd4cf8d
Bump artifactory from 3.0.15 to 3.0.17 in /omnibus (#6983)
Bumps [artifactory](https://github.com/opscode/artifactory-client) from 3.0.15 to 3.0.17.
- [Release notes](https://github.com/opscode/artifactory-client/releases)
- [Changelog](https://github.com/chef/artifactory-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opscode/artifactory-client/compare/v3.0.15...v3.0.17)

---
updated-dependencies:
- dependency-name: artifactory
  dependency-type: direct:production
  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>
2024-05-29 16:44:25 +05:30
Chef Expeditor
e636d43a1c Bump version to 6.6.23 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-28 11:37:34 +00:00
dependabot[bot]
5cb10dda4a
Update rspec requirement from >= 3.9, <= 3.12 to >= 3.9, <= 3.14 (#6967)
Updates the requirements on [rspec](https://github.com/rspec/rspec-metagem) to permit the latest version.
- [Commits](https://github.com/rspec/rspec-metagem/compare/v3.10.0...v3.13.0)

---
updated-dependencies:
- dependency-name: rspec
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-28 17:06:28 +05:30
dependabot[bot]
2fb0201d9f
Bump rack from 2.2.7 to 2.2.9 in /omnibus (#7021)
Bumps [rack](https://github.com/rack/rack) from 2.2.7 to 2.2.9.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v2.2.7...v2.2.9)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-28 11:21:54 +05:30
Chef Expeditor
ce657ab29b Bump version to 6.6.22 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-27 11:24:10 +00:00
dependabot[bot]
b33d94b3ba
Bump omnibus-software from f50a2ad to 88516f3 in /omnibus (#7037)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `f50a2ad` to `88516f3`.
- [Commits](f50a2ad7ef...88516f348c)

---
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>
2024-05-27 16:53:04 +05:30
Sonu Saha
c8f020cb81
Modify url fetcher to remove --symref flag in git ls-remote command (#7043)
* fix: remove --symref options from git ls-remote
it is causing issue on ubuntu16 and rhel6

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

* spec: update test to match commit-sha.tar.gz instead of master.tar.gz

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

* spec: skip test on windows, works locally on windows

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-05-21 12:53:03 +05:30
Chef Expeditor
3bd7d5c6c8 Bump version to 6.6.21 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-20 09:57:23 +00:00
William Theaker
34f779e7ad
Fix broken link (#7040)
Obvious fix
2024-05-20 15:26:18 +05:30
Chef Expeditor
6bb288a5cd Bump version to 6.6.20 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-08 13:27:59 +00:00
Nikita Mathur
c83733bf9e
CHEF-3833 Added delay for InSpec parallel status reporter (#6993)
* Added delay in status reporter for inspec-parallel for clear reporting

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Made chef-licensing warning silent between parallel runs

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Code review changes for setting output config

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* As a safe measure added logic to reset output stream

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-05-08 18:56:53 +05:30
Sonu Saha
9ab6a463d0
CHEF-11996: Move cookstyle as a dependency to inspec-core.gemspec (#7034)
* gem: Add cookstyle as a dependency for inspec-core.gemspec

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

* chore: fix lint of empty newlines

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-05-06 16:30:05 +05:30
Chef Expeditor
9939b0d220 Bump version to 6.6.19 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-02 08:47:45 +00:00
Stan Hu
c9bb58e908
Fix uninitialized constant Parser::AST::Processor::Mixin (#7030)
parser 3.3.1.0 introduced
https://github.com/whitequark/parser/pull/1000, which causes this
failure:

```
% bundle exec ruby -Itest test/unit/profiles/profile_test.rb
inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError)

        include Parser::AST::Processor::Mixin
                                      ^^^^^^^
```

Fix this by inherting from `Parser::AST::Processor` instead.

Closes #7029

Signed-off-by: Stan Hu <stanhu@gmail.com>
2024-05-02 14:16:33 +05:30
Chef Expeditor
3478886b56 Bump version to 6.6.18 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-04-30 06:06:04 +00:00
Sonu Saha
65bd83f6ed
CHEF-6000: Fix URL fetcher failure to work when current directory is not a Git repository (#7023)
* fix: use git gem to perform git remote show
this fixes the issue to perform git remote show when dir is not a git dir

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

* test: update test with default_ref stubbing

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

* chore: remove stubs which are not required

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

* chore: remove unused method

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

* test: fix broken test due to changes in url fetcher

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

* chore: improve error message to be user-friendly
this makes the error message as earlier one

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

* chore: change error message:

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

* revert: remove git gem dependency and use shellout

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

* fix: update url fetcher to use ls-remote to make it work in non-git dirs

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-04-30 11:35:03 +05:30
Chef Expeditor
f482fd01ca Bump version to 6.6.17 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-04-24 11:24:38 +00:00
Vasundhara Jagdale
809c4d9ea7
Revert "fix: add support for curve25519 key exchange (#6989)" (#7026)
This reverts commit e1497169b9.
2024-04-24 16:53:36 +05:30
Chef Expeditor
d6296d304f Bump version to 6.6.16 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-04-16 09:52:32 +00:00
Sonu Saha
e1497169b9
fix: add support for curve25519 key exchange (#6989)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-04-16 15:21:32 +05:30
Nikita Mathur
61a4ee3fc2
List all invoked features by feature sub system (#6979)
* Added class function to list all invoked features by feature sub system

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Test cases to verify invoked features list function

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-04-16 14:55:33 +05:30
Chef Expeditor
7cdd45c690 Bump version to 6.6.15 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-04-16 07:58:58 +00:00
Sonu Saha
698df457e2
test: update test with updated failure message for gcp auth (#7010)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-04-16 13:27:55 +05:30
Chef Expeditor
fcbc04d91d Update CHANGELOG.md with details from pull request #6994
Obvious fix; these changes are the result of automation not creative thinking.
2024-03-28 06:43:30 +00:00
Ian Maddaus
55ad91a314
Update Netlify deployment (#6994)
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
2024-03-28 12:12:26 +05:30
Chef Expeditor
3d0c2a1bf9 Update CHANGELOG.md with details from pull request #6998
Obvious fix; these changes are the result of automation not creative thinking.
2024-03-28 06:28:35 +00:00
Sonu Saha
f7b39fab37
ci: update ruby docker image to ruby bullseye base image (#6998)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-03-28 11:57:31 +05:30
Chef Expeditor
a187ca50a5 Bump version to 6.6.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-03-27 06:10:39 +00:00
Vasundhara Jagdale
91210f8afe
CHEF-9848 - Exclude Warning "Unrecognized feature name" for Custom InSpec plugins. (#6988)
* Adds the check for custom plugins to avoid showing "Unrecognised Feature " warnings for them.

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Test to verify feature validation should not show warning for custom plugins

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Fix the test failures

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-03-27 11:39:22 +05:30
Chef Expeditor
0fdfaad9d0 Bump version to 6.6.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-02-20 09:30:58 +00:00
Pg
f5fd9a75f7
Allow the negate formating for cmp (#6862)
* Allow the negate formating for cmp

The 'cmp' matcher when used with a negation as 'should_not' does
has a confusion formating when control fails:
expected: 3
     got: 3

This, because the 'format_actual' always pass 'false' to the
'format_expectation'. Thus the 'format_expectation' never reach the
'negate_str'.

Signed-off-by: Pg <pg.developper.fr@gmail.com>

* Linting

Signed-off-by: Pg <pg.developper.fr@gmail.com>
Co-authored-by: Vasundhara Jagdale <vjagdale@progress.com>

---------

Signed-off-by: Pg <pg.developper.fr@gmail.com>
Co-authored-by: Vasundhara Jagdale <vjagdale@progress.com>
2024-02-20 14:59:54 +05:30
Chef Expeditor
cb807a4ac3 Update CHANGELOG.md with details from pull request #6970
Obvious fix; these changes are the result of automation not creative thinking.
2024-02-08 10:39:02 +00:00
Vasundhara Jagdale
c4e5386656
Adds unit test for progress bar streaming reporter (#6970)
Signed-off-by: Vasu1105 <vjagdle@progress.com>
Co-authored-by: Vasu1105 <vjagdle@progress.com>
2024-02-08 16:07:59 +05:30
Chef Expeditor
258ae72010 Bump version to 6.6.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-02-02 09:42:46 +00:00
Sonu Saha
16a74f39ae
CHEF-3162: Implement unit test for inspec-sign plugin (#6959)
* test: add unit test for inspec sign #profile_verify

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

* enhance: add support for custom config dir to be used during testing

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

* test: add unit test for inspec sign #keygen and #profile_sign

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

* test: remove test for profile sign

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

* test: add test for methods in inspec sign

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-02-02 15:11:20 +05:30
Chef Expeditor
42c7f3e46b Update CHANGELOG.md with details from pull request #6953
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-29 13:26:50 +00:00
Vasundhara Jagdale
129d21be3a
Exclude test files and examples file from code coverage to (#6953)
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-29 18:55:52 +05:30
Chef Expeditor
c4439215e8 Update CHANGELOG.md with details from pull request #6958
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-29 07:27:07 +00:00
Ian Maddaus
b44795efdd
Minor docs fix (#6958)
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
2024-01-29 12:56:12 +05:30
Sonu Saha
d4208cb63c
CHEF-4571: Silence warning about transforming into git fetcher (#6946)
* chore: change log-level for url fetcher transformation

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

* test: remove warning logs from url fetcher test

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-01-24 18:34:21 +05:30
Chef Expeditor
712dad1278 Bump version to 6.6.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-24 13:03:19 +00:00
Vasundhara Jagdale
ebd3eeca55
CHEF-6412: Fix for virutalization resource undefined method file_read (#6947)
* Fix the undefined method file_read error which is causing virtualizaiton resource to set nil for virtualization platform check

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Adds unit test for virtualization resource detect podman container usind detect_container method.
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-24 18:32:06 +05:30
Vasundhara Jagdale
dc7631b8ac
Skip audit log test on Windows (#6950)
* Skip audit log test on Windows

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Fix the text in the audit log test

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-24 14:00:51 +05:30