inspec/test/unit
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
..
bundles/inspec-supermarket First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
dependencies First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
dsl CHEF-6439 Mandatory Profile Signing (Preview) (#6705) 2023-11-09 08:20:43 -05:00
fetchers Modify url fetcher to remove --symref flag in git ls-remote command (#7043) 2024-05-21 12:53:03 +05:30
inputs Added new pattern option, fix for input options on dsl and functional test cases for input options 2021-04-21 12:33:54 +05:30
matchers resolves inspec/inspec#6042 (#6043) (#6278) 2022-10-20 14:06:01 -04:00
plugin Adds unit test for progress bar streaming reporter (#6970) 2024-02-08 16:07:59 +05:30
profiles CHEF-6439 Mandatory Profile Signing (Preview) (#6705) 2023-11-09 08:20:43 -05:00
reporters Missing changes from main (#6564) 2023-08-14 09:15:07 -04:00
resources Update ssh_config resource to support returning the current sshd_config file in use. (#7070) 2024-07-24 16:32:09 +05:30
schema Clean up schema PR. 2020-02-05 17:06:55 -08:00
source_readers First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
utils Usage Telemetry v3 (#6012) 2024-07-22 19:26:24 +05:30
backend_test.rb Removed metaprogramming in Inspec::Backend. 2020-02-03 14:41:37 -08:00
base_cli_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
cached_fetcher_test.rb These tests probably never passed. 2019-07-29 11:42:30 -07:00
config_test.rb Improve programmatic plugin configuration 2021-01-27 13:31:12 +01:00
dependency_loader_test.rb Remove Ruby 3.0 support (#7057) 2024-06-11 20:43:59 +05:30
enhanced_outcomes_test.rb Unit tests added for enhanced outcomes (#6924) 2024-01-24 12:08:54 +05:30
feature_test.rb List all invoked features by feature sub system (#6979) 2024-04-16 14:55:33 +05:30
file_provider_test.rb Apply chefstyle -a, and manually remove duplicate requires 2020-12-21 13:25:04 -05:00
iaf_file_test.rb Unit tests added for iaf_file (#6933) 2024-01-24 12:02:31 +05:30
impact_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inspec_sign_test.rb CHEF-3162: Implement unit test for inspec-sign plugin (#6959) 2024-02-02 15:11:20 +05:30
json_profile_summary_test.rb Stores output of inspec json to archive and artifact 2020-05-20 12:34:17 +01:00
resource_test.rb Revert "Revert "CFINSPEC-70 Added resource_id attribute for the custom resources in the base class"" 2022-03-04 09:15:52 -05:00
runner_test.rb Configurable backend for Chef Infra in Target Mode (#7058) 2024-06-28 12:08:18 +05:30
shell_detector_test.rb Please stop warning about mocha. 2020-02-03 14:49:47 -08:00
ui_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00