Respond to feedback

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
Jerry Aldrich 2019-01-30 09:26:04 -08:00
parent f0c207dad9
commit 94d8d11120
4 changed files with 7 additions and 9 deletions

View file

@ -96,7 +96,8 @@ describe 'inspec check' do
invalid_profile = File.join(profile_path, 'invalid-include-controls')
out = inspec('check ' + invalid_profile)
out.exit_status.must_equal 1
out.stderr.must_match /Cannot load 'invalid_name'/
out.stderr.must_match /Cannot load 'no_such_profile'/
out.stderr.must_match /not listed as a dependency/
end
end
end

View file

@ -1,3 +0,0 @@
# Invalid Include Controls
This profile contains an `include_controls` line with a invalid reference

View file

@ -1,4 +1,4 @@
# encoding: utf-8
# copyright: 2018, The Authors
include_controls 'invalid_name'
include_controls 'no_such_profile'

View file

@ -1,10 +1,10 @@
name: invalid-include-controls
title: InSpec Profile
title: Invalid Include Controls
maintainer: The Authors
copyright: The Authors
copyright_email: you@example.com
copyright_email: humans@chef.io
license: Apache-2.0
summary: An InSpec Compliance Profile
summary: This profile contains an `include_controls` line with a invalid reference
version: 0.1.0
supports:
platform: os
platform: os