Commit graph

5673 commits

Author SHA1 Message Date
Chef Expeditor
e7aa7c535a Bump version to 6.8.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-08-02 09:19:35 +00:00
Chef Expeditor
9e8c62dc0c Bump version to 6.8.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-25 16:14:17 +00:00
Nikita Mathur
e8ee11853b
Telemetry log messages improved for clarity of calls (#7104)
Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-07-25 21:43:08 +05:30
Chef Expeditor
f34db91219 Bump version to 6.8.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-24 11:03:41 +00:00
Aaron Lippold
0ab35681aa
Update ssh_config resource to support returning the current sshd_config file in use. (#7070)
* modify resource

* windows compatibility

* end line

* removing comments to clean things up

Signed-off-by: Aaron Lippold <lippold@gmail.com>

* CHEF-12175: Remove use of `Kernel.open` or `IO.read` or similar sinks with a non-constant value (#7079)

* fix: update io reads to fix codescanning vuln

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

* fix: remove kernel#open fallback and update open method to handle local files

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

* fix: replace io.readlines to file.readlines

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

* chore: fix lint offense, unnecessary space

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

* fix: raise exception for standard errors as FetcherFailure

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

* chore: update exception message

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

---------

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

* fix: Missing regular expression anchor (#7077)

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

* Bump version to 6.6.27 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* Fix gitignore file in docs dir (#7082)

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

* Bump version to 6.6.28 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* adding docs now that the gitignore is fixed.

Signed-off-by: Aaron Lippold <lippold@gmail.com>

* add docs for sshd_active_config resource

* fix docs

* unit tests

* rubocop on ssh_config.rb, sshd_con_test.rb, and sshd_active_config.md

* rename active path in method

* doc fix

* Linting Corrections for Active SSHD Config (#1)

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

* Update sshd_active_config.md

updated version

* doc version update

---------

Signed-off-by: Aaron Lippold <lippold@gmail.com>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Daniel Medina <dmedina@mitre.org>
Co-authored-by: Sonu Saha <98935583+ahasunos@users.noreply.github.com>
Co-authored-by: Chef Expeditor <chef-ci@chef.io>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2024-07-24 16:32:09 +05:30
Chef Expeditor
a51fd39652 Bump version to 6.7.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-24 10:41:35 +00:00
Chef Expeditor
e5c81d5a15 Bump version to 6.7.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-23 12:06:29 +00:00
Chef Expeditor
3e88ae4c5d Bump version to 6.7.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-23 10:10:34 +00:00
Chef Expeditor
c51ab56ab0 Bump version to 6.7.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-22 13:57:29 +00:00
Clinton Wolfe
29242deb7c
Usage Telemetry v3 (#6012)
* Remove unused telemetry v1 code

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

* Sketch out basics of telemetry, with start/stop of invocation telemetry

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

* Data structure for run telemetry - job capture

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

* Add per-control and per-run feature detection

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

* CHEF-4017 Telemetry job api updations (#6965)

* Added initial changes to jobs api

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

* Feature flag changes for telemetry

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

* move base, debug and null to its own file structure

Signed-off-by: Sathish <sbabu@progress.com>

* make HTTP client post requests

Signed-off-by: Sathish <sbabu@progress.com>

* remove old logic

Signed-off-by: Sathish <sbabu@progress.com>

* make backend class as `HTTP`

Signed-off-by: Sathish <sbabu@progress.com>

* CHEF-7258 Fetch and use licensing information for telemetry (#6964)

* Added method to fetch license ids for inspec

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

* Added free license check for performing telemetry api call

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

* move base, debug and null to its own file structure

Signed-off-by: Sathish <sbabu@progress.com>

* make HTTP client post requests

Signed-off-by: Sathish <sbabu@progress.com>

* remove old logic

Signed-off-by: Sathish <sbabu@progress.com>

* make backend class as `HTTP`

Signed-off-by: Sathish <sbabu@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Co-authored-by: Sathish <sbabu@progress.com>

* Updated control tags and desc value to be used in jobs api

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

* Added checks for automate run context and free license check

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

* capture target mode and id

Signed-off-by: Sathish <sbabu@progress.com>

* profile doesn't need ID

Signed-off-by: Sathish <sbabu@progress.com>

* use run context to set environment data

Signed-off-by: Sathish <sbabu@progress.com>

* refactor `create_wrapper` to be localized

Signed-off-by: Sathish <sbabu@progress.com>

* change all timestamps to be UTC

Signed-off-by: Sathish <sbabu@progress.com>

* Null checks for response and corrected job api endpoint

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

* Fixed tag values to be sent as string in api call

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

* make version as float

Signed-off-by: Sathish <sbabu@progress.com>

* add platform name

Signed-off-by: Sathish <sbabu@progress.com>

* Added control result data in jobs api payload

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

* Debug logs added for telemetry call

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

* Removed unwanted telemetry debug class

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

* Payload fix to pass features data only on per control basis

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

* Added class function to list all invoked features by feature sub system

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

* Using feature system to get all invoked features list to be used in jobs api

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

* Unit tests cases updated and fixed

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

* License type check downcased

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

* Lint fix

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

* CHEF-7265 Telemetry opt-in for CINC users (#6966)

* Enabled telemtry opt-in

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

* Removed old comments

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

* Unit test case added to validate the disabling telemetry behaviour for inspec user

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

---------

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

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Co-authored-by: Sathish <sbabu@progress.com>

* Product team review changes - only disable telemetry for commercial license users

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

* Connection failure handling for telemetry http call

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

* Testing fix - Remove usage of deleted library

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

* Telemetry test case fix - Issue caused because unit test are run without feature flag env set

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

* Fixed and replaced tightly coupled semver versioning regex matching test for telemetry data

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

* Telemery test fix to use license key from env or a dummy value if not set in env

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

* Added error logs in case the http call is not successful for telemetry

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

* Error handling for telemetry start and run calls

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

* Telemetry opt-in changes (#7055)

* Removed usage of feature system to enable telemetry - making it opt-in by default

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

* Telemetry disable check fix when no option is passed in args

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

* Fix in test to use license specs defined for testing

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

---------

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

* (Restoring) CHEF-10392 load default telemetry url conditionally (#7059)

* load default telemetry url conditionally

Signed-off-by: Sathish <sbabu@progress.com>

* remove version base path
version base path is defined in jobs path already

Signed-off-by: Sathish <sbabu@progress.com>

* use `CHEF_` prefix for the ENV

Signed-off-by: Sathish <sbabu@progress.com>

---------

Signed-off-by: Sathish <sbabu@progress.com>
Co-authored-by: Sathish <sbabu@progress.com>

* Typo fix in features list

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

* Stub added for CI license key

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

* License usage telemetry correction - not track control results (#7060)

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

* Changes to disable telemetry for other InSpec distros (#7065)

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

* Lint issue fix

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

* Removing disable telemetry test - breaks on CI because of commercial license usage

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

* CHEF-13228 Chef licensing telemetry documentation (#7056)

* WIP chef telemetry env variable usage updated

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

* WIP intro added for chef telemetry - requires edit

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

* Correction in opt in behaviour of telemetry

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

* Doc update after default opt in changes

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

* Doc edit from product

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

* Doc edit

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

* Edits

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

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Co-authored-by: Ian Maddaus <ian.maddaus@progress.com>

* Updated version pinning of chef licensing to version 1 for chef telemetry

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

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
Co-authored-by: Sathish <sbabu@progress.com>
Co-authored-by: Nik08 <nikita.mathur@progress.com>
Co-authored-by: Ian Maddaus <ian.maddaus@progress.com>
2024-07-22 19:26:24 +05:30
Chef Expeditor
e3312ae49b Bump version to 6.6.30 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-15 10:01:35 +00:00
Vasundhara Jagdale
e8b739154d
CHEF-12024 Adds C Shell support to sybase_session resource (#7069)
* Fixes the sybase_session resource was not working with c shell

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

* Adds TODO

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

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-07-15 15:30:22 +05:30
Chef Expeditor
3ef77179d1 Bump version to 6.6.29 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-12 08:37:21 +00:00
Sonu Saha
3f50b6a230
CHEF-12172: Incomplete string escaping or encoding (#7078)
* fix: Incomplete string escaping or encoding

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

* fix: Incomplete string escaping or encoding

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

* fix: Incomplete string escaping or encoding

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

* chore: fix lint offense for single quotes

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-07-12 14:06:14 +05:30
Chef Expeditor
dbfe947035 Bump version to 6.6.28 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-10 14:08:21 +00:00
Chef Expeditor
3b4e112a59 Bump version to 6.6.27 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-10 11:16:53 +00:00
Sonu Saha
8ea98d2a18
fix: Missing regular expression anchor (#7077)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-07-10 16:46:12 +05:30
Sonu Saha
0fd3714229
CHEF-12175: Remove use of Kernel.open or IO.read or similar sinks with a non-constant value (#7079)
* fix: update io reads to fix codescanning vuln

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

* fix: remove kernel#open fallback and update open method to handle local files

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

* fix: replace io.readlines to file.readlines

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

* chore: fix lint offense, unnecessary space

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

* fix: raise exception for standard errors as FetcherFailure

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

* chore: update exception message

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-07-10 16:45:50 +05:30
Chef Expeditor
e3f1642983 Bump version to 6.6.26 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-28 06:39:19 +00:00
Thomas Heinen
ea7e386028
Configurable backend for Chef Infra in Target Mode (#7058)
* Add configurable InSpec backend for Chef Infra

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>

* Add changing backend for Chef Infra

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>

* Add test

* Fix typo on test

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>

* Fix test

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>

---------

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>
2024-06-28 12:08:18 +05:30
Chef Expeditor
a6e85b9d83 Bump version to 6.6.25 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-11 15:15:05 +00:00
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
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
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
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
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
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
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
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
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
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
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
Chef Expeditor
329eafa8f9 Bump version to 6.6.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-24 06:41:42 +00:00
Chef Expeditor
60e8a17290 Bump version to 6.6.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-24 06:39:33 +00:00
Nikita Mathur
7ac0f3d9d9
Fix to capture all the tests (it/its) within a control (#6912)
Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-01-24 12:09:20 +05:30
Nikita Mathur
497fe04328
CHEF-4191 Waivers backward compatibility support with Chef Client (#6919)
* Initial commit to extend backward compatibilty support of waiver with chef client

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

* Changes in conditional checks using if instead of unless

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

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-01-24 12:08:29 +05:30