* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* Reorganize reusable text files
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
* Update text
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
* update archetype
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
* Use text file
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
---------
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
* ssh_key resource file
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Initial commit for unit test for ssh_key resource
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Fix linting and added resource in resources file
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* extend the ssh key resource to use file resource properties
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Updates the ssh_key resource to get length and type of key.
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Updates unit test for ssh_key resource.
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* ADDS Docs for ssh_key resource
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Fix Review: Empty file handling
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Fixed review comments and few code refactoring for ssh_key resource
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Doc edits
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
* Updates test
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
---------
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Co-authored-by: Ian Maddaus <ian.maddaus@progress.com>
* Skip functional tests to match exit code for mandatory profile signing error in windows
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Addded comment to clarify skipping exit code matching test in windows
Signed-off-by: Nik08 <nikita.mathur@progress.com>
---------
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Update docs and introduce test for file content
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
* TEST: Fix broken test due to changes in fixture
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
---------
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
* Remove pinning of version for dependencies in test environment
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Remove version pinning of minitest and html-proofer
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* html-proofer still breaks the 3.0 ruby verify pipeline so reverting the removal of version pinning for html-proofer
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Revert "Remove version pinning of minitest and html-proofer"
This reverts commit f816289f39.
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
* Remove the dependency on html-proofer gem as it's only used in single test.
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
---------
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>