Created
May 12, 2017 13:30
-
-
Save adamleff/236866527b7e8fd221f9cfc372f34cdd to your computer and use it in GitHub Desktop.
Inherited profile duplicated controls in output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.24.0", | |
"controls": [ | |
{ | |
"status": "passed", | |
"code_desc": "File /tmp should exist", | |
"run_time": 0.005593, | |
"start_time": "2017-05-12 09:30:22 -0400" | |
}, | |
{ | |
"status": "failed", | |
"code_desc": "File /tmp/foo.yaml should exist", | |
"run_time": 0.011169, | |
"start_time": "2017-05-12 09:30:22 -0400", | |
"message": "expected File /tmp/foo.yaml to exist" | |
} | |
], | |
"other_checks": [], | |
"profiles": [ | |
{ | |
"name": "my_app", | |
"title": "InSpec Profile", | |
"maintainer": "The Authors", | |
"copyright": "The Authors", | |
"copyright_email": "you@example.com", | |
"license": "All Rights Reserved", | |
"summary": "An InSpec Compliance Profile", | |
"version": "0.1.0", | |
"depends": [ | |
{ | |
"name": "inherited", | |
"path": "/Users/aleff/profiles/inherited_profile" | |
} | |
], | |
"supports": [], | |
"controls": [ | |
{ | |
"title": "control from my app", | |
"desc": "this is a control in the base profile", | |
"impact": 1, | |
"refs": [], | |
"tags": {}, | |
"code": "control 'app-1.0' do\n title 'control from my app'\n desc 'this is a control in the base profile'\n impact 1.0\n\n describe directory('/tmp') do\n it { should exist }\n end\nend\n", | |
"source_location": { | |
"ref": "/Users/aleff/profiles/my_app/controls/example.rb", | |
"line": 1 | |
}, | |
"id": "app-1.0", | |
"results": [ | |
{ | |
"status": "passed", | |
"code_desc": "File /tmp should exist", | |
"run_time": 0.005593, | |
"start_time": "2017-05-12 09:30:22 -0400" | |
} | |
] | |
}, | |
{ | |
"title": "an inherited control", | |
"desc": "checking to see if this shows up more than once", | |
"impact": 0.5, | |
"refs": [], | |
"tags": {}, | |
"code": "control 'inherited-1.0' do\n title 'an inherited control'\n desc 'checking to see if this shows up more than once'\n impact 0.5\n\n describe file('/tmp/foo.yaml') do\n it { should exist }\n end\nend\n", | |
"source_location": { | |
"ref": "/Users/aleff/profiles/inherited_profile/controls/example.rb", | |
"line": 1 | |
}, | |
"id": "inherited-1.0" | |
} | |
], | |
"groups": [ | |
{ | |
"title": null, | |
"controls": [ | |
"app-1.0" | |
], | |
"id": "controls/example.rb" | |
}, | |
{ | |
"title": null, | |
"controls": [ | |
"inherited-1.0" | |
], | |
"id": "/Users/aleff/profiles/inherited_profile/controls/example.rb" | |
} | |
], | |
"attributes": [], | |
"sha256": "ff301db1d54af077a0b8eff37166c23cbd395d2d6f2b48a18de7ff2fddb45116" | |
}, | |
{ | |
"name": "inherited_profile", | |
"title": "InSpec Profile", | |
"maintainer": "The Authors", | |
"copyright": "The Authors", | |
"copyright_email": "you@example.com", | |
"license": "All Rights Reserved", | |
"summary": "An InSpec Compliance Profile", | |
"version": "0.1.0", | |
"supports": [], | |
"controls": [ | |
{ | |
"title": "an inherited control", | |
"desc": "checking to see if this shows up more than once", | |
"impact": 0.5, | |
"refs": [], | |
"tags": {}, | |
"code": "control 'inherited-1.0' do\n title 'an inherited control'\n desc 'checking to see if this shows up more than once'\n impact 0.5\n\n describe file('/tmp/foo.yaml') do\n it { should exist }\n end\nend\n", | |
"source_location": { | |
"ref": "/Users/aleff/profiles/inherited_profile/controls/example.rb", | |
"line": 1 | |
}, | |
"id": "inherited-1.0", | |
"results": [ | |
{ | |
"status": "failed", | |
"code_desc": "File /tmp/foo.yaml should exist", | |
"run_time": 0.011169, | |
"start_time": "2017-05-12 09:30:22 -0400", | |
"message": "expected File /tmp/foo.yaml to exist" | |
} | |
] | |
} | |
], | |
"groups": [ | |
{ | |
"title": null, | |
"controls": [ | |
"inherited-1.0" | |
], | |
"id": "controls/example.rb" | |
} | |
], | |
"attributes": [], | |
"sha256": "622cffc866872d5b64073f37c98a8744121c82d292224bf21b9a43837af6762e" | |
} | |
], | |
"platform": { | |
"name": "mac_os_x", | |
"release": "10.12.4" | |
}, | |
"statistics": { | |
"duration": 0.018151 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment