inspec/test/artifact
Vasundhara Jagdale 35f8c4829f
CFINSPEC-533: Fix undefined method 'summary' for Gem::SourceFetchProblem (NoMethodError) when airgapped (#6337) (#6434)
* 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.



* Adds test for reading description from local gemspec file.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-02-24 17:47:19 +05:30
..
artifact_helper.rb Fix artifact-habitat testing for inspec. 2020-02-10 18:34:00 -08:00
inspec_archive_test.rb Fixup tests 2019-11-21 17:01:10 -08:00
inspec_check_test.rb Fixup tests 2019-11-21 17:01:10 -08:00
inspec_compliance_test.rb Fixup tests 2019-11-21 17:01:10 -08:00
inspec_detect_test.rb dry up other tests 2019-11-09 13:36:15 -08:00
inspec_env_test.rb Fixup tests 2019-11-21 17:01:10 -08:00
inspec_exec_test.rb Fixup tests 2019-11-21 17:01:10 -08:00
inspec_habitat_test.rb Fix artifact-habitat testing for inspec. 2020-02-10 18:34:00 -08:00
inspec_help_test.rb dry up other tests 2019-11-09 13:36:15 -08:00
inspec_init_test.rb Fixup tests 2019-11-21 17:01:10 -08:00
inspec_json_test.rb Fixup tests 2019-11-21 17:01:10 -08:00
inspec_plugin_test.rb CFINSPEC-533: Fix undefined method 'summary' for Gem::SourceFetchProblem (NoMethodError) when airgapped (#6337) (#6434) 2023-02-24 17:47:19 +05:30
inspec_shell_test.rb dry up other tests 2019-11-09 13:36:15 -08:00
inspec_supermarket_test.rb dry up other tests 2019-11-09 13:36:15 -08:00
inspec_vendor_test.rb Fixup tests 2019-11-21 17:01:10 -08:00
inspec_version_test.rb dry up other tests 2019-11-09 13:36:15 -08:00
Rakefile Fix Rakefile and wtf 2019-10-16 21:01:19 -07:00
README.md Add a very simple test for Windows Habitat builds. 2019-10-16 21:01:19 -07:00

InSpec Artifact test suite

A minimal set of tests to validate functionality after 'build'.

Execute this after building InSpec artifacts with omnibus, habitat, or another system.