inspec/test/unit/mock/reporters/run_data_wrapper.json

2 lines
6 KiB
JSON
Raw Normal View History

{"controls":[{"status":"passed","code_desc":"File /etc/hosts mode should eq 420","run_time":0.031503,"start_time":"2018-07-30T08:56:41-04:00","resource_title":"File /etc/hosts","expectation_message":"mode should eq 420"},{"status":"passed","code_desc":"File /etc/passwd should exist","run_time":0.003954,"start_time":"2018-07-30T08:56:41-04:00","resource_title":"File /etc/passwd","expectation_message":"should exist"},{"status":"skipped","code_desc":"Operating System Detection","run_time":2.9e-05,"start_time":"2018-07-30T08:56:41-04:00","resource_title":"Operating System Detection","expectation_message":"Skipped control due to only_if condition.","skip_message":"Skipped control due to only_if condition.","resource":"Operating System Detection"}],"other_checks":[],"profiles":[{"name":"wrapper-override","title":"Linux Wrapper Child Profile","maintainer":"Demo, Inc.","copyright":"Demo, Inc.","copyright_email":"support@example.com","license":"Apache-2.0","summary":"Profile that wraps other profiles","version":"0.6.1","depends":[{"name":"myprofile1z","url":"https://s3-eu-west-1.amazonaws.com/apop-bucket/profiles/myprofile1-1.0.0.tar.gz"}],"supports":[],"controls":[{"title":"Profile 1 - Control 1","desc":"Profile 1 - Control 1 description","descriptions":{"default":"Profile 1 - Control description"},"impact":0.8,"refs":[],"tags":{"hosts":null,"file":null,"cce":"CCE-27072-8"},"code":"","source_location":{"ref":"/Users/jquick/.inspec/cache/e39eb85366b272bae98e5eecdfac9f84c50a9ae9dd625fba2ce847268a6c3477/controls/profile1.rb","line":1},"id":"pro1-con1","wrapper_data":{}},{"title":"Profile 1 - Control 2-updated","desc":"Profile 1 - Control 2 description-updated","descriptions":{"default":"Profile 1 - Control 2 description-updated"},"impact":0.999,"refs":[{"ref":[{"url":"https://example.com","ref":"Section 3.5.2.1"}]}],"tags":{"password":null,"password-updated":null},"code":" control 'pro1-con2' do\n impact 0.999\n title 'Profile 1 - Control 2-updated'\n desc 'Profile 1 - Control 2 description-updated'\n tag 'password-updated'\n ref 'Section 3.5.2.1', url: 'https://example.com'\n describe file('/etc/passwd') do\n it { should exist }\n end\n end\n","source_location":{"ref":"wrapper-override/controls/defaut.rb","line":6},"id":"pro1-con2","wrapper_data":{}},{"title":"Profile 1 - Control 3 - useless","desc":"Profile 1 - Control 3 description","descriptions":{"default":"Profile 1 - Control 3 description"},"impact":1,"refs":[],"tags":{},"code":"","source_location":{"ref":"/Users/jquick/.inspec/cache/e39eb85366b272bae98e5eecdfac9f84c50a9ae9dd625fba2ce847268a6c3477/controls/profile1.rb","line":31},"id":"pro1-con4","wrapper_data":{}}],"groups":[{"title":null,"controls":["pro1-con1","pro1-con2","pro1-con4"],"id":"/Users/jquick/.inspec/cache/e39eb85366b272bae98e5eecdfac9f84c50a9ae9dd625fba2ce847268a6c3477/controls/profile1.rb"}],"attributes":[],"sha256":"7436aac31d44de7987419d5f2ffb822f265645f4fc3c5d2ab37d8fff4dd5cf61"},{"name":"myprofile1","title":"My Profile 1 title","maintainer":"Demo, Inc.","copyright":"Demo, Inc.","copyright_email":"support@example.com","license":"Apache-2.0","summary":"My Profile 1 summary","version":"1.0.0","supports":[],"controls":[{"title":"Profile 1 - Control 1","desc":"Profile 1 - Control 1 description","descriptions":{"default":"Profile 1 - Control 1 description"},"impact":0.8,"refs":[],"tags":{"hosts":null,"file":null,"cce":"CCE-27072-8"},"code":"control 'pro1-con1' do\n impact 0.8\n title 'Profile 1 - Control 1'\n desc 'Profile 1 - Control 1 description'\n tag 'hosts','file'\n tag cce: 'CCE-27072-8'\n describe file('/etc/hosts') do\n its('mode') { should eq 0644 }\n end\nend\n","source_location":{"ref":"/Users/jquick/.inspec/cache/e39eb85366b272bae98e5eecdfac9f84c50a9ae9dd625fba2ce847268a6c3477/controls/profile1.rb","line":1},"id":"pro1-con1","wrapper_data":{},"results":[{"status":"passed","code_desc":"File /etc/hosts mode should eq 420","run_time":0.031503,"start_time":"2018-07-30T08:56:41-04:00","resource_title":"File /etc/hosts","expectation_message":"mode should eq 420"}]}