inspec/test/unit
Vasundhara Jagdale 326b6bfd47
CFINSPEC-533: Fix undefined method 'summary' for Gem::SourceFetchProblem (NoMethodError) when airgapped (#6337)
* This fixes the undefined method 'summary' for #<Gem::SourceFetchProblem:0x000000000139dc70> (NoMethodError) while invoking any inspec command if the custom plugin is installed and if inspec commands are run in an air gap environment.
This fix removes an earlier call for getting gem specification from rubygems.org which is the cause for above error and replaces it with fetching the summary from a locally saved gemspec file. This will work in both airgap and non-airgap environments.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Adds test for reading description from local gemspec file.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-01-03 10:01:49 -05:00
..
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 Singularize the fetchers directory name 2019-11-22 09:57:28 -05:00
fetchers Issue fix related to bitbucket default branch fetching in url fetcher 2021-08-31 13:12:22 +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) 2022-08-25 09:39:17 -04:00
plugin CFINSPEC-533: Fix undefined method 'summary' for Gem::SourceFetchProblem (NoMethodError) when airgapped (#6337) 2023-01-03 10:01:49 -05:00
profiles Upgraded mock ubuntu test from 20.04 to 22.04 (#6351) 2023-01-03 09:58:58 -05:00
reporters UNIT_TESTS: update yaml reporter test for Ruby 3+ 2022-05-09 10:15:15 +03:00
resources Upgraded mock ubuntu test from 20.04 to 22.04 (#6351) 2023-01-03 09:58:58 -05:00
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 Fix typos identified by cspell 2021-08-30 16:49:46 -07:00
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 CFINSPEC-13: Adds code to handle all kinds of version constraint and improved installed gem search logic for the version constraint. 2022-03-04 00:34:46 -05:00
file_provider_test.rb Apply chefstyle -a, and manually remove duplicate requires 2020-12-21 13:25:04 -05:00
impact_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
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 Fix typos identified by cspell 2021-08-30 16:49:46 -07:00
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