Set backend cache to defualt true. (#2827)

Signed-off-by: Jared Quick <jquick@chef.io>
This commit is contained in:
Jared Quick 2018-03-15 15:08:34 -04:00 committed by GitHub
parent afb931c4da
commit fafa681f5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -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'

View file

@ -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

View file

@ -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'],

View file

@ -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