mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
update tests based on resource changes
This commit is contained in:
parent
825702014c
commit
53c7683ff7
3 changed files with 4 additions and 4 deletions
|
@ -32,8 +32,8 @@ class GordonConfig < Inspec.resource(1)
|
|||
|
||||
# Extra Ruby helper method
|
||||
def add_some_extra_params
|
||||
@params['size']=@file.size
|
||||
@params['md5sum']=@file.md5sum
|
||||
@params['size'] = @file.size
|
||||
@params['md5sum'] = @file.md5sum
|
||||
end
|
||||
|
||||
# Expose all parameters
|
||||
|
|
BIN
profile.tar.gz
Normal file
BIN
profile.tar.gz
Normal file
Binary file not shown.
|
@ -284,7 +284,7 @@ describe 'Inspec::InspecCLI' do
|
|||
"license" => "Apache 2 license",
|
||||
"summary" => "Demonstrates the use of InSpec Compliance Profile",
|
||||
"version" => "1.0.0",
|
||||
"supports" => [{"os-family" => "linux"}]
|
||||
"supports" => [{"os-family" => "unix"}]
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -340,7 +340,7 @@ describe 'Inspec::InspecCLI' do
|
|||
|
||||
it 'pending message in json' do
|
||||
ex1['pending'].must_be :nil?
|
||||
ex3['pending'].must_equal "Can't find file \"/etc/gordon/config.yaml\""
|
||||
ex3['pending'].must_equal "Can't find file \"/tmp/gordon/config.yaml\""
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue