mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Set backend cache to defualt true. (#2827)
Signed-off-by: Jared Quick <jquick@chef.io>
This commit is contained in:
parent
afb931c4da
commit
fafa681f5c
4 changed files with 5 additions and 4 deletions
|
@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|||
|
||||
spec.required_ruby_version = '>= 2.3'
|
||||
|
||||
spec.add_dependency 'train', '~> 1.1'
|
||||
spec.add_dependency 'train', '~> 1.2'
|
||||
spec.add_dependency 'thor', '~> 0.19'
|
||||
spec.add_dependency 'json', '>= 1.8', '< 3.0'
|
||||
spec.add_dependency 'method_source', '~> 0.8'
|
||||
|
|
|
@ -65,6 +65,7 @@ module Inspec
|
|||
connection.disable_cache(:command)
|
||||
else
|
||||
Inspec::Log.debug 'Option backend_cache is disabled'
|
||||
connection.disable_cache(:file)
|
||||
connection.disable_cache(:command)
|
||||
end
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ module Inspec
|
|||
option :create_lockfile, type: :boolean,
|
||||
desc: 'Write out a lockfile based on this execution (unless one already exists)'
|
||||
option :backend_cache, type: :boolean,
|
||||
desc: 'Allow caching for backend command output.'
|
||||
desc: 'Allow caching for backend command output. (default: true)'
|
||||
option :show_progress, type: :boolean,
|
||||
desc: 'Show progress while executing tests.'
|
||||
end
|
||||
|
@ -88,7 +88,7 @@ module Inspec
|
|||
'show_progress' => false,
|
||||
'color' => true,
|
||||
'create_lockfile' => true,
|
||||
'backend_cache' => false,
|
||||
'backend_cache' => true,
|
||||
},
|
||||
shell: {
|
||||
'reporter' => ['cli'],
|
||||
|
|
|
@ -21,7 +21,7 @@ describe 'Inspec::Resources::Platform' do
|
|||
end
|
||||
|
||||
it 'verify platform families' do
|
||||
expect = ["debian", "linux", "unix"]
|
||||
expect = ["debian", "linux", "unix", "os"]
|
||||
_(resource.families).must_equal expect
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue